Director Undercloud install fail for Openstack 12

Latest response

Hi y'all,
So after playing with Openstack 10 I'm trying to install Openstack 12 and while the former works fine, the latter not so much despite hardly any changes in the installation process. It's installed on a clean, minimal 7.4 virtual machine.

My undercloud.conf:

local_interface = eth0
local_mtu = 1500
network_cidr = 10.0.6.0/24
masquerade_network = 10.0.6.0/24
local_ip = 10.0.6.1/24
network_gateway = 10.0.6.1
undercloud_public_host = 10.0.6.2
undercloud_admin_host = 10.0.6.3
undercloud_service_certificate =
generate_service_certificate = False
scheduler_max_attempts = 50
dhcp_start = 10.0.6.100
dhcp_end = 10.0.6.150
inspection_iprange = 10.0.6.151,10.0.6.199
# Deprecated names for compatibility with older releases
discovery_iprange = 10.0.6.151,10.0.6.199
undercloud_public_vip = 10.0.6.2
undercloud_admin_vip = 10.0.6.3

Some errors (full log file in attachment):

2018-01-03 17:26:11,959 INFO: Error: neutron-db-manage  upgrade heads returned 1 instead of one of [0]
2018-01-03 17:26:11,960 INFO: Error: /Stage[main]/Neutron::Db::Sync/Exec[neutron-db-sync]/returns: change from notrun to 0 failed: neutron-db-manage  upgrade heads returned 1 instead of one of [0]
...
2018-01-03 17:28:55,030 INFO: Warning: /Stage[main]/Firewall::Linux::Redhat/File[/etc/sysconfig/iptables]: Skipping because of failed dependencies
2018-01-03 17:28:55,030 INFO: Notice: /Stage[main]/Firewall::Linux::Redhat/File[/etc/sysconfig/ip6tables]: Dependency Exec[neutron-db-sync] has failures: true
2018-01-03 17:28:55,030 INFO: Warning: /Stage[main]/Firewall::Linux::Redhat/File[/etc/sysconfig/ip6tables]: Skipping because of failed dependencies
2018-01-03 17:28:57,420 INFO: Notice: Applied catalog in 322.10 seconds
2018-01-03 17:29:08,214 INFO: + rc=6
2018-01-03 17:29:08,215 INFO: + set -e
2018-01-03 17:29:08,215 INFO: + echo 'puppet apply exited with exit code 6'
2018-01-03 17:29:08,215 INFO: puppet apply exited with exit code 6
2018-01-03 17:29:08,215 INFO: + '[' 6 '!=' 2 -a 6 '!=' 0 ']'
2018-01-03 17:29:08,215 INFO: + exit 6
2018-01-03 17:29:08,216 INFO: [2018-01-03 17:29:08,215] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]
2018-01-03 17:29:08,216 INFO:
2018-01-03 17:29:08,216 INFO: [2018-01-03 17:29:08,215] (os-refresh-config) [ERROR] Aborting...
2018-01-03 17:29:08,223 DEBUG: An exception occurred
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1779, in install
    _run_orc(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1322, in _run_orc
    _run_live_command(args, instack_env, 'os-refresh-config')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 601, in _run_live_command
    raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
2018-01-03 17:29:08,224 ERROR:
#############################################################################
Undercloud install failed.

Reason: os-refresh-config failed. See log for details.

See the previous output for details about what went wrong.  The full install
log can be found at /home/stack/.instack/install-undercloud.log.

#############################################################################

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1779, in install
    _run_orc(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1322, in _run_orc
    _run_live_command(args, instack_env, 'os-refresh-config')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 601, 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

Attachments

Responses

Some things that you might want to check: 1) You have a gateway ip-address assigned to the local_interface (eth0) :

local_ip = 10.0.6.1/24
network_gateway = 10.0.6.1
  • What would be the next hop for the local_interface eth0 in this case? How would it reach out to pull in the required packages for undercloud installation?
  • Is your gateway 10.0.6.1 or 10.0.6.254 ? Please provide output of route -n

2) How exactly are you managing the packages required for undercloud installation? system - Is your undercloud system directly subscribed to RH-CDN - Are you using Local repositories - Are you using RH-Satellite

3) Can you list the repositories and subscriptions that are configured on the undercloud?

# yum repolist    >> Are there any disabled repos here
# subscription-manager list --consumed   >> Are you consuming the right subs

1) Network gateway is used by the overcloud, so it shouldnt matter on this step. Anyway I will try, using a different IP next time, but I'm sceptical about this being the problem.

2) Directly using RH-CDN via a different interface. It was reachable, otherwise I wouldn't be able to download for example initial undercloud package.

[stack@wojtek_und1 ~]$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth1.605

3) Well I reverted back to OSP 10, but 100% sure I used those commands:

sudo subscription-manager repos --disable=*
sudo subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-rh-common-rpms --enable=rhel-ha-for-rhel-7-server-rpms --enable=rhel-7-server-openstack-12-rpms
sudo yum update -y

Hi Wojciech Machula Any update on the Original issue i was also stuck with same " neutron-db-manage " Error (RHOSP 12 ) if you fixed the issue , can you give the steps for fixing the DB sync issue or any work around . I will be very grateful as i was stuck with this issue for many days

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.