Undercloud installation fails with RHEL-7.3 on selinux
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Unassigned |
Bug Description
Description of problem:
$ cat undercloud_
...
+ '[' -x /usr/sbin/semanage ']'
10:08:16 + mkdir -p /opt/stack/
10:08:16 ++ dirname /tmp/tmpoAwezY/
10:08:16 + checkmodule -M -m -o /tmp/ipxe.mod /tmp/tmpoAwezY/
10:08:16 checkmodule: Module name ironic-ipxe is different than the output base filename ipxe
10:08:16 checkmodule: loading policy configuration from /tmp/tmpoAwezY/
10:08:16 INFO: 2016-10-17 06:08:11,747 -- ############### End stdout/stderr logging ###############
10:08:16 ERROR: 2016-10-17 06:08:11,747 -- Hook FAILED.
10:08:16 ERROR: 2016-10-17 06:08:11,747 -- Failed running command ['dib-run-parts', u'/tmp/
10:08:16 File "/usr/lib/
10:08:16 em.run()
10:08:16 File "/usr/lib/
10:08:16 self.run_hook(hook)
10:08:16 File "/usr/lib/
10:08:16 raise Exception("Failed running command %s" % command)
10:08:16 ERROR: 2016-10-17 06:08:11,747 -- None
10:08:16 Traceback (most recent call last):
10:08:16 File "<string>", line 1, in <module>
10:08:16 File "/usr/lib/
10:08:16 _run_instack(
10:08:16 File "/usr/lib/
10:08:16 _run_live_
10:08:16 File "/usr/lib/
10:08:16 raise RuntimeError('%s failed. See log for details.', name)
10:08:16 RuntimeError: ('%s failed. See log for details.', 'instack')
10:08:16 ERROR: openstack Command 'instack-
10:08:16 Traceback (most recent call last):
10:08:16 File "/usr/lib/
10:08:16 result = cmd.run(
10:08:16 File "/usr/lib/
10:08:16 self.take_
10:08:16 File "/usr/lib/
10:08:16 subprocess.
10:08:16 File "/usr/lib64/
10:08:16 raise CalledProcessEr
10:08:16 CalledProcessError: Command 'instack-
10:08:16 DEBUG: openstackclient
10:08:16 DEBUG: openstackclient
10:08:16 ERROR: openstackclient
10:08:16 File "/usr/lib/
10:08:16 return super(OpenStack
10:08:16 File "/usr/lib/
10:08:16 result = self.run_
10:08:16 File "/usr/lib/
10:08:16 result = cmd.run(
10:08:16 File "/usr/lib/
10:08:16 self.take_
10:08:16 File "/usr/lib/
10:08:16 subprocess.
10:08:16 File "/usr/lib64/
10:08:16 raise CalledProcessEr
10:08:16 CalledProcessError: Command 'instack-
Version-Release number of selected component (if applicable):
OSPd7-9
Steps to reproduce:
1) Download RHEL-7.3 (unreleased bits)
2) $ cat undercloud.conf
[DEFAULT]
# Network interface on the Undercloud that will be handling the PXE
# boots and DHCP for Overcloud instances. (string value)
local_interface = eth0
3)$ cat undercloud_
#!/bin/bash
openstack undercloud install --debug &> undercloud_
4)$ sh undercloud_
# Fails with error above and return value "1"
Expected results:
installation will pass
Additional info:
It seems the problem is related to selinux policies, related files:
$ cat /tmp/tmpoAwezY/
#!/bin/bash
set -eux
set -o pipefail
# Install the selinux policy
[ -x /usr/sbin/semanage ] || exit 0
mkdir -p /opt/stack/
# Compile the selinux policy
checkmodule -M -m -o /tmp/ipxe.mod $(dirname $0)/../
sudo semodule_package -m /tmp/ipxe.mod -o /opt/stack/
Changed in tripleo: | |
status: | New → Fix Released |
importance: | Undecided → High |
Lon Hohberger says:
the new checkmodule contains a CLI change which causes it to error out if the module name and file name differ.