Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refresh dump file modify timestamp before cleanup call (sonic-net#3595)
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
- Loading branch information