Bug 1731673

Summary: Openstack 14 quickstart deploy command fails puppet symlink
Product: Red Hat OpenStack Reporter: chrisbro <chrisbro>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: CLOSED WORKSFORME QA Contact: Victor Voronkov <vvoronko>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: aschultz, mburns, vvoronko
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-22 15:55:28 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 chrisbro@redhat.com 2019-07-21 06:21:49 UTC
Description of problem:

Openstack 14 quickstart deploy command fails to symlink `ln -s /usr/share/openstack-puppet/modules/ /etc/puppet/modules/` 

Deploy fails every time with `unbound local variable 'tmp' referenced before assignment` 

Version-Release number of selected component (if applicable):

python-tripleoclient-10.6.2-0.20190425150605.ba03c5e.el7ost.noarch
Red Hat Enterprise Linux Server release 7.6 (Maipo)

How reproducible:
Every time.

Steps to Reproduce:
1. Follow documentation [1] to install the python-tripleoclient and the .yaml config files need as per documentation.
2. Use the deploy command to start the standalone deploy.
3. Deployment fails with the above error. 

   [1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/html-single/quick_start_guide/index

Actual results:


Expected results:

Should automatically symlink this.


Additional info:

This was tried on 3 installs with the same outcome.

Comment 1 Alex Schultz 2019-07-22 14:16:05 UTC
Please provide logs or full error messages.

Comment 2 Alex Schultz 2019-07-22 15:55:28 UTC
So I was able to deploy fine. We create this symlink in the tripleoclient action itself[0]. Based on the provided information, I'm assuming you didn't run the deployment command with sudo which would result in this type of failure.  Please double check your openstack tripleo deploy command and make sure it contains sudo as mentioned in the documentation[1].

As a side note I have created a few bugs around the documentation itself (Bug 1732074, Bug 1732075)

[0] https://opendev.org/openstack/python-tripleoclient/src/branch/stable/rocky/tripleoclient/v1/tripleo_deploy.py#L306-L310
[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/html/quick_start_guide/deploying-the-all-in-one-openstack-installation

Comment 3 chrisbro@redhat.com 2019-07-22 21:32:20 UTC
Hi Alex,

Below is my deploy command;

~~~
sudo openstack tripleo deploy \
  --templates \
  --local-ip=$IP/$NETMASK \
  -e /usr/share/openstack-tripleo-heat-templates/environments/standalone.yaml  \
  -r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \
  -e containers-prepare-parameters.yaml \
  -e standalone_parameters.yaml \
  --output-dir /home/stack/ \
  --standalone --debug  
~~~

Thanks for your help. I will reinstall and deploy again.

Comment 4 Alex Schultz 2019-07-22 21:57:56 UTC
Thanks. If it still fails, please provide the full deployment error and a full rpm list as well.