undercloud install fails with non-default template path

Bug #1781600 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Steven Hardy

Bug Description

Deployment failed.
Command '['sudo', 'openstack', 'tripleo', 'deploy', '--standalone', '--standalone-role', 'Undercloud', '--stack', 'undercloud', '--local-domain=localdomain', '--local-ip=192.168.122.218/8', '--templates=/home/stack/tripleo-heat-templates', '--heat-native', '-e', '/home/stack/tripleo-heat-templates/environments/docker.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/undercloud.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/ironic.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/ironic-inspector.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/mistral.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/zaqar.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/tripleo-ui.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/tempest.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/public-tls-undercloud.yaml', '--public-virtual-ip', '192.168.24.2', '--control-virtual-ip', '192.168.24.3', '-e', '/home/stack/tripleo-heat-templates/environments/ssl/tls-endpoints-public-ip.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/use-dns-for-vips.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/undercloud-haproxy.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/services/undercloud-keepalived.yaml', '--deployment-user', 'stack', '--output-dir=/home/stack', '--cleanup', '-e', '/home/stack/tripleo-config-generated-env-files/undercloud_parameters.yaml', '-e', '/home/stack/tripleo-heat-templates/environments/tripleo-validations.yaml', '-e', '/home/stack/containers.yaml', '--log-file=install-undercloud.log', '-e', '/usr/share/openstack-tripleo-heat-templates/undercloud-stack-vstate-dropin.yaml']

Can be reproduced like:

[stack@undercloud ~]$ cat run.sh
export THT_HOME=/home/stack/tripleo-heat-templates
time openstack undercloud install --use-heat \
| tee openstack_undercloud_deploy.out | lolcat

We're looking for
/usr/share/openstack-tripleo-heat-templates/undercloud-stack-vstate-dropin.yaml']

Which doesn't exist, so the install fails.

Steven Hardy (shardy)
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → stein-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/582580

Changed in tripleo:
assignee: nobody → Steven Hardy (shardy)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-tripleoclient (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/582916

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/582580
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=6ed0955049cd7ae7b11a0a5ae8ab167d1c8d3d9c
Submitter: Zuul
Branch: master

commit 6ed0955049cd7ae7b11a0a5ae8ab167d1c8d3d9c
Author: Steven Hardy <email address hidden>
Date: Fri Jul 13 15:01:33 2018 +0100

    Respect THT_HOME for vstate dropin file

    Currently this points to /usr/share even when THT_HOME is set.

    Change-Id: I000e8e9c101a9b1e0568b192e02938f83de128f9
    Closes-Bug: #1781600

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-tripleoclient (master)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/582916
Reason: this does not fit the model of --templates designed cases, which is

1. --templates (no args, uses default /usr/share location)
2. --templates foo (foo must exist, so we use it)

also, there was a -compat RPM for exactly this purpose (diverging the mixed tht paths) a while back

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 10.4.0

This issue was fixed in the openstack/python-tripleoclient 10.4.0 release.

Changed in tripleo:
milestone: stein-1 → rocky-rc1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.