Skip to content

Commit

Permalink
must-gather: adds output for crds of managed services
Browse files Browse the repository at this point in the history
this coomit collect yamls and describe outputs of the
new CRs created for ODF to ODF Managed services in 4.10

Signed-off-by: yati1998 <[email protected]>
  • Loading branch information
yati1998 authored and openshift-cherrypick-robot committed Mar 23, 2022
1 parent 18e6428 commit a104cfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions must-gather/collection-scripts/gather_ceph_resources
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ CEPH_COLLECTION_PATH="${BASE_COLLECTION_PATH}/ceph"
ceph_resources=()
ceph_resources+=(cephblockpools)
ceph_resources+=(cephfilesystems)
ceph_resources+=(cephclient)
ceph_resources+=(cephfilesystemsubvolumegroups)

# Ceph commands
ceph_commands=()
Expand Down
5 changes: 5 additions & 0 deletions must-gather/collection-scripts/gather_namespaced_resources
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ commands_get+=("rolebinding")
commands_get+=("volumesnapshot -A")
commands_get+=("volumesnapshotclass")
commands_get+=("volumesnapshotcontent")
commands_get+=("storageconsumer")
commands_get+=("cephfilesystemsubvolumegroups.ceph.rook.io")

# collect oc output of OC desc commands
commands_desc=()
Expand All @@ -60,6 +62,8 @@ commands_desc+=("storagecluster")
commands_desc+=("volumesnapshot -A")
commands_desc+=("volumesnapshotclass")
commands_desc+=("volumesnapshotcontent")
commands_desc+=("storageconsumer")
commands_desc+=("cephfilesystemsubvolumegroups.ceph.rook.io")

# collect yaml output of OC commands
oc_yamls=()
Expand Down Expand Up @@ -100,6 +104,7 @@ done
# NOTE: This is a temporary fix for collecting the storagecluster as we are not able to collect the storagecluster using the inspect command
{ oc get storageclusters -n ${INSTALL_NAMESPACE} -o yaml; } > "$BASE_COLLECTION_PATH/namespaces/${INSTALL_NAMESPACE}/oc_output/storagecluster.yaml" 2>&1
{ oc get storagesystem -n ${INSTALL_NAMESPACE} -o yaml; } > "$BASE_COLLECTION_PATH/namespaces/${INSTALL_NAMESPACE}/oc_output/storagesystem.yaml" 2>&1
{ oc get storageconsumer -n ${INSTALL_NAMESPACE} -o yaml; } > "$BASE_COLLECTION_PATH/namespaces/${INSTALL_NAMESPACE}/oc_output/storageconsumer.yaml" 2>&1

# Create the dir for data from all namespaces
mkdir -p "${BASE_COLLECTION_PATH}/namespaces/all/"
Expand Down

0 comments on commit a104cfe

Please sign in to comment.