Skip to content

Commit

Permalink
fix(must-gather): fixes collection of osd prepare volume logs
Browse files Browse the repository at this point in the history
This commit fixes collection of osd prepare volume logs in must-gather.

Signed-off-by: Ashish Ranjan <[email protected]>
  • Loading branch information
ashishranjan738 committed Nov 26, 2019
1 parent 2ad1ca6 commit a0b35cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion must-gather/collection-scripts/gather_ceph_resources
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ for ns in $(oc get cephcluster --all-namespaces --no-headers | awk '{print $1}')
printf "collecting prepare volume logs from node %s \n" "${node}"
NODE_OUTPUT_DIR=${CEPH_COLLECTION_PATH}/namespaces/${ns}/osd_prepare_volume_logs/${node}
mkdir -p "${NODE_OUTPUT_DIR}"
timeout 120 oc debug nodes/"${node}" -- bash -c "test -f /host/var/lib/rook/log/${ns}/ceph-volume.log && cat /host/var/lib/rook/log/${ns}/ceph-volume.log" > "${NODE_OUTPUT_DIR}"/ceph-volume.log 2>/dev/null
{ timeout 120 oc debug nodes/"${node}" -- bash -c "test -f /host/var/lib/rook/log/${ns}/ceph-volume.log && cat /host/var/lib/rook/log/${ns}/ceph-volume.log" > "${NODE_OUTPUT_DIR}"/ceph-volume.log; } 2>/dev/null
done
oc delete -f pod_helper.yaml
done

0 comments on commit a0b35cc

Please sign in to comment.