mds: removing fs_name arg from daemon status cmd
If cephVersion>= 16.2.7, we run
ceph fs snapshot mirror daemon status
otherwise we run
ceph fs snapshot mirror daemon status <fs_name>
Updating the cmd so both the ceph version can run successfully
Closes: https://github.com/rook/rook/issues/8458
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit f7082c9efa)
This commit is contained in:
1 parent
4f2eb1dc54
commit
bdd9032f59
3 files changed
+51
-18
No files matched your search
@@ -755,7 +755,7 @@ jobs:
|
||||
run: |
|
||||
kubectl -n rook-ceph get cephfilesystem myfs -o yaml
|
||||
# the check is not super ideal since 'mirroring_failed' is only displayed when there is a failure but not when it's working...
|
||||
timeout 60 sh -c 'while [ "$(kubectl exec -n rook-ceph deploy/rook-ceph-tools -t -- ceph fs snapshot mirror daemon status myfs|jq -r '.[0].filesystems[0]'|grep -c "mirroring_failed")" -eq 1 ]; do echo "waiting for filesystem to be mirrored" && sleep 1; done'
|
||||
timeout 60 sh -c 'while [ "$(kubectl exec -n rook-ceph deploy/rook-ceph-tools -t -- ceph fs snapshot mirror daemon status|jq -r '.[0].filesystems[0]'|grep -c "mirroring_failed")" -eq 1 ]; do echo "waiting for filesystem to be mirrored" && sleep 1; done'
|
||||
|
||||
- name: collect common logs
|
||||
if: always()
|
||||
|
||||
Reference in new issue
Block a user