Skip to content

Make the VM reboot command async and ignore its errors#1073

Merged
pavel-shirshov merged 1 commit intosonic-net:masterfrom
wangxin:vm_reboot_issue
Aug 22, 2019
Merged

Make the VM reboot command async and ignore its errors#1073
pavel-shirshov merged 1 commit intosonic-net:masterfrom
wangxin:vm_reboot_issue

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Aug 19, 2019

Description of PR

Summary:
Fixes # (issue)
The command for rebooting VM was executed synchronously.
Sometimes it could fail because the VM closed the SSH connection
before ansible finishes the reboot command. The fix is to make
the command async and ignore its errors.

Signed-off-by: Xin Wang [email protected]

Type of change

  • Bug fix
  • [] Testbed and Framework(new/improvement)
  • [] Test case(new/improvement)

Approach

How did you do it?

Make the command for rebooting VM async and ignore its errors.

How did you verify/test it?

Tested using testbed-cli.sh add-topo.

Any platform specific information?

NA

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

NA

Documentation

The command for rebooting VM was executed synchronously.
Sometimes it could fail because the VM closed the SSH connection
before ansible finishes the reboot command. The fix is to make
the command async and ignore its errors.

Signed-off-by: Xin Wang <[email protected]>
@pavel-shirshov pavel-shirshov merged commit 8afd98e into sonic-net:master Aug 22, 2019
@wangxin wangxin deleted the vm_reboot_issue branch March 28, 2020 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants