qa: turn fail_fs off in case default changes

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2022-09-16 10:32:58 -04:00
parent b54cb863ef
commit 978b3494c3
No known key found for this signature in database
GPG Key ID: BE69BB7D36E459B4
2 changed files with 9 additions and 3 deletions

View File

@ -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: []