Sigh. Put the reboot in a block.

Podman gating tests failed:

   ... back_again.changed): 'dict object' has no attribute 'changed'

Previous error (ignored) was a timeout in the reboot step. I have
no idea how to fix this, so let's try putting the reboot and wait
steps into a 'block' section and removing the '.changed'.

Tested with 1minutetip. Seems to work, but the reboot was quick
so it didn't trigger the same code.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2020-05-11 13:08:56 -06:00
parent 26947b7ed2
commit 5b50b233ab

View File

@ -28,19 +28,17 @@
when: want_cgroups == 1 when: want_cgroups == 1
# If want != have, reboot # If want != have, reboot
- name: reboot - name: reboot and wait
reboot: block:
reboot_timeout: 900 - name: reboot
register: back_again reboot:
ignore_errors: yes reboot_timeout: 900
ignore_errors: yes
- name: wait and reconnect
wait_for_connection:
timeout: 900
when: want_cgroups|int != current_cgroups|int when: want_cgroups|int != current_cgroups|int
- name: wait and reconnect
wait_for_connection:
timeout: 900
register: back_again2
when: want_cgroups|int != current_cgroups|int and not back_again.changed
- set_fact: - set_fact:
expected_fstype: expected_fstype:
- none - none