Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
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
\ No newline at end of file
+ host.a: []