sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
173 stars 689 forks source link

[action] [PR:13361] [test_reload_configuration_checks] using async mode to execute config reload CMD #13566

Closed mssonicbld closed 3 days ago

mssonicbld commented 5 days ago

Description of PR

Summary: Fixes # (issue) 28387106

Type of change

Back port request

Approach

What is the motivation for this PR?

Case failed due to no response after execting cmd "config reload" with timeout threshold. Ansible ssh timeout value is 60s.

 out = duthost.shell("sudo config reload -y",
 executable="/bin/bash", module_ignore_errors=True)
> assert "Retry later" in out['stdout']
E KeyError: 'stdout'

out = {'failed': True, 'msg': 'Timeout (62s) waiting for privilege escalation prompt: ', '_ansible_no_log': False}

How did you do it?

Using async mode to run the CMD

How did you verify/test it?

Run the case locally and with pipeline

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

mssonicbld commented 5 days ago

Original PR: https://github.com/sonic-net/sonic-mgmt/pull/13361

mssonicbld commented 4 days ago

/azp run Azure.sonic-mgmt

azure-pipelines[bot] commented 4 days ago
Azure Pipelines successfully started running 1 pipeline(s).
mssonicbld commented 3 days ago

/azp run Azure.sonic-mgmt

azure-pipelines[bot] commented 3 days ago
Azure Pipelines successfully started running 1 pipeline(s).