Re running undercloud install fails

Bug #1538082 reported by Steven Hardy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Expired
Undecided
Unassigned

Bug Description

I tried re-running the undercloud install via openstack undercloud install, and this happened:

/tmp/tmpyoNzTj/install.d/01-package-installs: /usr/local/bin/package-installs-v2: /usr/local/bin/dib-python: bad interpreter: No such file or directory
INFO: 2016-01-26 10:55:29,344 -- ############### End stdout/stderr logging ###############
ERROR: 2016-01-26 10:55:29,345 -- Hook FAILED.
ERROR: 2016-01-26 10:55:29,345 -- Failed running command ['dib-run-parts', u'/tmp/tmpyoNzTj/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-01-26 10:55:29,346 -- None
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 778, in install
    instack_env = _generate_environment(instack_root)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 669, in _run_instack
    args = ['sudo', 'os-refresh-config']
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 364, in _run_live_command
    line = process.stdout.readline().decode()
RuntimeError: instack failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

Says to look in the log for details but there's no log in the local directory - we should say where the log output is going.

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

Revision history for this message
Emilien Macchi (emilienm) wrote :

This bug is > 365 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in tripleo:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tripleo because there has been no activity for 60 days.]

Changed in tripleo:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.