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:
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"}
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 '-'.
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
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days