mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
qa: turn fail_fs off in case default changes
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
b54cb863ef
commit
978b3494c3
@ -1,9 +1,15 @@
|
||||
teuthology:
|
||||
premerge: |
|
||||
if not yaml.teuthology.variables.fail_fs then reject() end
|
||||
local set = yaml.teuthology.variables.fail_fs
|
||||
local cmd = "ceph config set mgr mgr/orchestrator/fail_fs "..tostring(set)
|
||||
local cmds = yaml_fragment['upgrade-tasks'].sequential[0]['cephadm.shell']['host.a']
|
||||
if set then
|
||||
py_attrgetter(cmds).append "ceph config set mgr mgr/orchestrator/fail_fs true"
|
||||
else
|
||||
py_attrgetter(cmds).append "ceph config set mgr mgr/orchestrator/fail_fs false || true"
|
||||
end
|
||||
upgrade-tasks:
|
||||
sequential:
|
||||
- cephadm.shell:
|
||||
env: [sha1]
|
||||
host.a:
|
||||
- ceph config set mgr mgr/orchestrator/fail_fs true
|
||||
host.a: []
|
||||
|
Loading…
Reference in New Issue
Block a user