Skip to content

Commit

Permalink
Failhard on any failed replacement operation
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Schmid <[email protected]>
  • Loading branch information
Joshua Schmid committed Aug 24, 2018
1 parent d554981 commit fbe85ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srv/salt/ceph/functests/1node/replace/delay.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Disengage {{ label }}:
salt.runner:
- name: disengage.safety
- failhard: True

keyword arguments:
salt.runner:
Expand All @@ -13,20 +14,24 @@ keyword arguments:
- kwarg:
delay: 1
timeout: 1
- failhard: True

Check OSDs {{ label }}:
salt.state:
- tgt: {{ salt['master.minion']() }}
- sls: ceph.tests.replace.check_0
- failhard: True

Restore OSDs {{ label }}:
salt.state:
- tgt: I@roles:storage
- sls: ceph.tests.replace.restore_osds
- tgt_type: compound
- failhard: True

Wait for Ceph {{ label }}:
salt.state:
- tgt: {{ salt['master.minion']() }}
- sls: ceph.wait.until.OK
- failhard: True

5 changes: 5 additions & 0 deletions srv/salt/ceph/functests/1node/replace/force.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Disengage {{ label }}:
salt.runner:
- name: disengage.safety
- failhard: True

forced removal:
salt.runner:
Expand All @@ -12,20 +13,24 @@ forced removal:
- 0
- kwarg:
force: True
- failhard: True

Check OSDs {{ label }}:
salt.state:
- tgt: {{ salt['master.minion']() }}
- sls: ceph.tests.replace.check_0
- failhard: True

Restore OSDs {{ label }}:
salt.state:
- tgt: I@roles:storage
- sls: ceph.tests.replace.restore_osds
- tgt_type: compound
- failhard: True

Wait for Ceph {{ label }}:
salt.state:
- tgt: {{ salt['master.minion']() }}
- sls: ceph.wait.until.OK
- failhard: True

5 changes: 5 additions & 0 deletions srv/salt/ceph/functests/1node/replace/multiple.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,32 @@
Disengage {{ label }}:
salt.runner:
- name: disengage.safety
- failhard: True

Multiple arguments:
salt.runner:
- name: replace.osd
- arg:
- 0
- 1
- failhard: True

Check OSDs {{ label }}:
salt.state:
- tgt: {{ salt['master.minion']() }}
- sls: ceph.tests.replace.check_absent
- failhard: True

Restore OSDs {{ label }}:
salt.state:
- tgt: 'I@roles:storage'
- sls: ceph.tests.replace.restore_osds
- tgt_type: compound
- failhard: True

Wait for Ceph {{ label }}:
salt.state:
- tgt: {{ salt['master.minion']() }}
- sls: ceph.wait.until.OK
- failhard: True

0 comments on commit fbe85ff

Please sign in to comment.