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

[action] [PR:3595] Refresh dump file modify timestamp before cleanup call (#3595) #3614

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mssonicbld
Copy link
Collaborator

During the show techsupport, generate_dump calls techsupport_cleanup with current generated file. The techsupport_cleanup verifies the file path provided for file last modification timestamp and on success only proceeds to cleanup. It expects the file to be modified within last 20 secs. Sometimes when file is big, gzip takes more that 20 sec. Due to this, the last modify timestamp to current time stamp diff is greater than 20 and verify_recent_file_creation fails causing cleanup to fail.

How I did it
touch the tarfile after finishing the gzip to refresh modify timestamp.

How to verify it
run show techsupport

During the show techsupport, generate_dump calls techsupport_cleanup with current generated file. The techsupport_cleanup verifies the file path provided for file last modification timestamp and on success only proceeds to cleanup. It expects the file to be modified within last 20 secs. Sometimes when file is big, gzip takes more that 20 sec. Due to this, the last modify timestamp to current time stamp diff is greater than 20 and verify_recent_file_creation fails causing cleanup to fail.

How I did it
touch the tarfile after finishing the gzip to refresh modify timestamp.

How to verify it
run show techsupport
@mssonicbld
Copy link
Collaborator Author

Original PR: #3595

@mssonicbld mssonicbld merged commit d7a097e into sonic-net:202405 Nov 14, 2024
7 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.

2 participants