Skip to content

Commit 8a68631

Browse files
authored
[reboot test] call sudo reboot to reboot dut (#452)
* [reboot test] call sudo reboot to reboot dut - Using reboot allow the dut to reboot with platform specific reboot tools. - Ansible behaves differently with "become: yes + reboot" and "sudo reboot" It appears that only the later could reboot the DUT. This behavior might have caused by sonic intercepts reboot with a script. * [reboot test] improvoe test description * [reboot test] improve test message, take 2
1 parent 2607bc5 commit 8a68631

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ansible/roles/test/tasks/common_tasks/reboot_sonic.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
- name: reboot
2-
become: true
3-
shell: shutdown -r now "Warning! System is being rebooted remotely by reboot_sonic.yml"
1+
- name: "rebooting {{ inventory_hostname }} : {{ ansible_host }} ..."
2+
shell: sudo reboot
43
async: 1
54
poll: 0
65
ignore_errors: true

0 commit comments

Comments
 (0)