Bug 1769800 - OSP14->OSP15 Upgrade fils in ovn upgrade_tasks
Summary: OSP14->OSP15 Upgrade fils in ovn upgrade_tasks
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: 15.0 (Stein)
Assignee: RHOS Maint
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-07 14:12 UTC by Jose Luis Franco
Modified: 2023-09-14 05:45 UTC (History)
3 users (show)

Fixed In Version: openstack-tripleo-heat-templates-10.6.2-0.20191112010444.b686e27.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 12:00:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1851660 0 None None None 2019-11-07 14:23:08 UTC
OpenStack gerrit 693359 0 'None' MERGED Fix typo in OVN upgrade tasks. 2020-02-10 08:19:03 UTC
OpenStack gerrit 693488 0 'None' MERGED Fix typo in OVN upgrade tasks. 2020-02-10 08:19:03 UTC
Red Hat Product Errata RHBA-2020:0643 0 None None None 2020-03-05 12:01:33 UTC

Description Jose Luis Franco 2019-11-07 14:12:44 UTC
Description of problem:

Upgrading from an OVN OSP14 environment into OSP15 fails in the following task during upgrade run command:

TASK [tripleo-upgrade-hiera : set/update the tripleo-upgrade key/value] ********
Thursday 07 November 2019  08:40:41 -0500 (0:00:00.482)       0:14:51.755 ***** 
ok: [controller-0] => {"ansible_facts": {"tripleo_upgrade_hiera_data_add": {"haproxy_short_node_names_override": ["controller-0"], "mysql_node_names_override": ["controller-
0.internalapi.redhat.local"], "mysql_short_node_names_override": ["controller-0"]}}, "changed": false}

TASK [tripleo-upgrade-hiera : write the updated tripleo-upgrade hiera data] ****
Thursday 07 November 2019  08:40:41 -0500 (0:00:00.139)       0:14:51.894 ***** 
changed: [controller-0] => {"changed": true, "checksum": "6d68194d8965c1f21d09ba220c54ca798bffaedc", "dest": "/etc/puppet/hieradata/upgrade.json", "gid": 0, "group": "root",
 "md5sum": "8797958f9c55e4d798ba8a134e2e9381", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:puppet_etc_t:s0", "size": 236, "src": "/home/tripleo-admin/.ansible/tmp/ansible-tmp-1573134041.373385-245674402813861/source", "state": "file", "uid": 0}

TASK [remove the extra hiera data needed for the upgrade.] *********************
Thursday 07 November 2019  08:40:42 -0500 (0:00:00.919)       0:14:52.814 ***** 
skipping: [controller-0] => (item=mysql_short_node_names_override)  => {"ansible_loop_var": "item", "changed": false, "item": "mysql_short_node_names_override", "skip_reason
": "Conditional result was False"}
skipping: [controller-0] => (item=mysql_node_names_override)  => {"ansible_loop_var": "item", "changed": false, "item": "mysql_node_names_override", "skip_reason": "Conditio
nal result was False"}

TASK [Disable the ovn-dbs-bundle cluster resource before container upgrade] ****
Thursday 07 November 2019  08:40:42 -0500 (0:00:00.138)       0:14:52.953 ***** 
fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'ovn_dbs_pcs_res|bool' failed. The error was: error while evaluating conditional (ovn_dbs_pcs_res|bool): 'ov
n_dbs_pcs_res' is undefined\n\nThe error appears to be in '/var/lib/mistral/2b0f2693-eea4-4056-9817-aedfe39ec415/Controller/upgrade_tasks_step1.yaml': line 221, 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: Disable the ovn-dbs-bundle cluster resourc
e before container upgrade\n    ^ here\n"}


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


How reproducible:


Steps to Reproduce:
1. Deploy OSP14 with OVN
2. Upgrade undercloud
3. Upgrade overcloud

Actual results:


Expected results:


Additional info:

Comment 4 Jose Luis Franco 2019-11-19 16:32:56 UTC
Verified in a manually upgraded OSP15 passed_phase1 environment:

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


TASK [tripleo-upgrade-hiera : write the updated tripleo-upgrade hiera data] ****
Tuesday 19 November 2019  11:08:27 -0500 (0:00:00.103)       0:03:09.175 ******
ok: [controller-0] => {"changed": false, "checksum": "9283147ba8e829085ebed0551c950824a13e4857", "dest": "/etc/puppet/hieradata/upgrade.json", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/puppet/hieradata/upgrade.json", "secontext": "system_u:object_r:puppet_etc_t:s0", "size": 635, "state": "file", "uid": 0}

TASK [remove the extra hiera data needed for the upgrade.] *********************
Tuesday 19 November 2019  11:08:27 -0500 (0:00:00.636)       0:03:09.811 ******
skipping: [controller-0] => (item=mysql_short_node_names_override)  => {"ansible_loop_var": "item", "changed": false, "item": "mysql_short_node_names_override", "skip_reason": "Conditional result was False"}
skipping: [controller-0] => (item=mysql_node_names_override)  => {"ansible_loop_var": "item", "changed": false, "item": "mysql_node_names_override", "skip_reason": "Conditional result was False"}

TASK [Disable the ovn-dbs-bundle cluster resource before container upgrade] ****
Tuesday 19 November 2019  11:08:28 -0500 (0:00:00.115)       0:03:09.927 ******
skipping: [controller-0] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [pcs resource bundle update ovn-dbs for new container image name] *********
Tuesday 19 November 2019  11:08:28 -0500 (0:00:00.086)       0:03:10.014 ******
skipping: [controller-0] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Enable the ovn-dbs-bundle cluster resource] ******************************
Tuesday 19 November 2019  11:08:28 -0500 (0:00:00.093)       0:03:10.108 ******
skipping: [controller-0] => {"changed": false, "skip_reason": "Conditional result was False"}

Comment 5 Alex McLeod 2020-02-19 12:48:19 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 7 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 8 Red Hat Bugzilla 2023-09-14 05:45:46 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.