Skip to content

Commit

Permalink
Bug 2308101: logrotate: add logrotate functionality for csi operator
Browse files Browse the repository at this point in the history
currently client operator has started using csi operator
so collecting the csi logs from a new host path
hat csi-operator supports

Signed-off-by: parth-gr <[email protected]>
  • Loading branch information
parth-gr authored and openshift-cherrypick-robot committed Aug 28, 2024
1 parent 4ad8cfa commit e75b2c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions collection-scripts/gather_ceph_logs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ for ns in $namespaces; do
oc rsync -n "${ns}" "$(oc get pods -n "${ns}" --no-headers | grep "${node//./}-debug" | awk '{print $1}')":/host/var/lib/rook/"${ns}".nfs.csi.ceph.com/log "${CSI_LOG_OUTPUT_DIR}"
}

# collect logs from the csi pods if csi is installed using csi-operator
csi_operator_log_collection() {
dbglog "collecting csi logs from node ${node}"
oc rsync -n "${ns}" "$(oc get pods -n "${ns}" --no-headers | grep "${node//./}-debug" | awk '{print $1}')":/host/var/lib/cephcsi "${CSI_LOG_OUTPUT_DIR}"
}

crash_core_collection() {
dbglog "collecting crash core dump from node ${node}"
oc rsync -n "${ns}" "$(oc get pods -n "${ns}" --no-headers | grep "${node//./}"-debug | awk '{print $1}')":/host/var/lib/rook/"${ns}"/crash/ "${CRASH_OUTPUT_DIR}"
Expand Down

0 comments on commit e75b2c0

Please sign in to comment.