# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-refactor-with-mock_0j5x81i/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 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_add_rm.yml ***************************************************** 1 plays in /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml PLAY [Test creating, modifying, and removing kernels] ************************** TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:13 Friday 19 April 2024 18:44:24 +0000 (0:00:00.013) 0:00:00.013 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:44:24 +0000 (0:00:00.023) 0:00:00.037 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:44:24 +0000 (0:00:00.010) 0:00:00.047 ********** ok: [sut] TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:44:24 +0000 (0:00:00.579) 0:00:00.627 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:44:25 +0000 (0:00:00.239) 0:00:00.866 ********** ok: [sut] => { "ansible_facts": { "__bootloader_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:44:25 +0000 (0:00:00.014) 0:00:00.881 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:44:25 +0000 (0:00:00.017) 0:00:00.898 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:44:25 +0000 (0:00:00.007) 0:00:00.906 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:44:27 +0000 (0:00:02.352) 0:00:03.258 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1709714778.566, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4bb08bede303990d4cc06d6283ed4aeb549389ab", "ctime": 1709714778.407, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375171, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714778.407, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 301, "uid": 0, "version": "3323824319", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:44:27 +0000 (0:00:00.194) 0:00:03.453 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:44:27 +0000 (0:00:00.007) 0:00:03.460 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:44:27 +0000 (0:00:00.006) 0:00:03.467 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:44:27 +0000 (0:00:00.181) 0:00:03.649 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:44:27 +0000 (0:00:00.021) 0:00:03.670 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552267.6696098, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4bb08bede303990d4cc06d6283ed4aeb549389ab", "ctime": 1709714778.407, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375171, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714778.407, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 301, "uid": 0, "version": "3323824319", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:44:28 +0000 (0:00:00.195) 0:00:03.866 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1709714779.266, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "daa1c061ec5c47702d0be4b0e626b39f42774879", "ctime": 1709714779.267, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7301772, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1709714779.267, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6755, "uid": 0, "version": "1839740860", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:44:28 +0000 (0:00:00.198) 0:00:04.064 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:44:28 +0000 (0:00:00.007) 0:00:04.072 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:44:28 +0000 (0:00:00.251) 0:00:04.323 ********** changed: [sut] => { "changed": true, "rc": 0 } MSG: 6 replacements made TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:44:28 +0000 (0:00:00.193) 0:00:04.516 ********** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:44:28 +0000 (0:00:00.240) 0:00:04.757 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:44:29 +0000 (0:00:00.011) 0:00:04.768 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:44:29 +0000 (0:00:00.009) 0:00:04.778 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:44:29 +0000 (0:00:00.013) 0:00:04.792 ********** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": false, "id": "c349f2226fa046be8eb58571fe1f537b-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-c349f2226fa046be8eb58571fe1f537b.img", "kernel": "/boot/vmlinuz-0-rescue-c349f2226fa046be8eb58571fe1f537b", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (0-rescue-c349f2226fa046be8eb58571fe1f537b) 9" } ] }, "changed": false } TASK [Skip test on ostree systems] ********************************************* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:19 Friday 19 April 2024 18:44:29 +0000 (0:00:00.357) 0:00:05.150 ********** META: end_host conditional evaluated to False, continuing execution for sut skipping: [sut] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for sut" } MSG: end_host conditional evaluated to false, continuing execution for sut TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:26 Friday 19 April 2024 18:44:29 +0000 (0:00:00.001) 0:00:05.151 ********** META: triggered running handlers for sut TASK [Clone kernel to Clone1] ************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:29 Friday 19 April 2024 18:44:29 +0000 (0:00:00.000) 0:00:05.152 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml for sut TASK [Set fact with the default kernel to use for clones] ********************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:3 Friday 19 April 2024 18:44:29 +0000 (0:00:00.012) 0:00:05.164 ********** ok: [sut] => { "ansible_facts": { "test_kernel": { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" } }, "changed": false } TASK [Clone test_kernel kernel and initrd for test purposes] ******************* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:7 Friday 19 April 2024 18:44:29 +0000 (0:00:00.020) 0:00:05.185 ********** changed: [sut] => (item={'src': '/boot/vmlinuz-5.14.0-427.el9.x86_64', 'dest': '/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "7f2676bfd37bf1f31b636df2357f44546a4079b9", "dest": "/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1", "gid": 0, "group": "root", "item": { "dest": "/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1", "src": "/boot/vmlinuz-5.14.0-427.el9.x86_64" }, "md5sum": "43a3cf55442c0e5c727e668e302ef871", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 13592616, "src": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "state": "file", "uid": 0 } changed: [sut] => (item={'src': '/boot/initramfs-5.14.0-427.el9.x86_64.img', 'dest': '/boot/initramfs-5.14.0-427.el9.x86_64.img_clone1'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "5ed43ca12f706c87a1e2574d50758d13c0cd79e9", "dest": "/boot/initramfs-5.14.0-427.el9.x86_64.img_clone1", "gid": 0, "group": "root", "item": { "dest": "/boot/initramfs-5.14.0-427.el9.x86_64.img_clone1", "src": "/boot/initramfs-5.14.0-427.el9.x86_64.img" }, "md5sum": "0105704be09346d448b705624f67eb28", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 35036566, "src": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "state": "file", "uid": 0 } TASK [Create kernel Clone1] **************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:21 Friday 19 April 2024 18:44:30 +0000 (0:00:00.898) 0:00:06.084 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:44:30 +0000 (0:00:00.020) 0:00:06.105 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:44:30 +0000 (0:00:00.009) 0:00:06.115 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:44:30 +0000 (0:00:00.016) 0:00:06.131 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:44:30 +0000 (0:00:00.009) 0:00:06.140 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:44:30 +0000 (0:00:00.008) 0:00:06.149 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:44:30 +0000 (0:00:00.015) 0:00:06.165 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:44:30 +0000 (0:00:00.006) 0:00:06.171 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:44:31 +0000 (0:00:01.238) 0:00:07.410 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552267.6696098, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4bb08bede303990d4cc06d6283ed4aeb549389ab", "ctime": 1709714778.407, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375171, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714778.407, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 301, "uid": 0, "version": "3323824319", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:44:31 +0000 (0:00:00.192) 0:00:07.602 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:44:31 +0000 (0:00:00.008) 0:00:07.610 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:44:31 +0000 (0:00:00.007) 0:00:07.618 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:44:32 +0000 (0:00:00.178) 0:00:07.796 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:44:32 +0000 (0:00:00.022) 0:00:07.818 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552267.6696098, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4bb08bede303990d4cc06d6283ed4aeb549389ab", "ctime": 1709714778.407, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375171, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714778.407, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 301, "uid": 0, "version": "3323824319", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:44:32 +0000 (0:00:00.194) 0:00:08.012 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552268.7425807, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "83f88152b19a724c257dcb00b70eccdf0d4ecbc0", "ctime": 1713552268.7425807, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329253185, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713552268.7425807, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "2213709115", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:44:32 +0000 (0:00:00.195) 0:00:08.208 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:44:32 +0000 (0:00:00.008) 0:00:08.216 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:44:32 +0000 (0:00:00.191) 0:00:08.408 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:44:32 +0000 (0:00:00.191) 0:00:08.599 ********** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [sut] => { "actions": [ "grubby --add-kernel=/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1 --initrd=/boot/initramfs-5.14.0-427.el9.x86_64.img_clone1 --title=Clone1 --args=test=kernel --copy-default" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:44:33 +0000 (0:00:00.404) 0:00:09.004 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:44:33 +0000 (0:00:00.010) 0:00:09.014 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:44:33 +0000 (0:00:00.009) 0:00:09.023 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:44:33 +0000 (0:00:00.013) 0:00:09.037 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:36 Friday 19 April 2024 18:44:33 +0000 (0:00:00.014) 0:00:09.052 ********** NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for sut META: triggered running handlers for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Friday 19 April 2024 18:44:33 +0000 (0:00:00.001) 0:00:09.053 ********** changed: [sut] => { "changed": true, "cmd": "set -o pipefail\ngrubby --info=DEFAULT | awk '/^args/ {print $0}'\ncat /etc/default/grub\neval $(grubby --info=DEFAULT | awk '/^args/ {print $0}')\nsed -i -e \"s|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\\\"$args\\\"|\" /etc/default/grub\ncat /etc/default/grub", "delta": "0:00:00.140829", "end": "2024-04-19 18:44:33.661609", "rc": 0, "start": "2024-04-19 18:44:33.520780" } STDOUT: args="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Friday 19 April 2024 18:44:33 +0000 (0:00:00.381) 0:00:09.435 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Friday 19 April 2024 18:44:33 +0000 (0:00:00.009) 0:00:09.444 ********** changed: [sut] => { "changed": true, "elapsed": 41, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Friday 19 April 2024 18:45:15 +0000 (0:00:41.774) 0:00:51.219 ********** skipping: [sut] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Friday 19 April 2024 18:45:15 +0000 (0:00:00.007) 0:00:51.226 ********** ok: [sut] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } TASK [Ensure bootloader_reboot_required is not set to true] ******************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:39 Friday 19 April 2024 18:45:15 +0000 (0:00:00.010) 0:00:51.236 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:43 Friday 19 April 2024 18:45:15 +0000 (0:00:00.009) 0:00:51.245 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:45:15 +0000 (0:00:00.029) 0:00:51.274 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:45:15 +0000 (0:00:00.010) 0:00:51.285 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:45:15 +0000 (0:00:00.017) 0:00:51.303 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:45:15 +0000 (0:00:00.010) 0:00:51.313 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:45:15 +0000 (0:00:00.010) 0:00:51.324 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:45:15 +0000 (0:00:00.017) 0:00:51.341 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:45:15 +0000 (0:00:00.006) 0:00:51.348 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:45:18 +0000 (0:00:02.704) 0:00:54.052 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552273.6604476, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552273.6594477, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375228, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552273.6594477, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "841366044", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:45:18 +0000 (0:00:00.221) 0:00:54.274 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:45:18 +0000 (0:00:00.008) 0:00:54.282 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:45:18 +0000 (0:00:00.007) 0:00:54.289 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:45:18 +0000 (0:00:00.180) 0:00:54.470 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:45:18 +0000 (0:00:00.021) 0:00:54.491 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552273.6604476, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552273.6594477, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375228, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552273.6594477, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "841366044", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:45:18 +0000 (0:00:00.193) 0:00:54.685 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552272.422481, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "83f88152b19a724c257dcb00b70eccdf0d4ecbc0", "ctime": 1713552268.7425807, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329253185, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713552268.7425807, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "2213709115", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:45:19 +0000 (0:00:00.197) 0:00:54.882 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:45:19 +0000 (0:00:00.009) 0:00:54.892 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:45:19 +0000 (0:00:00.193) 0:00:55.085 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:45:19 +0000 (0:00:00.192) 0:00:55.278 ********** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:45:19 +0000 (0:00:00.183) 0:00:55.462 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:45:19 +0000 (0:00:00.010) 0:00:55.472 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:45:19 +0000 (0:00:00.010) 0:00:55.483 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:45:19 +0000 (0:00:00.014) 0:00:55.497 ********** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": false, "id": "c349f2226fa046be8eb58571fe1f537b-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-c349f2226fa046be8eb58571fe1f537b.img", "kernel": "/boot/vmlinuz-0-rescue-c349f2226fa046be8eb58571fe1f537b", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (0-rescue-c349f2226fa046be8eb58571fe1f537b) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0 test=kernel", "default": false, "id": "ad44904f809748dd80a54ec2ff29c30f-5.14.0-427.el9.x86_64_clone1", "index": "2", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img_clone1", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "Clone1" } ] }, "changed": false } TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:35 Friday 19 April 2024 18:45:20 +0000 (0:00:00.340) 0:00:55.838 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove Clone1 kernel with 3 kernel keys] ********************************* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:44 Friday 19 April 2024 18:45:20 +0000 (0:00:00.021) 0:00:55.859 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:45:20 +0000 (0:00:00.028) 0:00:55.888 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:45:20 +0000 (0:00:00.010) 0:00:55.898 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:45:20 +0000 (0:00:00.016) 0:00:55.915 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:45:20 +0000 (0:00:00.010) 0:00:55.925 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:45:20 +0000 (0:00:00.010) 0:00:55.935 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:45:20 +0000 (0:00:00.016) 0:00:55.952 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:45:20 +0000 (0:00:00.006) 0:00:55.959 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:45:26 +0000 (0:00:05.899) 0:01:01.858 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552273.6604476, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552273.6594477, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375228, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552273.6594477, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "841366044", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:45:26 +0000 (0:00:00.194) 0:01:02.053 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:45:26 +0000 (0:00:00.009) 0:01:02.062 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:45:26 +0000 (0:00:00.007) 0:01:02.069 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:45:26 +0000 (0:00:00.179) 0:01:02.249 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:45:26 +0000 (0:00:00.021) 0:01:02.271 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552273.6604476, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552273.6594477, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375228, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552273.6594477, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "841366044", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:45:26 +0000 (0:00:00.196) 0:01:02.467 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552272.422481, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "83f88152b19a724c257dcb00b70eccdf0d4ecbc0", "ctime": 1713552268.7425807, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329253185, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713552268.7425807, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "2213709115", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:45:26 +0000 (0:00:00.194) 0:01:02.661 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:45:26 +0000 (0:00:00.007) 0:01:02.669 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:45:27 +0000 (0:00:00.192) 0:01:02.861 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:45:27 +0000 (0:00:00.192) 0:01:03.053 ********** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [sut] => { "actions": [ "grubby --remove-kernel=/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:45:27 +0000 (0:00:00.431) 0:01:03.485 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:45:27 +0000 (0:00:00.011) 0:01:03.496 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:45:27 +0000 (0:00:00.009) 0:01:03.506 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:45:27 +0000 (0:00:00.013) 0:01:03.519 ********** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": false, "id": "c349f2226fa046be8eb58571fe1f537b-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-c349f2226fa046be8eb58571fe1f537b.img", "kernel": "/boot/vmlinuz-0-rescue-c349f2226fa046be8eb58571fe1f537b", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (0-rescue-c349f2226fa046be8eb58571fe1f537b) 9" } ] }, "changed": false } TASK [Verify that Clone1 kernel is removed] ************************************ task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:61 Friday 19 April 2024 18:45:28 +0000 (0:00:00.298) 0:01:03.817 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Clone kernel to Clone2] ************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:65 Friday 19 April 2024 18:45:28 +0000 (0:00:00.022) 0:01:03.840 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml for sut TASK [Set fact with the default kernel to use for clones] ********************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:3 Friday 19 April 2024 18:45:28 +0000 (0:00:00.015) 0:01:03.855 ********** ok: [sut] => { "ansible_facts": { "test_kernel": { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" } }, "changed": false } TASK [Clone test_kernel kernel and initrd for test purposes] ******************* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:7 Friday 19 April 2024 18:45:28 +0000 (0:00:00.021) 0:01:03.877 ********** changed: [sut] => (item={'src': '/boot/vmlinuz-5.14.0-427.el9.x86_64', 'dest': '/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "7f2676bfd37bf1f31b636df2357f44546a4079b9", "dest": "/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2", "gid": 0, "group": "root", "item": { "dest": "/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2", "src": "/boot/vmlinuz-5.14.0-427.el9.x86_64" }, "md5sum": "43a3cf55442c0e5c727e668e302ef871", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 13592616, "src": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "state": "file", "uid": 0 } changed: [sut] => (item={'src': '/boot/initramfs-5.14.0-427.el9.x86_64.img', 'dest': '/boot/initramfs-5.14.0-427.el9.x86_64.img_clone2'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "5ed43ca12f706c87a1e2574d50758d13c0cd79e9", "dest": "/boot/initramfs-5.14.0-427.el9.x86_64.img_clone2", "gid": 0, "group": "root", "item": { "dest": "/boot/initramfs-5.14.0-427.el9.x86_64.img_clone2", "src": "/boot/initramfs-5.14.0-427.el9.x86_64.img" }, "md5sum": "0105704be09346d448b705624f67eb28", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 35036566, "src": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "state": "file", "uid": 0 } TASK [Create kernel Clone2] **************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:21 Friday 19 April 2024 18:45:28 +0000 (0:00:00.835) 0:01:04.713 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:45:28 +0000 (0:00:00.021) 0:01:04.734 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:45:28 +0000 (0:00:00.010) 0:01:04.745 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:45:29 +0000 (0:00:00.016) 0:01:04.762 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:45:29 +0000 (0:00:00.010) 0:01:04.772 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:45:29 +0000 (0:00:00.010) 0:01:04.783 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:45:29 +0000 (0:00:00.018) 0:01:04.801 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:45:29 +0000 (0:00:00.007) 0:01:04.808 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:45:30 +0000 (0:00:01.197) 0:01:06.006 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552273.6604476, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552273.6594477, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375228, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552273.6594477, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "841366044", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:45:30 +0000 (0:00:00.197) 0:01:06.203 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:45:30 +0000 (0:00:00.008) 0:01:06.211 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:45:30 +0000 (0:00:00.006) 0:01:06.218 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:45:30 +0000 (0:00:00.181) 0:01:06.400 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:45:30 +0000 (0:00:00.022) 0:01:06.422 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552273.6604476, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552273.6594477, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375228, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552273.6594477, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "841366044", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:45:30 +0000 (0:00:00.195) 0:01:06.617 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552272.422481, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "83f88152b19a724c257dcb00b70eccdf0d4ecbc0", "ctime": 1713552268.7425807, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329253185, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713552268.7425807, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "2213709115", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:45:31 +0000 (0:00:00.199) 0:01:06.817 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:45:31 +0000 (0:00:00.008) 0:01:06.825 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:45:31 +0000 (0:00:00.192) 0:01:07.018 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:45:31 +0000 (0:00:00.192) 0:01:07.210 ********** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [sut] => { "actions": [ "grubby --add-kernel=/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2 --initrd=/boot/initramfs-5.14.0-427.el9.x86_64.img_clone2 --title=Clone2 --args=test=kernel" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:45:31 +0000 (0:00:00.404) 0:01:07.615 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:45:31 +0000 (0:00:00.011) 0:01:07.626 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:45:31 +0000 (0:00:00.010) 0:01:07.636 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:45:31 +0000 (0:00:00.014) 0:01:07.650 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_gather_facts | bool", "skip_reason": "Conditional result was False" } TASK [Flush handlers] ********************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:36 Friday 19 April 2024 18:45:31 +0000 (0:00:00.013) 0:01:07.664 ********** NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for sut META: triggered running handlers for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Friday 19 April 2024 18:45:31 +0000 (0:00:00.001) 0:01:07.666 ********** changed: [sut] => { "changed": true, "cmd": "set -o pipefail\ngrubby --info=DEFAULT | awk '/^args/ {print $0}'\ncat /etc/default/grub\neval $(grubby --info=DEFAULT | awk '/^args/ {print $0}')\nsed -i -e \"s|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\\\"$args\\\"|\" /etc/default/grub\ncat /etc/default/grub", "delta": "0:00:00.140098", "end": "2024-04-19 18:45:32.217531", "rc": 0, "start": "2024-04-19 18:45:32.077433" } STDOUT: args="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Friday 19 April 2024 18:45:32 +0000 (0:00:00.325) 0:01:07.992 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Friday 19 April 2024 18:45:32 +0000 (0:00:00.008) 0:01:08.000 ********** changed: [sut] => { "changed": true, "elapsed": 50, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Friday 19 April 2024 18:46:23 +0000 (0:00:51.104) 0:01:59.105 ********** skipping: [sut] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Friday 19 April 2024 18:46:23 +0000 (0:00:00.007) 0:01:59.113 ********** ok: [sut] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } TASK [Ensure bootloader_reboot_required is not set to true] ******************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:39 Friday 19 April 2024 18:46:23 +0000 (0:00:00.009) 0:01:59.122 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:43 Friday 19 April 2024 18:46:23 +0000 (0:00:00.009) 0:01:59.131 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:46:23 +0000 (0:00:00.029) 0:01:59.160 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:46:23 +0000 (0:00:00.010) 0:01:59.170 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:46:23 +0000 (0:00:00.016) 0:01:59.187 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:46:23 +0000 (0:00:00.009) 0:01:59.196 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:46:23 +0000 (0:00:00.009) 0:01:59.205 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:46:23 +0000 (0:00:00.016) 0:01:59.222 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:46:23 +0000 (0:00:00.006) 0:01:59.229 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:46:25 +0000 (0:00:02.448) 0:02:01.677 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552332.2157094, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552332.2147095, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375230, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552332.2147095, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "4164442287", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:46:26 +0000 (0:00:00.219) 0:02:01.896 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:46:26 +0000 (0:00:00.008) 0:02:01.905 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:46:26 +0000 (0:00:00.006) 0:02:01.911 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:46:26 +0000 (0:00:00.181) 0:02:02.093 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:46:26 +0000 (0:00:00.021) 0:02:02.115 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552332.2157094, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552332.2147095, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375230, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552332.2147095, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "4164442287", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:46:26 +0000 (0:00:00.194) 0:02:02.309 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552272.422481, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "83f88152b19a724c257dcb00b70eccdf0d4ecbc0", "ctime": 1713552268.7425807, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329253185, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713552268.7425807, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "2213709115", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:46:26 +0000 (0:00:00.197) 0:02:02.507 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:46:26 +0000 (0:00:00.008) 0:02:02.515 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:46:26 +0000 (0:00:00.191) 0:02:02.707 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:46:27 +0000 (0:00:00.191) 0:02:02.898 ********** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:46:27 +0000 (0:00:00.183) 0:02:03.082 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:46:27 +0000 (0:00:00.011) 0:02:03.093 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:46:27 +0000 (0:00:00.010) 0:02:03.103 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:46:27 +0000 (0:00:00.014) 0:02:03.118 ********** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": false, "id": "c349f2226fa046be8eb58571fe1f537b-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-c349f2226fa046be8eb58571fe1f537b.img", "kernel": "/boot/vmlinuz-0-rescue-c349f2226fa046be8eb58571fe1f537b", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (0-rescue-c349f2226fa046be8eb58571fe1f537b) 9" }, { "args": "test=kernel", "default": false, "id": "ad44904f809748dd80a54ec2ff29c30f-5.14.0-427.el9.x86_64_clone2", "index": "2", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img_clone2", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2", "title": "Clone2" } ] }, "changed": false } TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:71 Friday 19 April 2024 18:46:27 +0000 (0:00:00.333) 0:02:03.452 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove Clone2 kernel with kernel path] *********************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:78 Friday 19 April 2024 18:46:27 +0000 (0:00:00.021) 0:02:03.473 ********** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Friday 19 April 2024 18:46:27 +0000 (0:00:00.035) 0:02:03.508 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Friday 19 April 2024 18:46:27 +0000 (0:00:00.011) 0:02:03.520 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Friday 19 April 2024 18:46:27 +0000 (0:00:00.017) 0:02:03.537 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Friday 19 April 2024 18:46:27 +0000 (0:00:00.010) 0:02:03.548 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Friday 19 April 2024 18:46:27 +0000 (0:00:00.010) 0:02:03.559 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.bootloader : Fail on s390x architecture] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Friday 19 April 2024 18:46:27 +0000 (0:00:00.017) 0:02:03.576 ********** skipping: [sut] => { "changed": false, "false_condition": "ansible_architecture == 's390x'", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Friday 19 April 2024 18:46:27 +0000 (0:00:00.007) 0:02:03.583 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Friday 19 April 2024 18:46:29 +0000 (0:00:01.182) 0:02:04.766 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552332.2157094, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552332.2147095, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375230, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552332.2147095, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "4164442287", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get bootloader args of the default kernel] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Friday 19 April 2024 18:46:29 +0000 (0:00:00.194) 0:02:04.960 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Generate /etc/default/grub] ******* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Friday 19 April 2024 18:46:29 +0000 (0:00:00.008) 0:02:04.968 ********** skipping: [sut] => { "changed": false, "false_condition": "not __bootloader_default_grub_stat.stat.exists", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Determine platform type] ********** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Friday 19 April 2024 18:46:29 +0000 (0:00:00.006) 0:02:04.975 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Friday 19 April 2024 18:46:29 +0000 (0:00:00.179) 0:02:05.155 ********** ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [fedora.linux_system_roles.bootloader : Get stat of /etc/default/grub] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Friday 19 April 2024 18:46:29 +0000 (0:00:00.021) 0:02:05.176 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552332.2157094, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a421fc1209588c8062d84a4cc76bcf0a2ad58010", "ctime": 1713552332.2147095, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2375230, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713552332.2147095, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 304, "uid": 0, "version": "4164442287", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Get stat of /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Friday 19 April 2024 18:46:29 +0000 (0:00:00.194) 0:02:05.371 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1713552272.422481, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "83f88152b19a724c257dcb00b70eccdf0d4ecbc0", "ctime": 1713552268.7425807, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 329253185, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713552268.7425807, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6728, "uid": 0, "version": "2213709115", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.bootloader : Use a general grub conf path if UEFI path is a stub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Friday 19 April 2024 18:46:29 +0000 (0:00:00.195) 0:02:05.566 ********** skipping: [sut] => { "changed": false, "false_condition": "__bootloader_grub_conf_stat.stat.size < 500", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Friday 19 April 2024 18:46:29 +0000 (0:00:00.008) 0:02:05.574 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Friday 19 April 2024 18:46:30 +0000 (0:00:00.192) 0:02:05.767 ********** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Friday 19 April 2024 18:46:30 +0000 (0:00:00.192) 0:02:05.959 ********** Notification for handler Fix default kernel boot parameters has been saved. Notification for handler Reboot system has been saved. changed: [sut] => { "actions": [ "grubby --remove-kernel=/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Friday 19 April 2024 18:46:30 +0000 (0:00:00.418) 0:02:06.378 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Put boot loader password to /boot/grub2/user.cfg] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Friday 19 April 2024 18:46:30 +0000 (0:00:00.012) 0:02:06.390 ********** skipping: [sut] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.bootloader : Remove boot loader password configuration] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Friday 19 April 2024 18:46:30 +0000 (0:00:00.011) 0:02:06.401 ********** skipping: [sut] => { "changed": false, "false_condition": "bootloader_remove_password | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.bootloader : Collect bootloader facts] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Friday 19 April 2024 18:46:30 +0000 (0:00:00.015) 0:02:06.417 ********** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": true, "id": "c349f2226fa046be8eb58571fe1f537b-5.14.0-427.el9.x86_64", "index": "0", "initrd": "/boot/initramfs-5.14.0-427.el9.x86_64.img", "kernel": "/boot/vmlinuz-5.14.0-427.el9.x86_64", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (5.14.0-427.el9.x86_64) 9" }, { "args": "ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0", "default": false, "id": "c349f2226fa046be8eb58571fe1f537b-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-c349f2226fa046be8eb58571fe1f537b.img", "kernel": "/boot/vmlinuz-0-rescue-c349f2226fa046be8eb58571fe1f537b", "root": "UUID=d673fe01-b454-4235-b8eb-90a73d08e5be", "title": "CentOS Stream (0-rescue-c349f2226fa046be8eb58571fe1f537b) 9" } ] }, "changed": false } TASK [Verify that Clone2 kernel is removed] ************************************ task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:88 Friday 19 April 2024 18:46:30 +0000 (0:00:00.296) 0:02:06.714 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove cloned kernels] *************************************************** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:95 Friday 19 April 2024 18:46:30 +0000 (0:00:00.022) 0:02:06.736 ********** changed: [sut] => (item=1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "grubby", "--remove-kernel=/boot/vmlinuz-5.14.0-427.el9.x86_64_clone1" ], "delta": "0:00:00.047521", "end": "2024-04-19 18:46:31.195881", "failed_when_result": false, "item": 1, "rc": 1, "start": "2024-04-19 18:46:31.148360" } STDERR: The param /boot/vmlinuz-5.14.0-427.el9.x86_64_clone1 is incorrect MSG: non-zero return code changed: [sut] => (item=2) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "grubby", "--remove-kernel=/boot/vmlinuz-5.14.0-427.el9.x86_64_clone2" ], "delta": "0:00:00.047462", "end": "2024-04-19 18:46:31.419962", "failed_when_result": false, "item": 2, "rc": 1, "start": "2024-04-19 18:46:31.372500" } STDERR: The param /boot/vmlinuz-5.14.0-427.el9.x86_64_clone2 is incorrect MSG: non-zero return code NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Fix default kernel boot parameters for sut NOTIFIED HANDLER fedora.linux_system_roles.bootloader : Reboot system for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Fix default kernel boot parameters] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Friday 19 April 2024 18:46:31 +0000 (0:00:00.458) 0:02:07.194 ********** changed: [sut] => { "changed": true, "cmd": "set -o pipefail\ngrubby --info=DEFAULT | awk '/^args/ {print $0}'\ncat /etc/default/grub\neval $(grubby --info=DEFAULT | awk '/^args/ {print $0}')\nsed -i -e \"s|^GRUB_CMDLINE_LINUX=.*|GRUB_CMDLINE_LINUX=\\\"$args\\\"|\" /etc/default/grub\ncat /etc/default/grub", "delta": "0:00:00.110852", "end": "2024-04-19 18:46:31.716625", "rc": 0, "start": "2024-04-19 18:46:31.605773" } STDOUT: args="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ro rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M net.ifnames=0" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Friday 19 April 2024 18:46:31 +0000 (0:00:00.297) 0:02:07.491 ********** included: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml for sut RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Friday 19 April 2024 18:46:31 +0000 (0:00:00.008) 0:02:07.500 ********** changed: [sut] => { "changed": true, "elapsed": 40, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Friday 19 April 2024 18:47:12 +0000 (0:00:40.850) 0:02:48.350 ********** skipping: [sut] => { "false_condition": "not bootloader_reboot_ok" } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Set bootloader_reboot_required] *** task path: /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Friday 19 April 2024 18:47:12 +0000 (0:00:00.007) 0:02:48.358 ********** ok: [sut] => { "ansible_facts": { "bootloader_reboot_required": false }, "changed": false } PLAY RECAP ********************************************************************* sut : ok=103 changed=14 unreachable=0 failed=0 skipped=79 rescued=0 ignored=0 Friday 19 April 2024 18:47:12 +0000 (0:00:00.011) 0:02:48.369 ********** =============================================================================== fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 51.10s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 41.77s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 40.85s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 5.90s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.70s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.45s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 2.35s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.24s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.20s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 1.18s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Clone test_kernel kernel and initrd for test purposes ------------------- 0.90s /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:7 -------- Clone test_kernel kernel and initrd for test purposes ------------------- 0.84s /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tasks/clone_kernel.yml:7 -------- fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role --- 0.58s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Remove cloned kernels --------------------------------------------------- 0.46s /WORKDIR/git-refactor-with-mock_0j5x81i/tests/tests_add_rm.yml:95 ------------- fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.43s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.42s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.40s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.40s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Fix default kernel boot parameters --- 0.38s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.36s /WORKDIR/git-refactor-with-mock_0j5x81i/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---