Merge "Guarantee that ovn-dbs-pcmk update_tasks are run when the cluster is up"
This commit is contained in:
commit
71c2da196f
|
@ -269,6 +269,23 @@ outputs:
|
|||
- {get_param: CertificateKeySize}
|
||||
ca: ipa
|
||||
update_tasks:
|
||||
# When a schema change happens, the newer slaves don't connect
|
||||
# back to the older master and end up timing out. So we clean
|
||||
# up the error here until we get a fix for
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1759974
|
||||
- name: Clear ovndb cluster pacemaker error
|
||||
shell: "pcs resource cleanup ovn-dbs-bundle"
|
||||
when:
|
||||
- step|int == 0
|
||||
# Then we ban the resource for this node. It has no effect on
|
||||
# the first two controllers, but when we reach the last one,
|
||||
# it avoids a cut in the control plane as master get chosen in
|
||||
# one of the updated Stopped ovn. They are in error, that why
|
||||
# we need the cleanup just before.
|
||||
- name: Ban ovndb resource on the current node.
|
||||
shell: "pcs resource ban ovn-dbs-bundle $(hostname | cut -d. -f1)"
|
||||
when:
|
||||
- step|int == 0
|
||||
- name: Tear-down non-HA ovn-dbs containers
|
||||
when:
|
||||
- step|int == 1
|
||||
|
@ -282,23 +299,6 @@ outputs:
|
|||
- ovn_north_db_server
|
||||
- ovn_south_db_server
|
||||
- ovn_northd
|
||||
# When a schema change happens, the newer slaves don't connect
|
||||
# back to the older master and end up timing out. So we clean
|
||||
# up the error here until we get a fix for
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1759974
|
||||
- name: Clear ovndb cluster pacemaker error
|
||||
shell: "pcs resource cleanup ovn-dbs-bundle"
|
||||
when:
|
||||
- step|int == 1
|
||||
# Then we ban the resource for this node. It has no effect on
|
||||
# the first two controllers, but when we reach the last one,
|
||||
# it avoids a cut in the control plane as master get chosen in
|
||||
# one of the updated Stopped ovn. They are in error, that why
|
||||
# we need the cleanup just before.
|
||||
- name: Ban ovndb resource on the current node.
|
||||
shell: "pcs resource ban ovn-dbs-bundle $(hostname | cut -d. -f1)"
|
||||
when:
|
||||
- step|int == 1
|
||||
- name: ovn-dbs fetch and retag container image for pacemaker
|
||||
when:
|
||||
- step|int == 3
|
||||
|
|
Loading…
Reference in New Issue