Fix hard-coded domain in instance HA role
This commit sets a default value of "localdomain" for the domain parameter related to the overcloud. This is used inside the role while configuring nova-compute-checkevacuate resource and the fence-nova STONITH device. In this way, the user will be able to override the default by passing the overcloud_domain parameter in the command line. Fixes-Bug: #1782752 Change-Id: Ib76523a08e43b8d9f604e9fb2544017c9800d8a9
This commit is contained in:
parent
fef8389b5f
commit
9107b7d59c
|
@ -193,6 +193,12 @@ as **false**:
|
|||
|
||||
ansible-playbook /home/stack/tripleo-ha-utils/playbooks/overcloud-instance-ha.yml -e release="rhos-10" -e instance_ha_shared_storage=false
|
||||
|
||||
If a user configured the overcloud with a specific domain it is possible to
|
||||
override the default "localdomain" value by passing the **overcloud_domain**
|
||||
variable to the playbook:
|
||||
|
||||
ansible-playbook /home/stack/tripleo-ha-utils/playbooks/overcloud-instance-ha.yml -e release="rhos-10" -e overcloud_domain="mydomain"
|
||||
|
||||
If a user already installed STONITH for controllers and wants just to apply all
|
||||
the instance HA steps with STONITH for the compute nodes can launch this:
|
||||
|
||||
|
|
|
@ -8,3 +8,6 @@ instance_ha_action: "install"
|
|||
|
||||
# Do we have a shared storage or not?
|
||||
instance_ha_shared_storage: true
|
||||
|
||||
# Set overcloud domain
|
||||
overcloud_domain: "localdomain"
|
||||
|
|
|
@ -249,7 +249,7 @@
|
|||
|
||||
- name: Create compute pacemaker resources and constraints
|
||||
shell: |
|
||||
pcs resource create nova-compute-checkevacuate ocf:openstack:nova-compute-wait auth_url=$OS_AUTH_URL username=$OS_USERNAME password=$OS_PASSWORD tenant_name=$OS_TENANT_NAME domain=localdomain op start timeout=300 --clone interleave=true --disabled --force
|
||||
pcs resource create nova-compute-checkevacuate ocf:openstack:nova-compute-wait auth_url=$OS_AUTH_URL username=$OS_USERNAME password=$OS_PASSWORD tenant_name=$OS_TENANT_NAME domain={{ overcloud_domain }} op start timeout=300 --clone interleave=true --disabled --force
|
||||
pcs constraint location nova-compute-checkevacuate-clone rule resource-discovery=exclusive score=0 osprole eq compute
|
||||
pcs resource create nova-compute systemd:openstack-nova-compute op start timeout=60s --clone interleave=true --disabled --force
|
||||
pcs constraint location nova-compute-clone rule resource-discovery=exclusive score=0 osprole eq compute
|
||||
|
@ -285,11 +285,11 @@
|
|||
when: release in [ 'pike', 'rhos-12' ]
|
||||
|
||||
- name: Create fence-nova pacemaker resource (no shared storage)
|
||||
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 {{ pcs_fence_compute_no_shared_storage_opts }} --force"
|
||||
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={{ overcloud_domain }} record-only=1 {{ pcs_fence_compute_no_shared_storage_opts }} --force"
|
||||
when: release not in [ 'pike', 'rhos-12' ]
|
||||
|
||||
- name: Create fence-nova pacemaker resource (Pike/RHOS-12)
|
||||
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 {{ pcs_fence_compute_no_shared_storage_opts }} meta provides=unfencing --force"
|
||||
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={{ overcloud_domain }} record-only=1 {{ pcs_fence_compute_no_shared_storage_opts }} meta provides=unfencing --force"
|
||||
when: release in [ 'pike', 'rhos-12' ]
|
||||
|
||||
- name: Create pacemaker constraint for fence-nova to fix it on controller node and set resource-discovery never
|
||||
|
|
Loading…
Reference in New Issue