From 39d56cce7f7de891cd828381d472e6689c7f1fc8 Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Wed, 24 Apr 2024 21:32:39 +0200 Subject: [PATCH] ceph_orch_spec: Add ceph orch apply spec feature Add new module ceph_orch_spec which applies ceph spec files. This feature was needed to bind extra mount points to the RGW container (/etc/pki/ca-trust/). Also fixes cephadm-adopt test scenario by configuring rbd application on test and test2 pools. Otherwise cephadm-adopt failed at task "Check pools have an application enabled" Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2262133 Signed-off-by: Teoman ONAY --- library/ceph_orch_spec.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/ceph_orch_spec.py b/library/ceph_orch_spec.py index 13c35fb4c1..089cbe2e39 100644 --- a/library/ceph_orch_spec.py +++ b/library/ceph_orch_spec.py @@ -175,12 +175,12 @@ def run_module(): rc, cmd, out, err = apply_spec(module, spec) changed = True else: - rc=0 - cmd=[] - out='' - err='' - changed=False - + rc = 0 + cmd = [] + out = '' + err = '' + changed = False + exit_module( module=module, out=out,