sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

Fix issue where generate_dump will abort if docker is not running lea…

Open jeffhtgt opened this issue 3 years ago • 1 comments

…ving

an incomplete support file.

Signed-off-by: Jeff Henning [email protected]

What I did

Fix generate_dump to not abort if a docker is not running.

How I did it

Add check for running docker in copy_from_docker() and return if the docker is not running (ported from a 202012 branch).

How to verify it

Got a successful dump.tgz after running "show techsupport". Previously the file would be incomplete due to command abort.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

jeffhtgt avatar Jun 06 '22 15:06 jeffhtgt

@lguohan @prsunny Could you please help with review and moving this forward? Thank you!

jeffhtgt avatar Jun 14 '22 15:06 jeffhtgt