upgrade-non-controller.sh needs to use the stack name

Bug #1785040 reported by Carlos Camacho on 2018-08-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Carlos Camacho

Bug Description

We are using upgrade-non-controller.sh without specifying the stack name.

So, all calls will fail if the Overcloud stack name is different than overcloud.

Example of this issue:

Description of problem:
-----------------------
Upgrade of compute nodes in overcloud called qe-Cloud-0 failed:

source /home/stack/stackrc
upgrade-non-controller.sh --upgrade cmp-0-r1 &> cmp-0-r1-upgrade.log

Thu Aug 2 04:35:03 EDT 2018 upgrade-non-controller.sh Logging to upgrade-non-controller.sh-cmp-0-r1
Thu Aug 2 04:35:09 EDT 2018 upgrade-non-controller.sh nova node cmp-0-r1 found with IP 192.168.24.14
Thu Aug 2 04:35:09 EDT 2018 upgrade-non-controller.sh Executing /root/tripleo_upgrade_node.sh on 192.168.24.14
Warning: Permanently added '192.168.24.14' (ECDSA) to the list of known hosts.
 "nova_compute",
Thu Aug 2 08:35:09 UTC 2018 082ee803-43af-4d8e-a04c-43d5a2d48a6b tripleo-upgrade cmp-0-r1 /root/tripleo_upgrade_node.sh has completed - moving onto ansible playbooks
Thu Aug 2 04:35:10 EDT 2018 upgrade-non-controller.sh Clearing any existing dir cmp-0-r1 and downloading config
ERROR: The Stack (overcloud) could not be found.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
python-tripleoclient-7.3.10-3.el7ost.noarch
openstack-tripleo-heat-templates-7.0.12-5.el7ost.noarch

Steps to Reproduce:
-------------------
1. Deploy RHOS-11 with custom stack name
2. Follow upgrade procedure to upgrade to RHOS-12

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

Changed in tripleo:
status: Triaged → In Progress

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

Change abandoned by Carlos Camacho (<email address hidden>) on branch: master
Review: https://review.openstack.org/588203
Reason: Using https://review.openstack.org/#/c/588231

Reviewed: https://review.openstack.org/588202
Committed: https://git.openstack.org/cgit/openstack/tripleo-upgrade/commit/?id=db03475b49e42f449b8eeb1478314f202d845f79
Submitter: Zuul
Branch: master

commit db03475b49e42f449b8eeb1478314f202d845f79
Author: Carlos Camacho <email address hidden>
Date: Thu Aug 2 12:17:16 2018 +0200

    Add the overcloud stack name when calling upgrade-non-controller.sh

    If we call upgrade-non-controller.sh we might need to use a different stack
    name.

    This patch adds the Overcloud stack name when calling upgrade-non-controller.sh

    Change-Id: I2e8ac84033521a992f6c36571ea8054522f8871c
    Partial-bug: 1785040

Reviewed: https://review.openstack.org/588450
Committed: https://git.openstack.org/cgit/openstack/tripleo-upgrade/commit/?id=5dc0496aaeb45d54ab4bd4462264ac3298f1ec80
Submitter: Zuul
Branch: stable/pike

commit 5dc0496aaeb45d54ab4bd4462264ac3298f1ec80
Author: Carlos Camacho <email address hidden>
Date: Thu Aug 2 12:17:16 2018 +0200

    Add the overcloud stack name when calling upgrade-non-controller.sh

    If we call upgrade-non-controller.sh we might need to use a different stack
    name.

    This patch adds the Overcloud stack name when calling upgrade-non-controller.sh

    Change-Id: I2e8ac84033521a992f6c36571ea8054522f8871c
    Partial-bug: 1785040
    (cherry picked from commit db03475b49e42f449b8eeb1478314f202d845f79)

tags: added: in-stable-pike

Change abandoned by Carlos Camacho (<email address hidden>) on branch: master
Review: https://review.openstack.org/588231

Reviewed: https://review.openstack.org/588489
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=878e5376d3a72afb851108a92c50dfa9c15ee6f8
Submitter: Zuul
Branch: stable/queens

commit 878e5376d3a72afb851108a92c50dfa9c15ee6f8
Author: Carlos Camacho <email address hidden>
Date: Fri Aug 3 11:37:27 2018 +0200

    Include the stack name when generating the tripleo-ansible-inventory

    The stack name is not included when
    generating the tripleo-ansible-inventory
    this patch adds this option.

    Change-Id: Ie19f4ffad0f652a1d5f519b8976181e7d3c7c18a
    Partial-bug: 1785040

tags: added: in-stable-queens

Reviewed: https://review.openstack.org/588506
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=7a136d8fb2a4dd6766ede5927e2c85aa22ce8c84
Submitter: Zuul
Branch: stable/pike

commit 7a136d8fb2a4dd6766ede5927e2c85aa22ce8c84
Author: Carlos Camacho <email address hidden>
Date: Fri Aug 3 11:37:27 2018 +0200

    Include the stack name when generating the tripleo-ansible-inventory

    The stack name is not included when
    generating the tripleo-ansible-inventory
    this patch adds this option.

    Change-Id: Ie19f4ffad0f652a1d5f519b8976181e7d3c7c18a
    Partial-bug: 1785040
    (cherrypicked from commit 878e5376d3a72afb851108a92c50dfa9c15ee6f8)

Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers