Bug 1545415

Summary: upgrade-non-controller.sh script does not support alternative plan names
Product: Red Hat OpenStack Reporter: david.costakos
Component: openstack-tripleo-commonAssignee: Carlos Camacho <ccamacho>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0 (Pike)CC: aschultz, ccamacho, dpeacock, emacchi, mbracho, mburns, mcornea, rhel-osp-director-maint, sclewis, slinaber, yprokule
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: openstack-tripleo-common-7.6.9-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 17:29:47 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 david.costakos 2018-02-14 21:28:04 UTC
Description of problem:
If I deploy a could using the --stack <altname> option, upgrade-non-controller script does not function to upgrade the cloud and exits with the error message
"ERROR: The Stack (overcloud) could not be found."

Version-Release number of selected component (if applicable):
openstack-tripleo-common-7.6.3-10.el7ost.noarch

How reproducible:
100%
Steps to Reproduce:
1. Deploy an OSP11 cloud using the --stack option to give it an alternate name
2. attempt upgrade
3.

Actual results:
fails

Expected results:
stacks not named "overcloud" function

Additional info:
This hack worked for me:
[stack@dcostako-undercloud ~]$ diff /tmp/upgrade-non-controller-fixed.sh /usr/bin/upgrade-non-controller.sh
175,178d174
< PLAN=$(openstack stack list -c 'Stack Name' -f value)
< echo Dave: $PLAN
< export TRIPLEO_PLAN_NAME=${PLAN}
<
186c182
<   openstack overcloud config download --config-dir "$UPGRADE_NODE" --name $PLAN
---
>   openstack overcloud config download --config-dir "$UPGRADE_NODE"

Comment 1 Carlos Camacho 2018-02-19 09:14:02 UTC
In devel: https://review.openstack.org/#/c/545771

Comment 7 errata-xmlrpc 2018-03-28 17:29:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0607