centos9: ha resourced not restarted as expected during minor update

Bug #1942771 reported by Damien Ciabrini
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Damien Ciabrini

Bug Description

With pacemaker 2.1, various attributes and their value have changed in the CIB, and we don't track the necessary information anymore in our resource scripts:
  . The master/slave terminology has been superseded by promoted/unpromoted role values.
  . The class name of the resources configured in the cluster start with 'ocf:' rather than 'ocf::'.

This naming changes made the tracking of the resource restart fail:

# TRIPLEO_MINOR_UPDATE=true ./pacemaker_restart_bundle.sh ovn_dbs ovndb_servers ovn-dbs-bundle Slave Master
Mon Sep 6 11:06:09 AM UTC 2021: Restarting ovn-dbs-bundle locally on 'undercloud-0'
ovn-dbs-bundle successfully restarted
Mon Sep 6 11:06:16 AM UTC 2021: Waiting until ovndb_servers has restarted on undercloud-0 and is in state Unpromoted
Mon Sep 6 11:06:16 AM UTC 2021: Will probe resource state with the following XPath pattern: //bundle/replica/resource[@resource_agent='ocf::pacemaker:remote']/node[@name='undercloud-0']/../../resource[@id='ovndb_servers']
Mon Sep 6 11:06:16 AM UTC 2021: Waiting for ovndb_servers to transition to role Unpromoted on undercloud-0
Mon Sep 6 11:06:20 AM UTC 2021: Waiting for ovndb_servers to transition to role Unpromoted on undercloud-0
Mon Sep 6 11:06:24 AM UTC 2021: Waiting for ovndb_servers to transition to role Unpromoted on undercloud-0
[...]

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/807572
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/128c2bcc25c057dc8a880b266869369f02f4f504
Submitter: "Zuul (22348)"
Branch: master

commit 128c2bcc25c057dc8a880b266869369f02f4f504
Author: Damien Ciabrini <email address hidden>
Date: Mon Sep 6 14:22:39 2021 +0200

    CentOS 9: support restart of HA resources

    Pacemaker 2.1 changed naming convention around multi-state
    resources and ocf resource name. Adapt our resource restart
    scripts so that they parse the proper data from the CIB.

    Change-Id: Ieade3444e44e305f507c057991e02048ab5f3b3a
    Closes-Bug: #1942771

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/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/807768

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/807768
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/a8085526723b1237d818f1204df4f9106d9da811
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit a8085526723b1237d818f1204df4f9106d9da811
Author: Damien Ciabrini <email address hidden>
Date: Mon Sep 6 14:22:39 2021 +0200

    CentOS 9: support restart of HA resources

    Pacemaker 2.1 changed naming convention around multi-state
    resources and ocf resource name. Adapt our resource restart
    scripts so that they parse the proper data from the CIB.

    Change-Id: Ieade3444e44e305f507c057991e02048ab5f3b3a
    Closes-Bug: #1942771
    (cherry picked from commit 128c2bcc25c057dc8a880b266869369f02f4f504)

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

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

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

Other bug subscribers