Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1769837

Summary: OSP14->OSP15 Upgrade fils in ovn upgrade_tasks: ovn_dbs_image undefined
Product: Red Hat OpenStack Reporter: Jose Luis Franco <jfrancoa>
Component: openstack-tripleo-heat-templatesAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: high Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: aschultz, mburns, rhos-maint
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-10.6.2-0.20191112010444.b686e27.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 12:00:58 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 Jose Luis Franco 2019-11-07 15:16:47 UTC
Description of problem:

Upgrading from OVN OSP14 environment into OSP15 fails with the following error during upgrade run command:

TASK [Pull latest ovn-dbs images] **********************************************
Thursday 07 November 2019  09:55:02 -0500 (0:00:05.128)       0:13:47.533 ***** 
fatal: [controller-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ovn_dbs_image' is undefined\n\nThe error appears to be in 
'/var/lib/mistral/26fe72ad-58f3-4851-a303-1c6a9d3d6099/Controller/upgrade_tasks_step3.yaml': line 171, column 5, but may\nbe elsewhere in the file depending on the exact syn
tax problem.\n\nThe offending line appears to be:\n\n- block:\n  - command: '{{container_cli}} pull {{ovn_dbs_image}}'\n    ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShoul
d be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Jose Luis Franco 2019-11-19 16:24:54 UTC
Verified in a manual upgrade to current OSP15 passed_phase1:

(undercloud) [stack@undercloud-0 ~]$ rpm -qa | grep tripleo-heat-templates
openstack-tripleo-heat-templates-10.6.2-0.20191113030444.fc5ca30.el8ost.noarch

TASK [Pull latest ovn-dbs images] **********************************************
Tuesday 19 November 2019  11:10:27 -0500 (0:00:03.938)       0:05:09.003 ****** 
changed: [controller-0] => {"changed": true, "cmd": ["podman", "pull", "192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:20191114.1"], "delta": "0:00:06.376189", "end"
: "2019-11-19 16:10:33.295110", "rc": 0, "start": "2019-11-19 16:10:26.918921", "stderr": "Trying to pull 192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:20191114.1..
.Getting image source signatures\nCopying blob sha256:f5b4a35604737933303cb3b31d867225c251ca1c4ee085fd136e0c813ee29bfd\nCopying blob sha256:ba293c69720e135eb642e9481565ef0e7
f1fc5d579e0e9026fbc755c340481b3\nCopying blob sha256:93dce31b122d9fb675286d4236a78d957c57cae88361f7a39b13457fc8082a0f\nCopying blob sha256:9b02285ceca1ffafa0ce56ff0f82f950e1
b230ccd27c3553b54ed289178a2b07\nCopying blob sha256:e26f01775c94f113108125d782c3b4aaa7529ac861381290375740cf92b72feb\nCopying blob sha256:af9128eda7048f6dd4acbb0087e35ef73d2
eee56738ab7e75a3df61662356b3e\nCopying config sha256:74cb4cfd75ee8bf54385460a07f1d201f2656b21a32744ff742dccf5519c61ed\nWriting manifest to image destination\nStoring signatu
res", "stderr_lines": ["Trying to pull 192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:20191114.1...Getting image source signatures", "Copying blob sha256:f5b4a356047
37933303cb3b31d867225c251ca1c4ee085fd136e0c813ee29bfd", "Copying blob sha256:ba293c69720e135eb642e9481565ef0e7f1fc5d579e0e9026fbc755c340481b3", "Copying blob sha256:93dce31b
122d9fb675286d4236a78d957c57cae88361f7a39b13457fc8082a0f", "Copying blob sha256:9b02285ceca1ffafa0ce56ff0f82f950e1b230ccd27c3553b54ed289178a2b07", "Copying blob sha256:e26f0
1775c94f113108125d782c3b4aaa7529ac861381290375740cf92b72feb", "Copying blob sha256:af9128eda7048f6dd4acbb0087e35ef73d2eee56738ab7e75a3df61662356b3e", "Copying config sha256:
74cb4cfd75ee8bf54385460a07f1d201f2656b21a32744ff742dccf5519c61ed", "Writing manifest to image destination", "Storing signatures"], "stdout": "74cb4cfd75ee8bf54385460a07f1d20
1f2656b21a32744ff742dccf5519c61ed", "stdout_lines": ["74cb4cfd75ee8bf54385460a07f1d201f2656b21a32744ff742dccf5519c61ed"]}

TASK [Get previous ovn_dbs image id] *******************************************
Tuesday 19 November 2019  11:10:33 -0500 (0:00:06.693)       0:05:15.697 ****** 
changed: [controller-0] => {"changed": true, "cmd": "podman inspect --format '{{.Id}}' 192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:pcmklatest", "delta": "0:00:00.
072780", "end": "2019-11-19 16:10:33.684342", "failed_when_result": false, "msg": "non-zero return code", "rc": 125, "start": "2019-11-19 16:10:33.611562", "stderr": "Error:
 error getting image \"192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:pcmklatest\": unable to find '192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:pcmklatest
' in local storage: no such image", "stderr_lines": ["Error: error getting image \"192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:pcmklatest\": unable to find '192.1
68.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:pcmklatest' in local storage: no such image"], "stdout": "", "stdout_lines": []}

TASK [Get new ovn_dbs image id] ************************************************
Tuesday 19 November 2019  11:10:34 -0500 (0:00:00.392)       0:05:16.089 ****** 
changed: [controller-0] => {"changed": true, "cmd": "podman inspect --format '{{.Id}}' 192.168.24.1:8787/rh-osbs/rhosp15-openstack-ovn-northd:20191114.1", "delta": "0:00:00.
077339", "end": "2019-11-19 16:10:34.080013", "rc": 0, "start": "2019-11-19 16:10:34.002674", "stderr": "", "stderr_lines": [], "stdout": "74cb4cfd75ee8bf54385460a07f1d201f2
656b21a32744ff742dccf5519c61ed", "stdout_lines": ["74cb4cfd75ee8bf54385460a07f1d201f2656b21a32744ff742dccf5519c61ed"]}

Comment 4 Alex McLeod 2020-02-19 12:48:54 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to '-'.

Comment 6 errata-xmlrpc 2020-03-05 12:00:58 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-2020:0643

Comment 7 Red Hat Bugzilla 2023-09-14 05:45:47 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days