Upgrade with OVN fails on upgrade tasks: ovn_dbs_pcs_res' is undefined

Bug #1851660 reported by Jose Luis Franco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Jose Luis Franco

Bug Description

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"}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/693359

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/693359
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=eda88f0c7142ae22d2b252956fcaf461eb7e99b6
Submitter: Zuul
Branch: master

commit eda88f0c7142ae22d2b252956fcaf461eb7e99b6
Author: Jose Luis Franco Arza <email address hidden>
Date: Thu Nov 7 15:21:02 2019 +0100

    Fix typo in OVN upgrade tasks.

    Change-Id: I354c2fedafb88bb363321d1338c39d479560fc3e
    Closes-Bug: #1851660

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/693487

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/693488

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/stein)

Reviewed: https://review.opendev.org/693488
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=d54d0d92c562e750bc31b8592d12cd561104a980
Submitter: Zuul
Branch: stable/stein

commit d54d0d92c562e750bc31b8592d12cd561104a980
Author: Jose Luis Franco Arza <email address hidden>
Date: Thu Nov 7 15:21:02 2019 +0100

    Fix typo in OVN upgrade tasks.

    Change-Id: I354c2fedafb88bb363321d1338c39d479560fc3e
    Closes-Bug: #1851660
    (cherry picked from commit eda88f0c7142ae22d2b252956fcaf461eb7e99b6)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/train)

Reviewed: https://review.opendev.org/693487
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=18ce57ea87bbd5add443427c3be557c7808be3ac
Submitter: Zuul
Branch: stable/train

commit 18ce57ea87bbd5add443427c3be557c7808be3ac
Author: Jose Luis Franco Arza <email address hidden>
Date: Thu Nov 7 15:21:02 2019 +0100

    Fix typo in OVN upgrade tasks.

    Change-Id: I354c2fedafb88bb363321d1338c39d479560fc3e
    Closes-Bug: #1851660
    (cherry picked from commit eda88f0c7142ae22d2b252956fcaf461eb7e99b6)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 12.0.0

This issue was fixed in the openstack/tripleo-heat-templates 12.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.6.2

This issue was fixed in the openstack/tripleo-heat-templates 10.6.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.3.1

This issue was fixed in the openstack/tripleo-heat-templates 11.3.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.