Formatting '/cache/rhel-6.qcow2.snap', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=10737418240 backing_file=/cache/rhel-6.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpi5psn12o executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-6_setup.yml ***************************************************** 2 plays in /cache/rhel-6_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-6_setup.yml:5 Thursday 07 July 2022 15:36:57 +0000 (0:00:00.019) 0:00:00.019 ********* changed: [/cache/rhel-6.qcow2.snap] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-6.qcow2.snap] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } META: ran handlers META: ran handlers PLAY [Set up host for test playbooks] ****************************************** TASK [Gathering Facts] ********************************************************* task path: /cache/rhel-6_setup.yml:18 Thursday 07 July 2022 15:36:58 +0000 (0:00:00.857) 0:00:00.876 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Create EPEL 6 repo] ****************************************************** task path: /cache/rhel-6_setup.yml:22 Thursday 07 July 2022 15:36:59 +0000 (0:00:01.000) 0:00:01.877 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Create yum cache] ******************************************************** task path: /cache/rhel-6_setup.yml:32 Thursday 07 July 2022 15:36:59 +0000 (0:00:00.020) 0:00:01.898 ********* changed: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [Create dnf cache] ******************************************************** task path: /cache/rhel-6_setup.yml:38 Thursday 07 July 2022 15:37:03 +0000 (0:00:04.000) 0:00:05.898 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Disable EPEL 7] ********************************************************** task path: /cache/rhel-6_setup.yml:44 Thursday 07 July 2022 15:37:03 +0000 (0:00:00.021) 0:00:05.920 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Disable EPEL 8] ********************************************************** task path: /cache/rhel-6_setup.yml:52 Thursday 07 July 2022 15:37:03 +0000 (0:00:00.022) 0:00:05.942 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=3 changed=2 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 15:37:03 +0000 (0:00:00.032) 0:00:05.975 ********* =============================================================================== Create yum cache -------------------------------------------------------- 4.00s /cache/rhel-6_setup.yml:32 ---------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.00s /cache/rhel-6_setup.yml:18 ---------------------------------------------------- set up internal repositories -------------------------------------------- 0.86s /cache/rhel-6_setup.yml:5 ----------------------------------------------------- Disable EPEL 8 ---------------------------------------------------------- 0.03s /cache/rhel-6_setup.yml:52 ---------------------------------------------------- Disable EPEL 7 ---------------------------------------------------------- 0.02s /cache/rhel-6_setup.yml:44 ---------------------------------------------------- Create dnf cache -------------------------------------------------------- 0.02s /cache/rhel-6_setup.yml:38 ---------------------------------------------------- Create EPEL 6 repo ------------------------------------------------------ 0.02s /cache/rhel-6_setup.yml:22 ---------------------------------------------------- PLAYBOOK: setup-snapshot.yml *************************************************** 1 plays in /tmp/tmp9e_qmcje/tests/setup-snapshot.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:1 Thursday 07 July 2022 15:37:03 +0000 (0:00:00.013) 0:00:05.988 ********* ok: [/cache/rhel-6.qcow2.snap] META: ran handlers TASK [Set platform/version specific variables] ********************************* task path: /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:3 Thursday 07 July 2022 15:37:05 +0000 (0:00:01.762) 0:00:07.751 ********* TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 Thursday 07 July 2022 15:37:05 +0000 (0:00:00.034) 0:00:07.786 ********* ok: [/cache/rhel-6.qcow2.snap] META: role_complete for /cache/rhel-6.qcow2.snap TASK [Install test packages] *************************************************** task path: /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:9 Thursday 07 July 2022 15:37:05 +0000 (0:00:00.422) 0:00:08.209 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "kexec-tools-2.0.0-310.el6.x86_64 providing kexec-tools is already installed" ] } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=6 changed=2 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 15:37:08 +0000 (0:00:02.683) 0:00:10.892 ********* =============================================================================== Create yum cache -------------------------------------------------------- 4.00s /cache/rhel-6_setup.yml:32 ---------------------------------------------------- Install test packages --------------------------------------------------- 2.68s /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:9 ----------------------------------- Gathering Facts --------------------------------------------------------- 1.76s /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:1 ----------------------------------- Gathering Facts --------------------------------------------------------- 1.00s /cache/rhel-6_setup.yml:18 ---------------------------------------------------- set up internal repositories -------------------------------------------- 0.86s /cache/rhel-6_setup.yml:5 ----------------------------------------------------- linux-system-roles.kdump : Ensure ansible_facts used by role ------------ 0.42s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 ---- Set platform/version specific variables --------------------------------- 0.03s /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:3 ----------------------------------- Disable EPEL 8 ---------------------------------------------------------- 0.03s /cache/rhel-6_setup.yml:52 ---------------------------------------------------- Disable EPEL 7 ---------------------------------------------------------- 0.02s /cache/rhel-6_setup.yml:44 ---------------------------------------------------- Create dnf cache -------------------------------------------------------- 0.02s /cache/rhel-6_setup.yml:38 ---------------------------------------------------- Create EPEL 6 repo ------------------------------------------------------ 0.02s /cache/rhel-6_setup.yml:22 ---------------------------------------------------- PLAYBOOK: rhel-6_post_setup.yml ************************************************ 1 plays in /cache/rhel-6_post_setup.yml PLAY [Post setup - these happen last] ****************************************** META: ran handlers TASK [force sync of filesystems - ensure setup changes are made to snapshot] *** task path: /cache/rhel-6_post_setup.yml:5 Thursday 07 July 2022 15:37:08 +0000 (0:00:00.023) 0:00:10.915 ********* changed: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [shutdown guest] ********************************************************** task path: /cache/rhel-6_post_setup.yml:8 Thursday 07 July 2022 15:37:08 +0000 (0:00:00.347) 0:00:11.263 ********* changed: [/cache/rhel-6.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=8 changed=4 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Thursday 07 July 2022 15:37:09 +0000 (0:00:00.391) 0:00:11.655 ********* =============================================================================== Create yum cache -------------------------------------------------------- 4.00s /cache/rhel-6_setup.yml:32 ---------------------------------------------------- Install test packages --------------------------------------------------- 2.68s /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:9 ----------------------------------- Gathering Facts --------------------------------------------------------- 1.76s /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:1 ----------------------------------- Gathering Facts --------------------------------------------------------- 1.00s /cache/rhel-6_setup.yml:18 ---------------------------------------------------- set up internal repositories -------------------------------------------- 0.86s /cache/rhel-6_setup.yml:5 ----------------------------------------------------- linux-system-roles.kdump : Ensure ansible_facts used by role ------------ 0.42s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 ---- shutdown guest ---------------------------------------------------------- 0.39s /cache/rhel-6_post_setup.yml:8 ------------------------------------------------ force sync of filesystems - ensure setup changes are made to snapshot --- 0.35s /cache/rhel-6_post_setup.yml:5 ------------------------------------------------ Set platform/version specific variables --------------------------------- 0.03s /tmp/tmp9e_qmcje/tests/setup-snapshot.yml:3 ----------------------------------- Disable EPEL 8 ---------------------------------------------------------- 0.03s /cache/rhel-6_setup.yml:52 ---------------------------------------------------- Disable EPEL 7 ---------------------------------------------------------- 0.02s /cache/rhel-6_setup.yml:44 ---------------------------------------------------- Create dnf cache -------------------------------------------------------- 0.02s /cache/rhel-6_setup.yml:38 ---------------------------------------------------- Create EPEL 6 repo ------------------------------------------------------ 0.02s /cache/rhel-6_setup.yml:22 ---------------------------------------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpi5psn12o executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp9e_qmcje/tests/tests_default.yml PLAY [Ensure that the rule runs with default parameters] *********************** META: ran handlers TASK [Run the role. If reboot is not required - the play succeeds.] ************ task path: /tmp/tmp9e_qmcje/tests/tests_default.yml:9 Thursday 07 July 2022 15:37:53 +0000 (0:00:00.019) 0:00:00.019 ********* TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:2 Thursday 07 July 2022 15:37:53 +0000 (0:00:00.035) 0:00:00.055 ********* included: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 Thursday 07 July 2022 15:37:53 +0000 (0:00:00.024) 0:00:00.079 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] TASK [linux-system-roles.kdump : Install required packages] ******************** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 Thursday 07 July 2022 15:37:54 +0000 (0:00:00.756) 0:00:00.836 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "kexec-tools-2.0.0-310.el6.x86_64 providing kexec-tools is already installed" ] } TASK [linux-system-roles.kdump : Ensure that kdump is enabled] ***************** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:10 Thursday 07 July 2022 15:37:55 +0000 (0:00:00.849) 0:00:01.685 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "enabled": true, "name": "kdump" } TASK [linux-system-roles.kdump : Include SSH tasks] **************************** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:15 Thursday 07 July 2022 15:37:55 +0000 (0:00:00.470) 0:00:02.155 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists] ***** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:20 Thursday 07 July 2022 15:37:55 +0000 (0:00:00.032) 0:00:02.187 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "stat": { "atime": 1527231970.808, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "c1cb12e04aba32b789499371863c2672b8cde91c", "ctime": 1527231970.808, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270426, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1527231970.808, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 8120, "uid": 0, "version": "18446744072015119441", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Generate /etc/kdump.conf] ********************* task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:25 Thursday 07 July 2022 15:37:55 +0000 (0:00:00.374) 0:00:02.562 ********* NOTIFIED HANDLER linux-system-roles.kdump : restart kdump for /cache/rhel-6.qcow2.snap changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/kdump.conf.1930.2022-07-07@11:37:55~", "changed": true, "checksum": "322a59b94cd78e230298a24b3f5588067863d13c", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "5e27aee79dc98e90a4288384a8dc9dc7", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 55, "src": "/root/.ansible/tmp/ansible-tmp-1657208276.0386322-230425-143172175643084/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Get mode of /etc/sysconfig/kdump if it exists] *** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:33 Thursday 07 July 2022 15:37:56 +0000 (0:00:00.738) 0:00:03.301 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "stat": { "atime": 1523498887.0, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b20f580311f505b642bfff2315be2595351514ac", "ctime": 1527232047.5970001, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270428, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1523498887.0, "nlink": 1, "path": "/etc/sysconfig/kdump", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 1231, "uid": 0, "version": "18446744072015119443", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Generate /etc/sysconfig/kdump] **************** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:38 Thursday 07 July 2022 15:37:56 +0000 (0:00:00.260) 0:00:03.561 ********* changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/sysconfig/kdump.2092.2022-07-07@11:37:56~", "changed": true, "checksum": "06d7e217583d09d99fa3039bc8913bed9595abdf", "dest": "/etc/sysconfig/kdump", "gid": 0, "group": "root", "md5sum": "11d5afb7ca39dddf510a15d60aefc293", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 270, "src": "/root/.ansible/tmp/ansible-tmp-1657208277.0321991-230469-279499416265256/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Find out reserved memory for the crash kernel] *** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:46 Thursday 07 July 2022 15:37:57 +0000 (0:00:00.769) 0:00:04.330 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "content": "MAo=", "encoding": "base64", "source": "/sys/kernel/kexec_crash_size" } TASK [linux-system-roles.kdump : Set the kdump_reboot_required fact] *********** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:51 Thursday 07 July 2022 15:37:58 +0000 (0:00:00.477) 0:00:04.808 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "kdump_reboot_required": true }, "changed": false } TASK [linux-system-roles.kdump : Use kdumpctl reset-crashkernel if needed] ***** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:57 Thursday 07 July 2022 15:37:58 +0000 (0:00:00.041) 0:00:04.850 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Fail if reboot is required and kdump_reboot_ok is false] *** task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:64 Thursday 07 July 2022 15:37:58 +0000 (0:00:00.031) 0:00:04.882 ********* fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: "Reboot is required to apply changes. Re-execute the role after boot to ensure that kdump is working." TASK [If reboot is required - assert the expected fail message] **************** task path: /tmp/tmp9e_qmcje/tests/tests_default.yml:13 Thursday 07 July 2022 15:37:58 +0000 (0:00:00.039) 0:00:04.921 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed RUNNING HANDLER [linux-system-roles.kdump : restart kdump] ********************* task path: /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 Thursday 07 July 2022 15:37:58 +0000 (0:00:00.039) 0:00:04.960 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=11 changed=3 unreachable=0 failed=0 skipped=3 rescued=1 ignored=0 Thursday 07 July 2022 15:37:58 +0000 (0:00:00.035) 0:00:04.996 ********* =============================================================================== linux-system-roles.kdump : Install required packages -------------------- 0.85s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 -------- linux-system-roles.kdump : Generate /etc/sysconfig/kdump ---------------- 0.77s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:38 ------- linux-system-roles.kdump : Ensure ansible_facts used by role ------------ 0.76s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 ---- linux-system-roles.kdump : Generate /etc/kdump.conf --------------------- 0.74s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:25 ------- linux-system-roles.kdump : Find out reserved memory for the crash kernel --- 0.48s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:46 ------- linux-system-roles.kdump : Ensure that kdump is enabled ----------------- 0.47s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:10 ------- linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists ----- 0.37s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:20 ------- linux-system-roles.kdump : Get mode of /etc/sysconfig/kdump if it exists --- 0.26s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:33 ------- linux-system-roles.kdump : Set the kdump_reboot_required fact ----------- 0.04s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:51 ------- linux-system-roles.kdump : Fail if reboot is required and kdump_reboot_ok is false --- 0.04s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:64 ------- If reboot is required - assert the expected fail message ---------------- 0.04s /tmp/tmp9e_qmcje/tests/tests_default.yml:13 ----------------------------------- linux-system-roles.kdump : restart kdump -------------------------------- 0.04s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 ----- Run the role. If reboot is not required - the play succeeds. ------------ 0.04s /tmp/tmp9e_qmcje/tests/tests_default.yml:9 ------------------------------------ linux-system-roles.kdump : Include SSH tasks ---------------------------- 0.03s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:15 ------- linux-system-roles.kdump : Use kdumpctl reset-crashkernel if needed ----- 0.03s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:57 ------- linux-system-roles.kdump : Ensure ansible_facts used by role ------------ 0.02s /tmp/tmp9e_qmcje/tests/roles/linux-system-roles.kdump/tasks/main.yml:2 -------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpi5psn12o executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmphuqddwzc/tests/kdump/tests_default.yml PLAY [Ensure that the rule runs with default parameters] *********************** META: ran handlers TASK [Run the role. If reboot is not required - the play succeeds.] ************ task path: /tmp/tmphuqddwzc/tests/kdump/tests_default.yml:9 Thursday 07 July 2022 15:39:21 +0000 (0:00:00.020) 0:00:00.020 ********* TASK [fedora.linux_system_roles.kdump : Ensure ansible_facts used by role] ***** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:2 Thursday 07 July 2022 15:39:21 +0000 (0:00:00.039) 0:00:00.059 ********* included: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/set_vars.yml for /cache/rhel-6.qcow2.snap TASK [fedora.linux_system_roles.kdump : Ensure ansible_facts used by role] ***** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/set_vars.yml:2 Thursday 07 July 2022 15:39:21 +0000 (0:00:00.026) 0:00:00.086 ********* [DEPRECATION WARNING]: ansible-core 2.13 will require Python 2.7 or newer on the target. Current version: 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]. This feature will be removed in version 2.13. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [/cache/rhel-6.qcow2.snap] TASK [fedora.linux_system_roles.kdump : Install required packages] ************* task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:5 Thursday 07 July 2022 15:39:22 +0000 (0:00:00.783) 0:00:00.870 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "rc": 0, "results": [ "kexec-tools-2.0.0-310.el6.x86_64 providing kexec-tools is already installed" ] } TASK [fedora.linux_system_roles.kdump : Ensure that kdump is enabled] ********** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:10 Thursday 07 July 2022 15:39:23 +0000 (0:00:00.836) 0:00:01.707 ********* changed: [/cache/rhel-6.qcow2.snap] => { "changed": true, "enabled": true, "name": "kdump" } TASK [fedora.linux_system_roles.kdump : Include SSH tasks] ********************* task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:15 Thursday 07 July 2022 15:39:23 +0000 (0:00:00.444) 0:00:02.152 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kdump : Get mode of /etc/kdump.conf if it exists] *** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:20 Thursday 07 July 2022 15:39:23 +0000 (0:00:00.029) 0:00:02.181 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "stat": { "atime": 1527231970.808, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "c1cb12e04aba32b789499371863c2672b8cde91c", "ctime": 1527231970.808, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270426, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1527231970.808, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 8120, "uid": 0, "version": "18446744072015119441", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.kdump : Generate /etc/kdump.conf] ************** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:25 Thursday 07 July 2022 15:39:24 +0000 (0:00:00.368) 0:00:02.550 ********* NOTIFIED HANDLER fedora.linux_system_roles.kdump : restart kdump for /cache/rhel-6.qcow2.snap changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/kdump.conf.1933.2022-07-07@11:39:24~", "changed": true, "checksum": "322a59b94cd78e230298a24b3f5588067863d13c", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "5e27aee79dc98e90a4288384a8dc9dc7", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 55, "src": "/root/.ansible/tmp/ansible-tmp-1657208364.1716545-231705-174343477732353/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.kdump : Get mode of /etc/sysconfig/kdump if it exists] *** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:33 Thursday 07 July 2022 15:39:24 +0000 (0:00:00.736) 0:00:03.286 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "stat": { "atime": 1523498887.0, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b20f580311f505b642bfff2315be2595351514ac", "ctime": 1527232047.5970001, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 270428, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1523498887.0, "nlink": 1, "path": "/etc/sysconfig/kdump", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 1231, "uid": 0, "version": "18446744072015119443", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.kdump : Generate /etc/sysconfig/kdump] ********* task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:38 Thursday 07 July 2022 15:39:25 +0000 (0:00:00.285) 0:00:03.572 ********* changed: [/cache/rhel-6.qcow2.snap] => { "backup_file": "/etc/sysconfig/kdump.2042.2022-07-07@11:39:25~", "changed": true, "checksum": "06d7e217583d09d99fa3039bc8913bed9595abdf", "dest": "/etc/sysconfig/kdump", "gid": 0, "group": "root", "md5sum": "11d5afb7ca39dddf510a15d60aefc293", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 270, "src": "/root/.ansible/tmp/ansible-tmp-1657208365.1929848-231749-128816002805996/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.kdump : Find out reserved memory for the crash kernel] *** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:46 Thursday 07 July 2022 15:39:25 +0000 (0:00:00.577) 0:00:04.149 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false, "content": "MAo=", "encoding": "base64", "source": "/sys/kernel/kexec_crash_size" } TASK [fedora.linux_system_roles.kdump : Set the kdump_reboot_required fact] **** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:51 Thursday 07 July 2022 15:39:26 +0000 (0:00:00.509) 0:00:04.659 ********* ok: [/cache/rhel-6.qcow2.snap] => { "ansible_facts": { "kdump_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.kdump : Use kdumpctl reset-crashkernel if needed] *** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:55 Thursday 07 July 2022 15:39:26 +0000 (0:00:00.042) 0:00:04.701 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kdump : Fail if reboot is required and kdump_reboot_ok is false] *** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:62 Thursday 07 July 2022 15:39:26 +0000 (0:00:00.033) 0:00:04.735 ********* fatal: [/cache/rhel-6.qcow2.snap]: FAILED! => { "changed": false } MSG: "Reboot is required to apply changes. Re-execute the role after boot to ensure that kdump is working." TASK [If reboot is required - assert the expected fail message] **************** task path: /tmp/tmphuqddwzc/tests/kdump/tests_default.yml:13 Thursday 07 July 2022 15:39:26 +0000 (0:00:00.042) 0:00:04.777 ********* ok: [/cache/rhel-6.qcow2.snap] => { "changed": false } MSG: All assertions passed RUNNING HANDLER [fedora.linux_system_roles.kdump : restart kdump] ************** task path: /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/handlers/main.yml:2 Thursday 07 July 2022 15:39:26 +0000 (0:00:00.042) 0:00:04.820 ********* skipping: [/cache/rhel-6.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-6.qcow2.snap : ok=11 changed=3 unreachable=0 failed=0 skipped=3 rescued=1 ignored=0 Thursday 07 July 2022 15:39:26 +0000 (0:00:00.038) 0:00:04.858 ********* =============================================================================== fedora.linux_system_roles.kdump : Install required packages ------------- 0.84s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:5 fedora.linux_system_roles.kdump : Ensure ansible_facts used by role ----- 0.78s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/set_vars.yml:2 fedora.linux_system_roles.kdump : Generate /etc/kdump.conf -------------- 0.74s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:25 fedora.linux_system_roles.kdump : Generate /etc/sysconfig/kdump --------- 0.58s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:38 fedora.linux_system_roles.kdump : Find out reserved memory for the crash kernel --- 0.51s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:46 fedora.linux_system_roles.kdump : Ensure that kdump is enabled ---------- 0.44s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:10 fedora.linux_system_roles.kdump : Get mode of /etc/kdump.conf if it exists --- 0.37s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:20 fedora.linux_system_roles.kdump : Get mode of /etc/sysconfig/kdump if it exists --- 0.29s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:33 fedora.linux_system_roles.kdump : Fail if reboot is required and kdump_reboot_ok is false --- 0.04s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:62 fedora.linux_system_roles.kdump : Set the kdump_reboot_required fact ---- 0.04s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:51 If reboot is required - assert the expected fail message ---------------- 0.04s /tmp/tmphuqddwzc/tests/kdump/tests_default.yml:13 ----------------------------- Run the role. If reboot is not required - the play succeeds. ------------ 0.04s /tmp/tmphuqddwzc/tests/kdump/tests_default.yml:9 ------------------------------ fedora.linux_system_roles.kdump : restart kdump ------------------------- 0.04s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/handlers/main.yml:2 fedora.linux_system_roles.kdump : Use kdumpctl reset-crashkernel if needed --- 0.03s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:55 fedora.linux_system_roles.kdump : Include SSH tasks --------------------- 0.03s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:15 fedora.linux_system_roles.kdump : Ensure ansible_facts used by role ----- 0.03s /tmp/tmpi5psn12o/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:2