Bug 1380099 - Including an underscore in overcloud stack name results in failed deploy
Summary: Including an underscore in overcloud stack name results in failed deploy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 9.0 (Mitaka)
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: Upstream M2
: 13.0 (Queens)
Assignee: Ryan Brady
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks: 1335596 1356451
TreeView+ depends on / blocked
 
Reported: 2016-09-28 16:09 UTC by nalmond
Modified: 2019-12-16 06:55 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-27 21:04:17 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1644587 0 None None None 2018-02-27 21:04:16 UTC
OpenStack gerrit 407972 0 None None None 2018-02-27 21:05:23 UTC

Description nalmond 2016-09-28 16:09:54 UTC
Description of problem:
Overcloud deploy fails when stack name contains an underscore

openstack overcloud deploy --stack TEST_STACK34 --templates -e /home/stack/templates/RHOS9_REPO-environment.yaml -e /home/stack/templates/net-single-nic-with-vlans.yaml --control-scale 1 --compute-scale 1 --control-flavor control --compute-flavor compute --ntp-server 192.0.2.1

[stack@director ~]$ heat stack-list --show-nested |grep -iv complete
WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+---------------------+--------------+--------------------------------------+
| id                                   | stack_name                                                                                                                                         | stack_status       | creation_time       | updated_time | parent                               |
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+---------------------+--------------+--------------------------------------+
| 1208b532-d745-4aff-8b26-7afaf7ab7add | TEST_STACK34                                                                                                                                       | CREATE_FAILED      | 2016-09-26T15:27:11 | None         | None                                 |
| 68141554-d1c9-4d08-874c-0abebb931745 | TEST_STACK34-ComputeNodesPostDeployment-rfxdqwvnngpm                                                                                               | CREATE_IN_PROGRESS | 2016-09-26T15:46:13 | None         | 1208b532-d745-4aff-8b26-7afaf7ab7add |
| 839788ce-938a-4700-991a-e136e04a9ec9 | TEST_STACK34-ControllerNodesPostDeployment-q4qzgv6m4gqr                                                                                            | CREATE_FAILED      | 2016-09-26T15:46:13 | None         | 1208b532-d745-4aff-8b26-7afaf7ab7add |
| e562f4f7-c933-45af-aff1-24dd63df155e | TEST_STACK34-ControllerNodesPostDeployment-q4qzgv6m4gqr-ControllerLoadBalancerDeployment_Step1-hhg27pnprjfd                                        | CREATE_FAILED      | 2016-09-26T15:46:42 | None         | 839788ce-938a-4700-991a-e136e04a9ec9 |
| 2d4d44b9-64e2-4e2c-89f8-8095f0b233e0 | TEST_STACK34-ComputeNodesPostDeployment-rfxdqwvnngpm-ComputePuppetDeployment-zpllq6lz5rgm                                                          | CREATE_IN_PROGRESS | 2016-09-26T15:46:57 | None         | 68141554-d1c9-4d08-874c-0abebb931745 |
+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+--------------------+---------------------+--------------+--------------------------------------+

Warning seen in journalctl:
Sep 26 17:49:08 test-stack34-controller-0.localdomain os-collect-config[5123]: [2016-09-26 11:46:56,793] (heat-config) [WARNING] Failed to retrieve 'hostname -f' output

[nalmond@collab-shell test-stack34-controller-0.localdomain]$ cat hostname 
test-stack34-controller-0.localdomain

[nalmond@collab-shell test-stack34-controller-0.localdomain]$ cat etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

# HEAT_HOSTS_START - Do not edit manually within this section!
192.0.2.23 test_stack34-compute-0.localdomain test_stack34-compute-0
192.0.2.23 test_stack34-compute-0-external
192.0.2.23 test_stack34-compute-0-internalapi
192.0.2.23 test_stack34-compute-0-storage
192.0.2.23 test_stack34-compute-0-storagemgmt
192.0.2.23 test_stack34-compute-0-tenant
192.0.2.23 test_stack34-compute-0-management

192.0.2.24 test_stack34-controller-0.localdomain test_stack34-controller-0
192.0.2.24 test_stack34-controller-0-external
192.0.2.24 test_stack34-controller-0-internalapi
192.0.2.24 test_stack34-controller-0-storage
192.0.2.24 test_stack34-controller-0-storagemgmt
192.0.2.24 test_stack34-controller-0-tenant
192.0.2.24 test_stack34-controller-0-management
# HEAT_HOSTS_END

Please notice:
test-stack34 vs test_stack34

How reproducible:
Every time

Steps to Reproduce:
1. Install Undercloud
2. Attempt overcloud deploy with --stack <name_with_underscore>

Actual results:
deploy fails, incorrect hostnames are set

Expected results:
deploy succeeds with correct hostnames

Additional info:
Deployment is successful if --stack flag is omitted

Comment 12 Alex Schultz 2018-02-27 21:04:17 UTC
This was fixed in 5.8.0 of tripleo-common. It should be available since OSP11.


Note You need to log in before you can comment on or make changes to this bug.