KeyError: 'selinux_enable' while running mock on slaves

Description

*http://jenkins.ovirt.org/view/01%20Unstable%20Jobs%20(ALL)/job/qemu_3.6_create-rpms-el7-x86_64_merged/16/console
<http://jenkins.ovirt.org/view/01%20Unstable%20Jobs%20(ALL)/job/qemu_3.6_create-rpms-el7-x86_64_merged/16/console>*

00:00:07.167 + /usr/bin/mock
--configdir=/home/jenkins/workspace/qemu_3.6_create-rpms-el7-x86_64_merged/jenkins/mock_configs
--root=epel-7-x86_64-ovirt-snapshot
--resultdir=/home/jenkins/workspace/qemu_3.6_create-rpms-el7-x86_64_merged
--orphanskill*00:00:07.167* INFO: mock.py version 1.2.21 starting
(python version = 2.7.5)...00:00:07.168 ERROR:
'selinux_enable'00:00:07.168 Traceback (most recent call
last):00:00:07.168 File "/usr/sbin/mock", line 844, in
<module>00:00:07.168 main()00:00:07.168 File
"/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line
88, in trace*00:00:07.168* result = func(*args,
*kw)*00:00:07.168 File "/usr/sbin/mock", line 634, in
main*00:00:07.168* buildroot = Buildroot(config_opts, uidManager,
state, plugins)00:00:07.168 File
"/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line
88, in trace*00:00:07.168* result = func(*args,
*kw)*00:00:07.168 File
"/usr/lib/python2.7/site-packages/mockbuild/buildroot.py", line 47, in
_init_00:00:07.168 self.selinux = (not
self.config['plugin_conf']['selinux_enable']00:00:07.169 KeyError:
'selinux_enable'


Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com

Activity

Show:

Barak Korren December 21, 2016 at 10:33 AM

Its failing b/c this line gets into the mock config:

This patch fixed that:
https://gerrit.ovirt.org/#/c/68503

I can see subsequent job run succeeded, so closing this ticket.

Fixed

Details

Assignee

Reporter

Priority

Created December 21, 2016 at 9:44 AM
Updated January 3, 2017 at 7:33 AM
Resolved December 21, 2016 at 10:33 AM