Bug 1516890

Summary: OSP11 -> OSP12 upgrade: upgrade-non-controller.sh script fails while running the upgrade os-net-config tasks
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Sofer Athlan-Guyot <sathlang>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 12.0 (Pike)CC: dbecker, jschluet, mbracho, mburns, morazi, rhel-osp-director-maint, sathlang
Target Milestone: rcKeywords: Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.3-16.el7ost, openstack-tripleo-common-7.6.3-6.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:22:16 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 Marius Cornea 2017-11-23 13:51:18 UTC
Description of problem:
OSP11 -> OSP12 upgrade: upgrade-non-controller.sh script fails while running the upgrade os-net-config tasks

 upgrade-non-controller.sh --upgrade compute-0 fails with:

TASK [Upgrade os-net-config] ******************************************************************************************************************************************************************************************************************
fatal: [192.168.24.24]: FAILED! => {"failed": true, "msg": "The conditional check 'not os_net_config_need_upgrade.stdout and os_net_config_has_config.rc == 0' failed. The error was: error while evaluating conditional (not os_net_config_need_upgrade.stdout and os_net_config_has_config.rc == 0): 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/compute-0/tripleo-f7TvgC-config/Compute/upgrade_tasks.yaml': line 148, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n  - name: Upgrade os-net-config\n    ^ here\n"}
	to retry, use: --limit @/home/stack/compute-0/tripleo-f7TvgC-config/upgrade_steps_playbook.retry

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-7.0.3-12.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP11
2. Upgrade to OSP12

Actual results:
upgrade-non-controller-sh script fails

Expected results:
upgrade succeeds.

Additional info:

Comment 1 Sofer Athlan-Guyot 2017-11-23 15:27:21 UTC
Adding a alternate solution here.  Discussion open for which would be the best.

We also need https://bugzilla.redhat.com/show_bug.cgi?id=1516867 for a complete solution.

Comment 2 Sofer Athlan-Guyot 2017-11-23 22:24:49 UTC
Adding another issue linked to this one.

Comment 3 Sofer Athlan-Guyot 2017-11-23 22:25:50 UTC
And the current solution.

Comment 4 Sofer Athlan-Guyot 2017-11-24 08:47:15 UTC
Adjust lp

Comment 9 errata-xmlrpc 2017-12-13 22:22:16 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-2017:3462