Bug 1576686

Summary: Failed to deploy RHOS-11 with custom stack's name
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: rhosp-directorAssignee: RHOS Maint <rhos-maint>
Status: CLOSED NOTABUG QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: aschultz, augol, ccamacho, dbecker, emacchi, mburns, mcornea, morazi
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1576700 (view as bug list) Environment:
Last Closed: 2018-05-10 14:50:21 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:
Embargoed:

Description Yurii Prokulevych 2018-05-10 07:19:56 UTC
Description of problem:
-----------------------
Installation of overcloud with custom stack name fails:

openstack overcloud deploy \
--timeout 100 \
--templates /usr/share/openstack-tripleo-heat-templates \
--stack qe_Cloud-0 \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
-e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml \
-e /home/stack/virt/internal.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /home/stack/virt/enable-tls.yaml \
-e /home/stack/virt/inject-trust-anchor.yaml \
-e /home/stack/virt/public_vip.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/tls-endpoints-public-ip.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/debug.yaml \
-e /home/stack/virt/custom_hostnames.yaml \
-e /home/stack/virt/nodes_data.yaml

Unable to create plan. Unable to create plan. The plan name must only contain letters, numbers or dashes
Creating Swift container to store the plan


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
openstack-tripleo-heat-templates.noarch 6.2.12-2.el7ost 
python-tripleoclient.noarch             6.2.4-1.el7ost

Steps to Reproduce:
-------------------
1. Deploy OC with custom stack name with numbers/dashes/underscore

Actual results:
---------------
Deployment fails


Expected results:
-----------------
Deployment succeeds


Additional info:
----------------
Same value for stack's name works on RHOS-10

openstack overcloud deploy \
--timeout 100 \
--templates /usr/share/openstack-tripleo-heat-templates \
--stack qe_Cloud-0 \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
--control-scale 3 \
--control-flavor baremetal \
--compute-scale 2 \
--compute-flavor baremetal \
--ceph-storage-scale 3 \
--ceph-storage-flavor baremetal \
-e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml \
-e /home/stack/virt/internal.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /home/stack/virt/enable-tls.yaml \
-e /home/stack/virt/inject-trust-anchor.yaml \
-e /home/stack/virt/public_vip.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/tls-endpoints-public-ip.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/debug.yaml \
-e /home/stack/virt/custom_hostnames.yaml \
--log-file overcloud_deployment_10.log
[stack@undercloud-0 ~]$ tail overcloud_install.log
2018-05-10 06:56:11Z [qe_Cloud-0.AllNodesDeploySteps.ControllerPostPuppet]: CREATE_COMPLETE  Stack CREATE completed successfully
2018-05-10 06:56:11Z [qe_Cloud-0.AllNodesDeploySteps.ControllerPostPuppet]: CREATE_COMPLETE  state changed
2018-05-10 06:56:11Z [qe_Cloud-0.AllNodesDeploySteps]: CREATE_COMPLETE  Stack CREATE completed successfully
2018-05-10 06:56:11Z [qe_Cloud-0.AllNodesDeploySteps]: CREATE_COMPLETE  state changed
2018-05-10 06:56:12Z [qe_Cloud-0]: CREATE_COMPLETE  Stack CREATE completed successfully

 Stack qe_Cloud-0 CREATE_COMPLETE 

Overcloud Endpoint: https://10.0.0.101:13000/v2.0
Overcloud Deployed

Comment 2 Alex Schultz 2018-05-10 14:50:21 UTC
Underscores are not valid in hostnames (which the stackname is used to populate by default). This validation was added as part of 11 because of this. For that reason it's NOTABUG.