Comment 1 for bug 1538082

Revision history for this message
Steven Hardy (shardy) wrote :

[stack@instack ~]$ sudo os-refresh-config
[2016-01-26 11:19:57,513] (os-refresh-config) [INFO] Starting phase configure
dib-run-parts Tue Jan 26 11:19:57 UTC 2016 Running /usr/libexec/os-refresh-config/configure.d/00-apply-selinux-policy
+ set -o pipefail
+ '[' -x /usr/sbin/semanage ']'
+ semodule -i /opt/stack/selinux-policy/ipxe.pp
dib-run-parts Tue Jan 26 11:20:06 UTC 2016 00-apply-selinux-policy completed
dib-run-parts Tue Jan 26 11:20:06 UTC 2016 Running /usr/libexec/os-refresh-config/configure.d/20-compile-and-install-selinux-policies
+ set -o pipefail
++ mktemp -d
+ TMPDIR=/tmp/tmp.o1F0ROf0f9
+ '[' -x /usr/sbin/semanage ']'
+ cd /tmp/tmp.o1F0ROf0f9
++ ls '/opt/stack/selinux-policy/*.te'
ls: cannot access /opt/stack/selinux-policy/*.te: No such file or directory
+ semodule -i '/tmp/tmp.o1F0ROf0f9/*.pp'
semodule: Failed on /tmp/tmp.o1F0ROf0f9/*.pp!
[2016-01-26 11:20:06,626] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]

/usr/libexec/os-refresh-config/configure.d/20-compile-and-install-selinux-policies is failing to run:

$ bash -x /usr/libexec/os-refresh-config/configure.d/20-compile-and-install-selinux-policies
+ set -eux
+ set -o pipefail
++ mktemp -d
+ TMPDIR=/tmp/tmp.zAuhfVY86J
+ '[' -x /usr/sbin/semanage ']'
+ cd /tmp/tmp.zAuhfVY86J
++ ls /opt/stack/selinux-policy/ipxe.pp
+ for file in '$(ls /opt/stack/selinux-policy/*)'
++ basename /opt/stack/selinux-policy/ipxe.pp
+ filename=ipxe.pp
+ filename_no_ext=ipxe
+ cp /opt/stack/selinux-policy/ipxe.pp /tmp/tmp.zAuhfVY86J
+ make -f /usr/share/selinux/devel/Makefile ipxe.pp
make: /usr/share/selinux/devel/Makefile: No such file or directory
make: *** No rule to make target `/usr/share/selinux/devel/Makefile'. Stop.

The problem appears to be that we're not installing selinux-policy-devel