Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csi: add logrotate file to a csi log dir #179

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

parth-gr
Copy link
Member

added the csi log to a csi log directory csi_log_${node}

Also updated correct dir path to cllect the ceph daemon logs

closes: #178

ceph_daemon_log_collection() {
dbglog "collecting csi and ceph daemon logs from node ${node}"
# as per the correction we are keeping both /var/lib/rook & /var/log/ceph for ceph pods, as to not break anything
oc rsync -n "${ns}" "$(oc get pods -n "${ns}" --no-headers | grep "${node//./}-debug" | awk '{print $1}')":/host/var/log/ceph/ "${CEPH_DAEMON_LOG_OUTPUT_DIR}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once the csi operator changes are done we need to add the query the driver and get the host path here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ceph daemon logs are collected above right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path is incorrect /var/lib/rook which should be /var/log/ceph

As discussed offline already we will keep both as not break anything

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is resolved then, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes correct, will have a follow up PR once CSI-operator is there,
Till now it works with Rook operator

@parth-gr
Copy link
Member Author

parth-gr commented Jul 11, 2024

cc @Madhu-1 @travisn @yati1998

@parth-gr parth-gr force-pushed the logrotate-files branch 2 times, most recently from 6eda225 to 17657d5 Compare July 11, 2024 09:50
added the csi log to a csi log directory csi_log_${node}

Also updated correct dir path to cllect the ceph daemon logs

closes: red-hat-storage#178

Signed-off-by: parth-gr <[email protected]>
@black-dragon74
Copy link
Collaborator

/lgtm

Copy link
Contributor

openshift-ci bot commented Jul 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: black-dragon74, parth-gr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 4dbaecf into red-hat-storage:main Jul 11, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

must-gather should collect all the subfolders of the csi and ceph logs
4 participants