From 5b50b233ab3e117513904dad223037554844f9be Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Mon, 11 May 2020 13:08:56 -0600 Subject: [PATCH] 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 --- tests/roles/set_cgroups/tasks/main.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tests/roles/set_cgroups/tasks/main.yml b/tests/roles/set_cgroups/tasks/main.yml index 8843e49..7ca7c75 100644 --- a/tests/roles/set_cgroups/tasks/main.yml +++ b/tests/roles/set_cgroups/tasks/main.yml @@ -28,19 +28,17 @@ when: want_cgroups == 1 # If want != have, reboot -- name: reboot - reboot: - reboot_timeout: 900 - register: back_again - ignore_errors: yes +- name: reboot and wait + block: + - name: reboot + reboot: + reboot_timeout: 900 + ignore_errors: yes + - name: wait and reconnect + wait_for_connection: + timeout: 900 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: expected_fstype: - none