Bug 1571805

Summary: [UPDATE/UPGRADE/FFU]: 'openstack overcloud update/upgrade/ffwd-upgrade run' fails if stack is different then overcloud
Product: Red Hat OpenStack Reporter: Chris Janiszewski <cjanisze>
Component: python-tripleoclientAssignee: Carlos Camacho <ccamacho>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 13.0 (Queens)CC: ccamacho, hbrock, jpichon, jschluet, jslagle, jstransk, mbracho, mburns, mcornea, morazi, yprokule
Target Milestone: betaKeywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-9.2.1-5.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:53:37 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 Chris Janiszewski 2018-04-25 12:53:26 UTC
Description of problem:
Running FFU from OSP10 -> OSP13
When deployed overcloud, specified the stack name to be something different. 

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

How reproducible:
every time

Steps to Reproduce:
1. Deploy OSP10 with --stack different_name
2. Perform FFU upgrade to OSP13 with openstack overcloud ffwd-upgrade run
3.

Actual results:
(undercloud) [stack@undercloud ~]$ openstack overcloud ffwd-upgrade run
Started Mistral Workflow tripleo.package_update.v1.update_nodes. Execution ID: 46caaa3b-bf7f-4d7b-96be-73cab0ddedb7
Waiting for messages on queue 'ffwdupgrade' with no timeout.
[u'Using /tmp/ansible-mistral-actionW8vHZ6/ansible.cfg as config file',
u' [WARNING]: Skipping unexpected key (hostvars) in group (_meta), only "vars",',
u'"children" and "hosts" are valid',
u' [WARNING]: Could not match supplied host pattern, ignoring: overcloud',
u'',
u'PLAY [overcloud] ***************************************************************',
u'skipping: no hosts matched',
u'',
u'PLAY RECAP *********************************************************************',
u'']
'headers'

Expected results:
things should start upgrading

Additional info:
There is a workaround:
tripleo-ansible-inventory --stack chrisj-ffu --static-yaml-inventory overcloud.yml
openstack overcloud ffwd-upgrade run --static-inventory overcloud.yml

Comment 1 Chris Janiszewski 2018-04-25 13:34:21 UTC
looks like similar problem occurs later in the process with:
openstack overcloud upgrade run --roles Controller --skip-tags validation

Comment 2 Jiri Stransky 2018-04-27 13:44:13 UTC
This likely affects minor and major upgrade too, changing title.

Comment 3 Carlos Camacho 2018-05-07 07:20:45 UTC
Hey Mike, Maria we need this as blocker, the fix is merged upstream, and waiting for the downstream patch/ package.

Comment 4 Carlos Camacho 2018-05-07 07:23:07 UTC
Waiting for queens to merge

Comment 5 Carlos Camacho 2018-05-07 09:56:24 UTC
Queens patch merged, waiting for blocker flag

Comment 8 Carlos Camacho 2018-05-07 15:10:46 UTC
Hey Maria, it affects all Minor updates, major upgrades and fast forward upgrades.

Comment 15 errata-xmlrpc 2018-06-27 13:53:37 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/RHEA-2018:2086