Bug 1392140

Summary: rhsop 8 undercloud install fails with selinux policy load
Product: Red Hat OpenStack Reporter: bigswitch <rhosp-bugs-internal>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED WONTFIX QA Contact: Arik Chernetsky <achernet>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: aschultz, bfournie, mburns, owalsh, rhel-osp-director-maint, rhosp-bugs-internal
Target Milestone: ---Flags: bfournie: needinfo? (rhosp-bugs-internal)
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-16 22:16:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description bigswitch 2016-11-05 05:32:52 UTC
Description of problem:
RHOSP 8 undercloud installation fails with latest RHEL 7.2 with yum update

Version-Release number of selected component (if applicable):
RHSOP 8 director installation

How reproducible:


Steps to Reproduce:
1. Install RHEL 7.2 
2. Follow the RHOSP 8.0 Undercloud installation procedure
3. start the openstack undercloud install 

Installation fails with following error

+ '[' -x /usr/sbin/semanage ']'
+ mkdir -p /opt/stack/selinux-policy
++ dirname /tmp/tmp8Ff3MC/post-install.d/86-selinux
+ checkmodule -M -m -o /tmp/ipxe.mod /tmp/tmp8Ff3MC/post-install.d/../selinux/ipxe.te
checkmodule:  Module name ironic-ipxe is different than the output base filename ipxe
checkmodule:  loading policy configuration from /tmp/tmp8Ff3MC/post-install.d/../selinux/ipxe.te
INFO: 2016-11-04 22:26:39,168 -- ############### End stdout/stderr logging ###############
ERROR: 2016-11-04 22:26:39,168 --     Hook FAILED.
ERROR: 2016-11-04 22:26:39,168 -- Failed running command ['dib-run-parts', u'/tmp/tmp8Ff3MC/post-install.d']
  File "/usr/lib/python2.7/site-packages/instack/main.py", line 163, in main
    em.run()
  File "/usr/lib/python2.7/site-packages/instack/runner.py", line 79, in run
    self.run_hook(hook)
  File "/usr/lib/python2.7/site-packages/instack/runner.py", line 172, in run_hook
    raise Exception("Failed running command %s" % command)
ERROR: 2016-11-04 22:26:39,170 -- None
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 808, in install
    _run_instack(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 692, in _run_instack
    _run_live_command(args, instack_env, 'instack')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 370, in _run_live_command
    raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: instack failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

Actual results:


Expected results:


Additional info:

Comment 1 bigswitch 2016-11-05 06:17:40 UTC
Package python-tripleoclient-0.3.4-6.el7ost.noarch

Comment 2 bigswitch 2016-11-05 20:32:01 UTC
latest yum update will install : rpm -qa | grep selinux-policy-devel-3.13.1-102.el7_3.4.noarch
selinux-policy-devel-3.13.1-102.el7_3.4.noarch

Comment 3 bigswitch 2016-11-05 20:35:43 UTC
[stack@rhosp8 log]$ sudo cat /var/log/messages | grep abrt
Nov  5 13:06:21 rhosp8 abrtd: Init complete, entering main loop
Nov  5 13:17:19 rhosp8 yum[14533]: Updated: abrt-libs-2.1.11-45.el7.x86_64
Nov  5 13:17:33 rhosp8 yum[14533]: Updated: abrt-dbus-2.1.11-45.el7.x86_64
Nov  5 13:17:33 rhosp8 yum[14533]: Updated: abrt-python-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-addon-kerneloops-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-addon-pstoreoops-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-addon-vmcore-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-tui-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-addon-ccpp-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-addon-python-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-addon-xorg-2.1.11-45.el7.x86_64
Nov  5 13:17:34 rhosp8 yum[14533]: Updated: abrt-cli-2.1.11-45.el7.x86_64
Nov  5 13:17:51 rhosp8 yum[14533]: Updated: abrt-console-notification-2.1.11-45.el7.x86_64
Nov  5 13:19:01 rhosp8 abrtd: Got signal 15, exiting
Nov  5 13:19:01 rhosp8 abrtd: Init complete, entering main loop
Nov  5 13:19:11 rhosp8 abrtd: Got signal 15, exiting
Nov  5 13:19:11 rhosp8 abrtd: Init complete, entering main loop

Comment 5 Bob Fournier 2017-09-03 15:26:56 UTC
Is this problem still occurring?  Is it just with RHEL 7.2 or also 7.3/7.4?

Comment 7 Bob Fournier 2017-11-16 22:16:51 UTC
Thanks Ollie for pointing that out.

The fix is in OSP-9.  There aren't plans to backport this to OSP-8.