Bug 1388958

Summary: Overcloud installation fails with ipv6 and external loadbalancer.
Product: Red Hat OpenStack Reporter: Oleksandr Vorobiov <ovorobio>
Component: python-tripleoclientAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Arik Chernetsky <achernet>
Severity: high Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: aschultz, fhubik, hbrock, jjoyce, jslagle, mburns, mcornea, ovorobio, rhel-osp-director-maint
Target Milestone: asyncKeywords: Triaged, ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-0.3.4-8.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1388959 (view as bug list) Environment:
Last Closed: 2017-05-18 14:32:47 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 Oleksandr Vorobiov 2016-10-26 14:47:47 UTC
Description of problem:


How to reproduce:
Try to deploy Openstack with OSPD, ipv6 and external loadbalancer. When deploying with ipv6 deployment fails with an error: 

-------------------------------------------------------
ssh: Could not resolve hostname [fd00:fd00:fd00:2000::250]: Name or service not known
--------------------------------------------------------

SSH tries to make a connection to the host with square brackets in the name and fails. Seems threr is a known issue and has been addressed already here:

https://github.com/openstack/python-tripleoclient/commit/3665888fe4c045b40c5a3a98ebbf727ed2f21d9f

Comment 1 Oleksandr Vorobiov 2016-10-27 09:04:31 UTC
Versions of Tripleo packages:

# rpm -qa | grep tripleo
openstack-tripleo-image-elements-0.9.9-2.1.el7ost.noarch
openstack-tripleo-common-0.3.1-1.el7ost.noarch
openstack-tripleo-puppet-elements-0.0.5-1.el7ost.noarch
openstack-tripleo-0.0.7-1.el7ost.noarch
python-tripleoclient-0.3.4-6.el7ost.noarch
openstack-tripleo-heat-templates-kilo-0.8.14-21.el7ost.noarch
openstack-tripleo-heat-templates-0.8.14-21.el7ost.noarch

Result:

16:51:10 ssh: Could not resolve hostname [fd00:fd00:fd00:2000::250]: Name or service not known
16:51:10 Command '['ssh', '-oStrictHostKeyChecking=no', '-t', '-l', 'heat-admin', u'[fd00:fd00:fd00:2000::250]', 'sudo', 'keystone-manage', 'pki_setup', '--keystone-user', "$(getent passwd | grep '^keystone' | cut -d: -f1)", '--keystone-group', "$(getent group | grep '^keystone' | cut -d: -f1)"]' returned non-zero exit status 255
16:51:10 Traceback (most recent call last):
16:51:10   File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
16:51:10     result = cmd.run(parsed_args)
16:51:10   File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
16:51:10     self.take_action(parsed_args)
16:51:10   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 963, in take_action
16:51:10     self._deploy_postconfig(stack, parsed_args)
16:51:10   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 561, in _deploy_postconfig
16:51:10     parsed_args, stack)
16:51:10   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 460, in _keystone_init
16:51:10     internal_port=internal_port)
16:51:10   File "/usr/lib/python2.7/site-packages/os_cloud_config/keystone.py", line 178, in initialize
16:51:10     _perform_pki_initialization(host, user)
16:51:10   File "/usr/lib/python2.7/site-packages/os_cloud_config/keystone.py", line 570, in _perform_pki_initialization
16:51:10     "$(getent group | grep '^keystone' | cut -d: -f1)"])
16:51:10   File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
16:51:10     raise CalledProcessError(retcode, cmd)
16:51:10 CalledProcessError: Command '['ssh', '-oStrictHostKeyChecking=no', '-t', '-l', 'heat-admin', u'[fd00:fd00:fd00:2000::250]', 'sudo', 'keystone-manage', 'pki_setup', '--keystone-user', "$(getent passwd | grep '^keystone' | cut -d: -f1)", '--keystone-group', "$(getent group | grep '^keystone' | cut -d: -f1)"]' returned non-zero exit status 255
16:51:10 clean_up DeployOvercloud: Command '['ssh', '-oStrictHostKeyChecking=no', '-t', '-l', 'heat-admin', u'[fd00:fd00:fd00:2000::250]', 'sudo', 'keystone-manage', 'pki_setup', '--keystone-user', "$(getent passwd | grep '^keystone' | cut -d: -f1)", '--keystone-group', "$(getent group | grep '^keystone' | cut -d: -f1)"]' returned non-zero exit status 255
16:51:10 Traceback (most recent call last):
16:51:10   File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 112, in run
16:51:10     ret_val = super(OpenStackShell, self).run(argv)
16:51:10   File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run
16:51:10     result = self.run_subcommand(remainder)
16:51:10   File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
16:51:10     result = cmd.run(parsed_args)
16:51:10   File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
16:51:10     self.take_action(parsed_args)
16:51:10   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 963, in take_action
16:51:10     self._deploy_postconfig(stack, parsed_args)
16:51:10   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 561, in _deploy_postconfig
16:51:10     parsed_args, stack)
16:51:10   File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 460, in _keystone_init
16:51:10     internal_port=internal_port)
16:51:10   File "/usr/lib/python2.7/site-packages/os_cloud_config/keystone.py", line 178, in initialize
16:51:10     _perform_pki_initialization(host, user)
16:51:10   File "/usr/lib/python2.7/site-packages/os_cloud_config/keystone.py", line 570, in _perform_pki_initialization
16:51:10     "$(getent group | grep '^keystone' | cut -d: -f1)"])
16:51:10   File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
16:51:10     raise CalledProcessError(retcode, cmd)
16:51:10 CalledProcessError: Command '['ssh', '-oStrictHostKeyChecking=no', '-t', '-l', 'heat-admin', u'[fd00:fd00:fd00:2000::250]', 'sudo', 'keystone-manage', 'pki_setup', '--keystone-user', "$(getent passwd | grep '^keystone' | cut -d: -f1)", '--keystone-group', "$(getent group | grep '^keystone' | cut -d: -f1)"]' returned non-zero exit status 255
16:51:10 
16:51:10 END return value: 1
16:51:10 zation in init-keystone is deprecated and will be removed.


Here is job example:

http://10.8.180.145:8080/job/qe-phase2-8_director-rhel-7.2-virthost-3cont_2comp-ipv6-vlan-lvm-external-loadbalancer/4/console

Comment 9 errata-xmlrpc 2017-05-18 14:32:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1250