mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-30 07:28:52 +00:00
pacemaker: fix race condition on resource creation (#11750)
* remove pacemaker wait arg and fix race condition * fix up pacemaker resource and stonith polling * add changelog for pacemaker timeout bug * remove env from test case and fix changelog file name * Update changelogs/fragments/11750-pacemaker-wait-race-condition.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
afe9de7562
commit
6c809dd9db
8 changed files with 382 additions and 17 deletions
|
|
@ -33,7 +33,7 @@ test_cases:
|
|||
rc: 1
|
||||
out: ""
|
||||
err: ""
|
||||
- command: ["/testbin/pcs", stonith, create, virtual-stonith, fence_virt, "pcmk_host_list=f1", "op", "monitor", "interval=30s", "--wait=300"]
|
||||
- command: ["/testbin/pcs", stonith, create, virtual-stonith, fence_virt, "pcmk_host_list=f1", "op", "monitor", "interval=30s"]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: ""
|
||||
|
|
@ -43,6 +43,11 @@ test_cases:
|
|||
rc: 0
|
||||
out: " * virtual-stonith\t(stonith:fence_virt):\t Started"
|
||||
err: ""
|
||||
- command: ["/testbin/pcs", stonith, status, virtual-stonith]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: " * virtual-stonith\t(stonith:fence_virt):\t Started"
|
||||
err: ""
|
||||
- id: test_present_minimal_input_stonith_exists
|
||||
input:
|
||||
state: present
|
||||
|
|
@ -65,7 +70,7 @@ test_cases:
|
|||
rc: 0
|
||||
out: " * virtual-stonith\t(stonith:fence_virt):\t Started"
|
||||
err: ""
|
||||
- command: ["/testbin/pcs", stonith, create, virtual-stonith, fence_virt, "pcmk_host_list=f1", "op", "monitor", "interval=30s", "--wait=300"]
|
||||
- command: ["/testbin/pcs", stonith, create, virtual-stonith, fence_virt, "pcmk_host_list=f1", "op", "monitor", "interval=30s"]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: ""
|
||||
|
|
@ -75,6 +80,11 @@ test_cases:
|
|||
rc: 0
|
||||
out: " * virtual-stonith\t(stonith:fence_virt):\t Started"
|
||||
err: ""
|
||||
- command: ["/testbin/pcs", stonith, status, virtual-stonith]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: " * virtual-stonith\t(stonith:fence_virt):\t Started"
|
||||
err: ""
|
||||
- id: test_absent_minimal_input_stonith_not_exists
|
||||
input:
|
||||
state: absent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue