Bug 2143948 - Automate Pacemaker configuration clean up during Compute scale_down when InstanceHA is enabled
Summary: Automate Pacemaker configuration clean up during Compute scale_down when Inst...
Keywords:
Status: ON_DEV
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.1 (Wallaby)
Hardware: All
OS: Linux
low
medium
Target Milestone: z2
: ---
Assignee: Antonio Romito
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-18 13:23 UTC by Antonio Romito
Modified: 2023-08-11 13:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad.net tripleo/+bug/1997574 0 None None None 2022-11-23 15:51:18 UTC
Red Hat Issue Tracker OSP-20292 0 None None None 2022-11-18 13:31:49 UTC

Description Antonio Romito 2022-11-18 13:23:49 UTC
Description of problem:

At the moment there isn't an automated procedure to clean up the Pacemaker cluster resources configuration when InstanceHA is in place.
We need to have an automated procedure in place during the scale_down task to properly cleanup Pacemaker resources for the deleted Compute node.

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

17.*

How reproducible:


Steps to Reproduce:
1. (undercloud) [stack@undercloud-0 ~]$ source ~/stackrc

2. (undercloud) [stack@undercloud-0 ~]$ vi /home/stack/composable_roles/network/baremetal_deployment.yaml

from:
~~~
...
- name: ComputeInstanceHA
  count: 2
  hostname_format: compute-%index%
  defaults:
    profile: compute
    network_config:
      template: /home/stack/composable_roles/network/nic-configs/compute.j2
    networks:
    - network: ctlplane
      vif: true
    - network: internal_api
    - network: tenant
    - network: storage
...
~~~

to:

~~~
...
- name: ComputeInstanceHA
  count: 1
  hostname_format: compute-%index%
  instances:
  - hostname: compute-0
    name: compute-0
  - hostname: compute-1
    name: compute-1
    provisioned: false
  defaults:
    profile: compute
    network_config:
      template: /home/stack/composable_roles/network/nic-configs/compute.j2
    networks:
    - network: ctlplane
      vif: true
    - network: internal_api
    - network: tenant
    - network: storage
...
~~~


3. (undercloud) [stack@undercloud-0 ~]$ openstack overcloud node delete --stack overcloud --baremetal-deployment /home/stack/composable_roles/network/baremetal_deployment.yaml


Actual results:

Deleted Compute node's resources are not automatically cleaned up in Pacemaker config. 


Expected results:

Deleted Compute node's resources are automatically cleaned up in Pacemaker config. 

Additional info:


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