-
Notifications
You must be signed in to change notification settings - Fork 1
code: update to give warning if not collecting logs #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit lint is complaining
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to merge, have you tested the script with these changes on a cluster?
Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
yes, it should be work fine when log file is empty or when using ceph commands:
|
@ideepika shellcheck is now complaining. If you are using VSCode, I would recommend you install the recommended extensions to have shellcheck run locally as well. |
earlier the format looks like also has gibberish from %s : ➜ ~ mktemp -d -t gather-logs-$(date +"%s-%Y-%m-%d")-XXXXXXXXXX /tmp/gather-logs-1683807557-2023-05-11-PV4QT8Xr7F now: ➜ ~ mktemp -d -t gather-logs-$(date +"%Y-%m-%d")-XXXXXXXXXX /tmp/gather-logs-2023-05-11-CgtfU7q6Tc Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
} | ||
|
||
gatherCrashInfo() { | ||
for crash in $(runCommandInToolsPod ceph crash ls-new); do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ideepika Are you sure this works? The output is redirected to a file, so there will be no output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point @zalsader , since there wasn't any crash in my env, I simulated a bit different condition, let me fix that tomorrow first thing!
No description provided.