All,

Today I installed RDO-Manager following the upstream documentation and got an error when executing ‘openstack undercloud install’
I presented the issue in IRC and John Trowbridge was very helpful trying to determine the root cause, and after a couple of different attempts, the error remained.

I’ll try to summarize the changes that we made:

This was the error message:
[2015-09-30 17:07:36,445] (os-refresh-config) [INFO] Starting phase configure
dib-run-parts Wed Sep 30 17:07:36 EDT 2015 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 Wed Sep 30 17:07:53 EDT 2015 00-apply-selinux-policy completed
dib-run-parts Wed Sep 30 17:07:53 EDT 2015 Running /usr/libexec/os-refresh-config/configure.d/20-compile-and-install-selinux-policies
+ set -o pipefail
++ mktemp -d
+ TMPDIR=/tmp/tmp.GvcpM84Lsi
+ '[' -x /usr/sbin/semanage ']'
+ cd /tmp/tmp.GvcpM84Lsi
++ ls '/opt/stack/selinux-policy/*.te'
ls: cannot access /opt/stack/selinux-policy/*.te: No such file or directory
+ semodule -i '/tmp/tmp.GvcpM84Lsi/*.pp'
semodule:  Failed on /tmp/tmp.GvcpM84Lsi/*.pp!
[2015-09-30 17:07:53,136] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]

[2015-09-30 17:07:53,136] (os-refresh-config) [ERROR] Aborting...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 562, in install
    _run_orc(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 494, in _run_orc
    _run_live_command(args, instack_env, 'os-refresh-config')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 325, in _run_live_command
    raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

Going a bit deeper, the error appears when executing https://github.com/rdo-management/tripleo-image-elements/blob/mgt-master/elements/selinux/os-refresh-config/configure.d/20-compile-and-install-selinux-policies

John recommended to explicitly force the use of the the centos.json via ‘export JSONFILE=/usr/share/insack-undercloud/json-files/centos-7-undercloud-packages.json’ but that did not solve the issue.

Then we tried adding “20-comiple-and-install-selinux-policies” under the blacklist section of the file, and after running the installation again, it once more failed at the same step on the installation.

Does anyone has any more ideas?

Thanks,
IB 



__
Ignacio Bravo
LTG Federal, Inc
www.ltgfederal.com
Office: (703) 951-7760