Bug 1828694 - [OSP15->16] 'ovn_dbs_short_bootstrap_node_name' is undefined
Summary: [OSP15->16] 'ovn_dbs_short_bootstrap_node_name' is undefined
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 16.1 (Train on RHEL 8.2)
Assignee: Jose Luis Franco
QA Contact: Jesse Pretorius
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-28 07:31 UTC by Jose Luis Franco
Modified: 2020-07-29 07:52 UTC (History)
2 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-0.20200527063427.c37dada.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-29 07:52:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1875579 0 None None None 2020-05-04 13:21:58 UTC
OpenStack gerrit 723833 0 None MERGED Add common_deploy_steps to post_upgrade_steps. 2020-07-23 07:37:57 UTC
OpenStack gerrit 728956 0 None MERGED Add common_deploy_steps to post_upgrade_steps. 2020-07-23 07:37:57 UTC
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:52:43 UTC

Description Jose Luis Franco 2020-04-28 07:31:29 UTC
Description of problem:

When performing an upgrade from OSP15 to OSP16, the Controllers upgrade step fails with:


TASK [Restart ovn-dbs service (pacemaker)] *************************************
Tuesday 28 April 2020  05:46:19 +0000 (0:00:02.384)       0:00:11.318 ********* 
fatal: [controller-0]: FAILED! => {"msg": "The conditional check 'ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower' failed. The error was: error while evaluating conditional (ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower): 'ovn_dbs_short_bootstrap_node_name' is undefined\n\nThe error appears to be in '/var/lib/mistral/1724455b-7bfb-47ad-98d5-37762b2f0750/Controller/post_upgrade_tasks.yaml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when: step|int == 1\n- name: Restart ovn-dbs service (pacemaker)\n  ^ here\n"}
fatal: [controller-1]: FAILED! => {"msg": "The conditional check 'ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower' failed. The error was: error while evaluating conditional (ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower): 'ovn_dbs_short_bootstrap_node_name' is undefined\n\nThe error appears to be in '/var/lib/mistral/1724455b-7bfb-47ad-98d5-37762b2f0750/Controller/post_upgrade_tasks.yaml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when: step|int == 1\n- name: Restart ovn-dbs service (pacemaker)\n  ^ here\n"}
fatal: [controller-2]: FAILED! => {"msg": "The conditional check 'ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower' failed. The error was: error while evaluating conditional (ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower): 'ovn_dbs_short_bootstrap_node_name' is undefined\n\nThe error appears to be in '/var/lib/mistral/1724455b-7bfb-47ad-98d5-37762b2f0750/Controller/post_upgrade_tasks.yaml': line 6, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  when: step|int == 1\n- name: Restart ovn-dbs service (pacemaker)\n  ^ here\n"}

It looks like the common_deploy_steps_playbooks.yaml isn't been imported for the post_upgrade_tasks as it is being done before running upgrade_tasks:                                                                                                                                   
- import_playbook: common_deploy_steps_playbooks.yaml
  vars:
    deploy_source_host: "Undercloud"
    deploy_target_host: "qe-Cloud-0"

cat post_upgrade_steps_playbook.yaml

- hosts: qe-Cloud-0
  any_errors_fatal: yes
  tasks:
    - include_tasks: post_upgrade_steps_tasks.yaml
      with_sequence: start=0 end=3
      vars:
        bootstrap_server_id: cdb5191f-7598-4345-8a6f-61192da89175
        deploy_identifier: 1588020793
        enable_debug: True
        enable_puppet: True
        container_cli: podman
        container_log_stdout_path: /var/log/containers/stdouts
        container_healthcheck_disabled: False
        docker_puppet_debug: False
        docker_puppet_process_count: 8
        docker_puppet_mount_host_puppet: True
      loop_control:
        loop_var: step


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Alex McLeod 2020-07-21 11:13:18 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-07-29 07:52:15 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:3148


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