plan-environment.yaml in home dir can break undercloud install/upgrade

Bug #1797922 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Alex Schultz

Bug Description

Credits to James Slagle for the bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1638931

openstack tripleo deploy, which drives the undercloud installer and upgrade, defaults to using plan-environment.yaml from the current directory as set in contsants.py.

This can cause issues when using the openstack undercloud commands if you happen to have a plan-environment.yaml from your overcloud (or from anywhere) in the current directory.

Changed in tripleo:
importance: High → Medium
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/611189

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
assignee: Emilien Macchi (emilienm) → Alex Schultz (alex-schultz)
tags: added: rocky-backport-potential
Changed in tripleo:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/611189
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=45395e8c0d8b2f790965f3b450b8cfdb95848d9e
Submitter: Zuul
Branch: master

commit 45395e8c0d8b2f790965f3b450b8cfdb95848d9e
Author: Emilien Macchi <email address hidden>
Date: Tue Oct 16 18:10:42 2018 -0400

    Fix defaults to templates, roles-file and plan-environment

    This change updates the --templates parameter to now have a default
    which makes it optional and only necessary when something different than
    the default. Additionally we're removing the defaults as it causes
    issues, when someone download the overcloud plan on the undercloud
    because it would use the current working director to load the file.
    Now it will use the --templates folder as a base for the default value
    and will take the specific file if --roles-file or
    --plan-environment-file is specified.

    Change-Id: Ia0c8a7caaf8f24ef1e5b0858d57827633f2473e9
    Closes-Bug: #1797922
    Co-Authored-By: Alex Schultz <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 11.1.0

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

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

Reviewed: https://review.openstack.org/625917
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=7835a8a300d72776b0dd9fb9b3b7af7dbc9c670e
Submitter: Zuul
Branch: stable/rocky

commit 7835a8a300d72776b0dd9fb9b3b7af7dbc9c670e
Author: Emilien Macchi <email address hidden>
Date: Tue Oct 16 18:10:42 2018 -0400

    Fix defaults to templates, roles-file and plan-environment

    This change updates the --templates parameter to now have a default
    which makes it optional and only necessary when something different than
    the default. Additionally we're removing the defaults as it causes
    issues, when someone download the overcloud plan on the undercloud
    because it would use the current working director to load the file.
    Now it will use the --templates folder as a base for the default value
    and will take the specific file if --roles-file or
    --plan-environment-file is specified.

    Change-Id: Ia0c8a7caaf8f24ef1e5b0858d57827633f2473e9
    Closes-Bug: #1797922
    Co-Authored-By: Alex Schultz <email address hidden>
    (cherry picked from commit 45395e8c0d8b2f790965f3b450b8cfdb95848d9e)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 10.6.1

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

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.