forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using async mode to execut config reload cmd (sonic-net#13361)
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 Signed-off-by: xuliping <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters