test: collect kube-system logs for debugging
added kube-system namespace also to collect
logs from to debug the smoke suite issue
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0ed91458dc)
This commit is contained in:
1 parent
7d5cfea91d
commit
73fed34bfb
2 files changed
+3
-1
No files matched your search
@@ -170,7 +170,7 @@ func (f *FilesystemOperation) CreateSubvolumeGroup(fsName, groupName string) err
|
||||
return err
|
||||
}
|
||||
|
||||
err = f.k8sh.WaitForStatusPhase(namespace, "CephFilesystemSubVolumeGroup", groupName, "Ready", 15*time.Second)
|
||||
err = f.k8sh.WaitForStatusPhase(namespace, "CephFilesystemSubVolumeGroup", groupName, "Ready", 30*time.Second)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ set -x
|
||||
# User parameters
|
||||
: "${CLUSTER_NAMESPACE:="rook-ceph"}"
|
||||
: "${OPERATOR_NAMESPACE:="$CLUSTER_NAMESPACE"}"
|
||||
: "${KUBE_SYSTEM_NAMESPACE:="kube-system"}"
|
||||
: "${LOG_DIR:="test"}"
|
||||
|
||||
LOG_DIR="${LOG_DIR%/}" # remove trailing slash if necessary
|
||||
@@ -17,6 +18,7 @@ $CEPH_CMD osd dump >"${LOG_DIR}"/ceph-osd-dump.txt
|
||||
$CEPH_CMD report >"${LOG_DIR}"/ceph-report.txt
|
||||
|
||||
NAMESPACES=("$CLUSTER_NAMESPACE")
|
||||
NAMESPACES+=("$KUBE_SYSTEM_NAMESPACE")
|
||||
if [[ "$OPERATOR_NAMESPACE" != "$CLUSTER_NAMESPACE" ]]; then
|
||||
NAMESPACES+=("$OPERATOR_NAMESPACE")
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user