Fix Pike/OSP12 IHA cluster wide setting
This commit adds an essential command to the apply steps for the Instance HA in Pike/OSP12: pcs resource defaults requires=fencing Without this in place once the compute's unfence trigger is created all the bundle resources are stopped. By default [1] "requires" meta attribute for each resource is calculated depending on the status of the other resources. It should be "fencing" since we have stonith-enabled to true, but since we are creating also a compute dummy resource with provides=unfencing then it seems that the requires defaults become "unfencing" too, so we need to explicit set the default for all the other resources. [1] http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Pacemaker_Explained/#_resource_meta_attributes Change-Id: I3a93c3c8ecf9bb9e4d2fb1ca2cecaf777e7547aa
This commit is contained in:
parent
6e90e92f89
commit
00c9e0adca
@ -252,6 +252,10 @@
|
||||
pcs stonith show ipmilan-{{ hostvars[item]['ansible_hostname'] }}
|
||||
with_items: "{{ groups['compute'] }}"
|
||||
|
||||
- name: Set requires to fencing as default for all resources (Pike/RHOS-12)
|
||||
shell: "pcs resource defaults requires=fencing"
|
||||
when: release in [ 'pike', 'rhos-12' ]
|
||||
|
||||
- name: Create fence-nova pacemaker resource
|
||||
shell: "pcs stonith create fence-nova fence_compute auth-url=$OS_AUTH_URL login=$OS_USERNAME passwd=$OS_PASSWORD tenant-name=$OS_TENANT_NAME domain=localdomain record-only=1 --force"
|
||||
when: instance_ha_shared_storage|bool and release not in [ 'pike', 'rhos-12' ]
|
||||
@ -317,7 +321,7 @@
|
||||
- nova-compute
|
||||
when: release not in [ 'pike', 'rhos-12' ]
|
||||
|
||||
- name: Create dummy compute unfence trigger (Pike/RHOS-12)
|
||||
- name: Create compute unfence resource to override default resource requires (Pike/RHOS-12)
|
||||
shell: |
|
||||
pcs resource create compute-unfence-trigger ocf:pacemaker:Dummy op start requires="unfencing" --clone --disabled
|
||||
pcs constraint location compute-unfence-trigger-clone rule resource-discovery=never score=-INFINITY osprole ne compute
|
||||
|
Loading…
x
Reference in New Issue
Block a user