# 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-mocks_8q24ts/.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-mocks_8q24ts/tests/tests_add_rm.yml PLAY [Test creating, modifying, and removing kernels] ************************** TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:13 Thursday 18 April 2024 15:12:30 +0000 (0:00:00.017) 0:00:00.017 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:12:30 +0000 (0:00:00.033) 0:00:00.050 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:12:30 +0000 (0:00:00.013) 0:00:00.064 ******** ok: [sut] TASK [fedora.linux_system_roles.bootloader : Check if system is ostree] ******** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:12:30 +0000 (0:00:00.743) 0:00:00.807 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:12:31 +0000 (0:00:00.303) 0:00:01.111 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:12:31 +0000 (0:00:00.017) 0:00:01.128 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:12:31 +0000 (0:00:00.025) 0:00:01.154 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:12:31 +0000 (0:00:00.009) 0:00:01.163 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:12:34 +0000 (0:00:03.278) 0:00:04.442 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1709714944.362, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65375c9d7916928165c702c8dcb2c96c01b575b3", "ctime": 1709714944.071, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2213188, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714944.071, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 273, "uid": 0, "version": "1770505841", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:12:34 +0000 (0:00:00.225) 0:00:04.667 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:12:34 +0000 (0:00:00.011) 0:00:04.679 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:12:34 +0000 (0:00:00.008) 0:00:04.688 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:12:34 +0000 (0:00:00.209) 0:00:04.898 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:12:34 +0000 (0:00:00.030) 0:00:04.928 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453154.6455286, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65375c9d7916928165c702c8dcb2c96c01b575b3", "ctime": 1709714944.071, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2213188, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714944.071, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 273, "uid": 0, "version": "1770505841", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:12:35 +0000 (0:00:00.228) 0:00:05.156 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1709714945.487, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "cccc7b0b48ff86dd10ff50c669161dc9bcbd2966", "ctime": 1709714945.487, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2213190, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1709714945.487, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6406, "uid": 0, "version": "3119134227", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:12:35 +0000 (0:00:00.232) 0:00:05.389 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:12:35 +0000 (0:00:00.009) 0:00:05.398 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:12:35 +0000 (0:00:00.300) 0:00:05.699 ******** changed: [sut] => { "changed": true, "rc": 0 } MSG: 5 replacements made TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:12:35 +0000 (0:00:00.225) 0:00:05.924 ******** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.292) 0:00:06.217 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.013) 0:00:06.230 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.013) 0:00:06.243 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.018) 0:00:06.261 ******** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet", "default": false, "id": "cbd80f73a04d416b942f09d4dce77b46-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-cbd80f73a04d416b942f09d4dce77b46.img", "kernel": "/boot/vmlinuz-0-rescue-cbd80f73a04d416b942f09d4dce77b46", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (0-rescue-cbd80f73a04d416b942f09d4dce77b46) 8" } ] }, "changed": false } TASK [Skip test on ostree systems] ********************************************* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:19 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.480) 0:00:06.742 ******** 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-mocks_8q24ts/tests/tests_add_rm.yml:26 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.002) 0:00:06.744 ******** META: triggered running handlers for sut TASK [Clone kernel to Clone1] ************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:29 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.001) 0:00:06.746 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml for sut TASK [Set fact with the default kernel to use for clones] ********************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:3 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.016) 0:00:06.762 ******** ok: [sut] => { "ansible_facts": { "test_kernel": { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" } }, "changed": false } TASK [Clone test_kernel kernel and initrd for test purposes] ******************* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:7 Thursday 18 April 2024 15:12:36 +0000 (0:00:00.028) 0:00:06.791 ******** changed: [sut] => (item={'src': '/boot/vmlinuz-4.18.0-540.el8.x86_64', 'dest': '/boot/vmlinuz-4.18.0-540.el8.x86_64_clone1'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "66427db50c8d3165c6b97e49b14c0c3697dfc860", "dest": "/boot/vmlinuz-4.18.0-540.el8.x86_64_clone1", "gid": 0, "group": "root", "item": { "dest": "/boot/vmlinuz-4.18.0-540.el8.x86_64_clone1", "src": "/boot/vmlinuz-4.18.0-540.el8.x86_64" }, "md5sum": "4d13a1f2c37db07d97b52e86454034da", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 11085536, "src": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "state": "file", "uid": 0 } changed: [sut] => (item={'src': '/boot/initramfs-4.18.0-540.el8.x86_64.img', 'dest': '/boot/initramfs-4.18.0-540.el8.x86_64.img_clone1'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "acc27c8a6d32c6f682806b75caf8790003e682b9", "dest": "/boot/initramfs-4.18.0-540.el8.x86_64.img_clone1", "gid": 0, "group": "root", "item": { "dest": "/boot/initramfs-4.18.0-540.el8.x86_64.img_clone1", "src": "/boot/initramfs-4.18.0-540.el8.x86_64.img" }, "md5sum": "15bcbe8f76644f046eeb694102c9613b", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 31355768, "src": "/boot/initramfs-4.18.0-540.el8.x86_64.img", "state": "file", "uid": 0 } TASK [Create kernel Clone1] **************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:21 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.911) 0:00:07.703 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.031) 0:00:07.734 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.015) 0:00:07.750 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.020) 0:00:07.770 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.012) 0:00:07.783 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.013) 0:00:07.796 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.023) 0:00:07.820 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:12:37 +0000 (0:00:00.007) 0:00:07.828 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:12:40 +0000 (0:00:03.146) 0:00:10.974 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453154.6455286, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65375c9d7916928165c702c8dcb2c96c01b575b3", "ctime": 1709714944.071, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2213188, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714944.071, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 273, "uid": 0, "version": "1770505841", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.226) 0:00:11.200 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.009) 0:00:11.210 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.008) 0:00:11.219 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.208) 0:00:11.428 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.029) 0:00:11.457 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453154.6455286, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65375c9d7916928165c702c8dcb2c96c01b575b3", "ctime": 1709714944.071, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2213188, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1709714944.071, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 273, "uid": 0, "version": "1770505841", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.223) 0:00:11.681 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453155.9125307, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "74f7564d2b790023af1eadcd0ca2b46f7cfcad43", "ctime": 1713453155.9135306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 23068993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713453155.9125307, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6405, "uid": 0, "version": "2103989556", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.229) 0:00:11.910 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:12:41 +0000 (0:00:00.009) 0:00:11.920 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.226) 0:00:12.147 ******** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.221) 0:00:12.369 ******** 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-4.18.0-540.el8.x86_64_clone1 --initrd=/boot/initramfs-4.18.0-540.el8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.485) 0:00:12.854 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.014) 0:00:12.868 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.014) 0:00:12.883 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.017) 0:00:12.901 ******** 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-mocks_8q24ts/tests/tasks/clone_kernel.yml:36 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.020) 0:00:12.922 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Thursday 18 April 2024 15:12:42 +0000 (0:00:00.002) 0:00:12.924 ******** 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.180025", "end": "2024-04-18 15:12:43.386955", "rc": 0, "start": "2024-04-18 15:12:43.206930" } STDOUT: args="ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params" 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="crashkernel=auto net.ifnames=0 rhgb quiet" 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 crashkernel=auto net.ifnames=0 rhgb quiet " GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Thursday 18 April 2024 15:12:43 +0000 (0:00:00.472) 0:00:13.397 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Thursday 18 April 2024 15:12:43 +0000 (0:00:00.014) 0:00:13.411 ******** changed: [sut] => { "changed": true, "elapsed": 23, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Thursday 18 April 2024 15:13:07 +0000 (0:00:24.286) 0:00:37.698 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.011) 0:00:37.709 ******** 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-mocks_8q24ts/tests/tasks/clone_kernel.yml:39 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.014) 0:00:37.724 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:43 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.013) 0:00:37.737 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.049) 0:00:37.786 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.013) 0:00:37.800 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.023) 0:00:37.823 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.014) 0:00:37.838 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.016) 0:00:37.854 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.028) 0:00:37.883 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:13:07 +0000 (0:00:00.009) 0:00:37.892 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:13:13 +0000 (0:00:05.186) 0:00:43.079 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453163.3855429, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453163.384543, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357513, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453163.384543, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "2416244141", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:13:13 +0000 (0:00:00.229) 0:00:43.308 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:13:13 +0000 (0:00:00.010) 0:00:43.319 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:13:13 +0000 (0:00:00.010) 0:00:43.329 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:13:13 +0000 (0:00:00.213) 0:00:43.542 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:13:13 +0000 (0:00:00.028) 0:00:43.570 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453163.3855429, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453163.384543, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357513, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453163.384543, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "2416244141", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:13:13 +0000 (0:00:00.227) 0:00:43.798 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453161.8835404, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "74f7564d2b790023af1eadcd0ca2b46f7cfcad43", "ctime": 1713453155.9135306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 23068993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713453155.9125307, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6405, "uid": 0, "version": "2103989556", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.230) 0:00:44.028 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.011) 0:00:44.039 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.229) 0:00:44.269 ******** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.224) 0:00:44.494 ******** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.212) 0:00:44.706 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.013) 0:00:44.720 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.012) 0:00:44.733 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:13:14 +0000 (0:00:00.016) 0:00:44.749 ******** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params test=kernel", "default": false, "id": "686c9dd20c4d443c90fb2a26f970557c-4.18.0-540.el8.x86_64_clone1", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img_clone1", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64_clone1", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "Clone1" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "1", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet", "default": false, "id": "cbd80f73a04d416b942f09d4dce77b46-0-rescue", "index": "2", "initrd": "/boot/initramfs-0-rescue-cbd80f73a04d416b942f09d4dce77b46.img", "kernel": "/boot/vmlinuz-0-rescue-cbd80f73a04d416b942f09d4dce77b46", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (0-rescue-cbd80f73a04d416b942f09d4dce77b46) 8" } ] }, "changed": false } TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:35 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.427) 0:00:45.176 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove Clone1 kernel with 3 kernel keys] ********************************* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:44 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.027) 0:00:45.204 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.045) 0:00:45.250 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.013) 0:00:45.263 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.020) 0:00:45.283 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.013) 0:00:45.297 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.012) 0:00:45.310 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.025) 0:00:45.335 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:13:15 +0000 (0:00:00.008) 0:00:45.344 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:13:18 +0000 (0:00:03.187) 0:00:48.531 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453163.3855429, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453163.384543, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357513, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453163.384543, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "2416244141", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:13:18 +0000 (0:00:00.226) 0:00:48.757 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:13:18 +0000 (0:00:00.010) 0:00:48.767 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:13:18 +0000 (0:00:00.008) 0:00:48.776 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:13:18 +0000 (0:00:00.206) 0:00:48.983 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:13:19 +0000 (0:00:00.028) 0:00:49.012 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453163.3855429, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453163.384543, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357513, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453163.384543, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "2416244141", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:13:19 +0000 (0:00:00.225) 0:00:49.237 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453161.8835404, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "74f7564d2b790023af1eadcd0ca2b46f7cfcad43", "ctime": 1713453155.9135306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 23068993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713453155.9125307, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6405, "uid": 0, "version": "2103989556", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:13:19 +0000 (0:00:00.231) 0:00:49.469 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:13:19 +0000 (0:00:00.010) 0:00:49.480 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:13:19 +0000 (0:00:00.228) 0:00:49.708 ******** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:13:19 +0000 (0:00:00.228) 0:00:49.936 ******** 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-4.18.0-540.el8.x86_64_clone1" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.526) 0:00:50.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.014) 0:00:50.477 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.012) 0:00:50.489 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.017) 0:00:50.507 ******** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet", "default": false, "id": "cbd80f73a04d416b942f09d4dce77b46-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-cbd80f73a04d416b942f09d4dce77b46.img", "kernel": "/boot/vmlinuz-0-rescue-cbd80f73a04d416b942f09d4dce77b46", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (0-rescue-cbd80f73a04d416b942f09d4dce77b46) 8" } ] }, "changed": false } TASK [Verify that Clone1 kernel is removed] ************************************ task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:61 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.364) 0:00:50.872 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Clone kernel to Clone2] ************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:65 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.029) 0:00:50.901 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml for sut TASK [Set fact with the default kernel to use for clones] ********************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:3 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.023) 0:00:50.925 ******** ok: [sut] => { "ansible_facts": { "test_kernel": { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" } }, "changed": false } TASK [Clone test_kernel kernel and initrd for test purposes] ******************* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:7 Thursday 18 April 2024 15:13:20 +0000 (0:00:00.028) 0:00:50.954 ******** changed: [sut] => (item={'src': '/boot/vmlinuz-4.18.0-540.el8.x86_64', 'dest': '/boot/vmlinuz-4.18.0-540.el8.x86_64_clone2'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "66427db50c8d3165c6b97e49b14c0c3697dfc860", "dest": "/boot/vmlinuz-4.18.0-540.el8.x86_64_clone2", "gid": 0, "group": "root", "item": { "dest": "/boot/vmlinuz-4.18.0-540.el8.x86_64_clone2", "src": "/boot/vmlinuz-4.18.0-540.el8.x86_64" }, "md5sum": "4d13a1f2c37db07d97b52e86454034da", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 11085536, "src": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "state": "file", "uid": 0 } changed: [sut] => (item={'src': '/boot/initramfs-4.18.0-540.el8.x86_64.img', 'dest': '/boot/initramfs-4.18.0-540.el8.x86_64.img_clone2'}) => { "ansible_loop_var": "item", "changed": true, "checksum": "acc27c8a6d32c6f682806b75caf8790003e682b9", "dest": "/boot/initramfs-4.18.0-540.el8.x86_64.img_clone2", "gid": 0, "group": "root", "item": { "dest": "/boot/initramfs-4.18.0-540.el8.x86_64.img_clone2", "src": "/boot/initramfs-4.18.0-540.el8.x86_64.img" }, "md5sum": "15bcbe8f76644f046eeb694102c9613b", "mode": "0600", "owner": "root", "secontext": "system_u:object_r:boot_t:s0", "size": 31355768, "src": "/boot/initramfs-4.18.0-540.el8.x86_64.img", "state": "file", "uid": 0 } TASK [Create kernel Clone2] **************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:21 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.831) 0:00:51.785 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.029) 0:00:51.815 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.013) 0:00:51.829 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.019) 0:00:51.849 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.013) 0:00:51.863 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.013) 0:00:51.876 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.023) 0:00:51.900 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:13:21 +0000 (0:00:00.009) 0:00:51.909 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:13:25 +0000 (0:00:03.133) 0:00:55.042 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453163.3855429, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453163.384543, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357513, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453163.384543, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "2416244141", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:13:25 +0000 (0:00:00.224) 0:00:55.267 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:13:25 +0000 (0:00:00.010) 0:00:55.277 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:13:25 +0000 (0:00:00.009) 0:00:55.287 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:13:25 +0000 (0:00:00.209) 0:00:55.496 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:13:25 +0000 (0:00:00.034) 0:00:55.530 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453163.3855429, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453163.384543, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357513, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453163.384543, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "2416244141", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:13:25 +0000 (0:00:00.229) 0:00:55.760 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453161.8835404, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "74f7564d2b790023af1eadcd0ca2b46f7cfcad43", "ctime": 1713453155.9135306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 23068993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713453155.9125307, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6405, "uid": 0, "version": "2103989556", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:13:26 +0000 (0:00:00.234) 0:00:55.994 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:13:26 +0000 (0:00:00.010) 0:00:56.005 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:13:26 +0000 (0:00:00.251) 0:00:56.256 ******** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:13:26 +0000 (0:00:00.223) 0:00:56.479 ******** 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-4.18.0-540.el8.x86_64_clone2 --initrd=/boot/initramfs-4.18.0-540.el8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:13:26 +0000 (0:00:00.496) 0:00:56.975 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:13:26 +0000 (0:00:00.015) 0:00:56.991 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:13:27 +0000 (0:00:00.014) 0:00:57.006 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:13:27 +0000 (0:00:00.020) 0:00:57.026 ******** 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-mocks_8q24ts/tests/tasks/clone_kernel.yml:36 Thursday 18 April 2024 15:13:27 +0000 (0:00:00.020) 0:00:57.047 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Thursday 18 April 2024 15:13:27 +0000 (0:00:00.002) 0:00:57.049 ******** 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.179915", "end": "2024-04-18 15:13:27.434720", "rc": 0, "start": "2024-04-18 15:13:27.254805" } STDOUT: args="ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params" 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 crashkernel=auto net.ifnames=0 rhgb quiet " 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 crashkernel=auto net.ifnames=0 rhgb quiet " GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Thursday 18 April 2024 15:13:27 +0000 (0:00:00.396) 0:00:57.446 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Thursday 18 April 2024 15:13:27 +0000 (0:00:00.012) 0:00:57.458 ******** changed: [sut] => { "changed": true, "elapsed": 29, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Thursday 18 April 2024 15:13:57 +0000 (0:00:30.407) 0:01:27.866 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Thursday 18 April 2024 15:13:57 +0000 (0:00:00.010) 0:01:27.876 ******** 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-mocks_8q24ts/tests/tasks/clone_kernel.yml:39 Thursday 18 April 2024 15:13:57 +0000 (0:00:00.014) 0:01:27.890 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:43 Thursday 18 April 2024 15:13:57 +0000 (0:00:00.014) 0:01:27.905 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:13:57 +0000 (0:00:00.048) 0:01:27.954 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:13:57 +0000 (0:00:00.016) 0:01:27.970 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:13:58 +0000 (0:00:00.024) 0:01:27.995 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:13:58 +0000 (0:00:00.016) 0:01:28.011 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:13:58 +0000 (0:00:00.014) 0:01:28.026 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:13:58 +0000 (0:00:00.025) 0:01:28.051 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:13:58 +0000 (0:00:00.012) 0:01:28.064 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:14:03 +0000 (0:00:04.973) 0:01:33.038 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453207.433778, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453207.430778, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453207.430778, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "734546014", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:14:03 +0000 (0:00:00.234) 0:01:33.272 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:14:03 +0000 (0:00:00.010) 0:01:33.283 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:14:03 +0000 (0:00:00.009) 0:01:33.292 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:14:03 +0000 (0:00:00.213) 0:01:33.505 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:14:03 +0000 (0:00:00.027) 0:01:33.533 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453207.433778, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453207.430778, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453207.430778, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "734546014", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:14:03 +0000 (0:00:00.229) 0:01:33.763 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453161.8835404, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "74f7564d2b790023af1eadcd0ca2b46f7cfcad43", "ctime": 1713453155.9135306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 23068993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713453155.9125307, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6405, "uid": 0, "version": "2103989556", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.229) 0:01:33.992 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.011) 0:01:34.003 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.227) 0:01:34.231 ******** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.227) 0:01:34.459 ******** ok: [sut] => { "actions": [], "changed": false } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.213) 0:01:34.672 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.014) 0:01:34.687 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.013) 0:01:34.700 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:14:04 +0000 (0:00:00.017) 0:01:34.718 ******** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "test=kernel", "default": false, "id": "686c9dd20c4d443c90fb2a26f970557c-4.18.0-540.el8.x86_64_clone2", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img_clone2", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64_clone2", "title": "Clone2" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "1", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet", "default": false, "id": "cbd80f73a04d416b942f09d4dce77b46-0-rescue", "index": "2", "initrd": "/boot/initramfs-0-rescue-cbd80f73a04d416b942f09d4dce77b46.img", "kernel": "/boot/vmlinuz-0-rescue-cbd80f73a04d416b942f09d4dce77b46", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (0-rescue-cbd80f73a04d416b942f09d4dce77b46) 8" } ] }, "changed": false } TASK [Verify settings] ********************************************************* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:71 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.408) 0:01:35.126 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove Clone2 kernel with kernel path] *********************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:78 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.026) 0:01:35.152 ******** TASK [fedora.linux_system_roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:3 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.050) 0:01:35.202 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.014) 0:01:35.217 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:11 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.021) 0:01:35.238 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:16 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.014) 0:01:35.253 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:20 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.013) 0:01:35.266 ******** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__bootloader_vars_file is file", "item": "CentOS_8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:6 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.021) 0:01:35.288 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Thursday 18 April 2024 15:14:05 +0000 (0:00:00.010) 0:01:35.299 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:19 Thursday 18 April 2024 15:14:08 +0000 (0:00:03.157) 0:01:38.456 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453207.433778, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453207.430778, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453207.430778, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "734546014", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:27 Thursday 18 April 2024 15:14:08 +0000 (0:00:00.226) 0:01:38.683 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:34 Thursday 18 April 2024 15:14:08 +0000 (0:00:00.010) 0:01:38.693 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:44 Thursday 18 April 2024 15:14:08 +0000 (0:00:00.009) 0:01:38.702 ******** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.bootloader : Set boot loader configuration files] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:49 Thursday 18 April 2024 15:14:08 +0000 (0:00:00.211) 0:01:38.914 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:60 Thursday 18 April 2024 15:14:08 +0000 (0:00:00.028) 0:01:38.942 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453207.433778, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8106f5ad382722c59d66e60f2e68ccf76a806e5a", "ctime": 1713453207.430778, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 2357506, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1713453207.430778, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 277, "uid": 0, "version": "734546014", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:65 Thursday 18 April 2024 15:14:09 +0000 (0:00:00.227) 0:01:39.169 ******** ok: [sut] => { "changed": false, "stat": { "atime": 1713453161.8835404, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "74f7564d2b790023af1eadcd0ca2b46f7cfcad43", "ctime": 1713453155.9135306, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 23068993, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1713453155.9125307, "nlink": 1, "path": "/boot/grub2/grub.cfg", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 6405, "uid": 0, "version": "2103989556", "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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:70 Thursday 18 April 2024 15:14:09 +0000 (0:00:00.232) 0:01:39.401 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:77 Thursday 18 April 2024 15:14:09 +0000 (0:00:00.010) 0:01:39.412 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:85 Thursday 18 April 2024 15:14:09 +0000 (0:00:00.225) 0:01:39.638 ******** ok: [sut] => { "changed": false, "rc": 0 } TASK [fedora.linux_system_roles.bootloader : Ensure boot loader settings] ****** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 Thursday 18 April 2024 15:14:09 +0000 (0:00:00.224) 0:01:39.863 ******** 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-4.18.0-540.el8.x86_64_clone2" ], "changed": true } TASK [fedora.linux_system_roles.bootloader : Generate boot loader password] **** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:102 Thursday 18 April 2024 15:14:10 +0000 (0:00:00.505) 0:01:40.368 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:114 Thursday 18 April 2024 15:14:10 +0000 (0:00:00.014) 0:01:40.382 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:122 Thursday 18 April 2024 15:14:10 +0000 (0:00:00.013) 0:01:40.396 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 Thursday 18 April 2024 15:14:10 +0000 (0:00:00.017) 0:01:40.414 ******** ok: [sut] => { "ansible_facts": { "bootloader_facts": [ { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params", "default": true, "id": "cbd80f73a04d416b942f09d4dce77b46-4.18.0-540.el8.x86_64", "index": "0", "initrd": "/boot/initramfs-4.18.0-540.el8.x86_64.img $tuned_initrd", "kernel": "/boot/vmlinuz-4.18.0-540.el8.x86_64", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (4.18.0-540.el8.x86_64) 8" }, { "args": "ro crashkernel=auto net.ifnames=0 rhgb quiet", "default": false, "id": "cbd80f73a04d416b942f09d4dce77b46-0-rescue", "index": "1", "initrd": "/boot/initramfs-0-rescue-cbd80f73a04d416b942f09d4dce77b46.img", "kernel": "/boot/vmlinuz-0-rescue-cbd80f73a04d416b942f09d4dce77b46", "root": "UUID=a5dd515a-6ac6-4058-8f5f-1857be5c3e54", "title": "CentOS Stream (0-rescue-cbd80f73a04d416b942f09d4dce77b46) 8" } ] }, "changed": false } TASK [Verify that Clone2 kernel is removed] ************************************ task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:88 Thursday 18 April 2024 15:14:10 +0000 (0:00:00.368) 0:01:40.783 ******** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Remove cloned kernels] *************************************************** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:95 Thursday 18 April 2024 15:14:10 +0000 (0:00:00.028) 0:01:40.811 ******** changed: [sut] => (item=1) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "grubby", "--remove-kernel=/boot/vmlinuz-4.18.0-540.el8.x86_64_clone1" ], "delta": "0:00:00.055867", "end": "2024-04-18 15:14:11.072141", "failed_when_result": false, "item": 1, "rc": 1, "start": "2024-04-18 15:14:11.016274" } STDERR: The param /boot/vmlinuz-4.18.0-540.el8.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-4.18.0-540.el8.x86_64_clone2" ], "delta": "0:00:00.056506", "end": "2024-04-18 15:14:11.331043", "failed_when_result": false, "item": 2, "rc": 1, "start": "2024-04-18 15:14:11.274537" } STDERR: The param /boot/vmlinuz-4.18.0-540.el8.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 Thursday 18 April 2024 15:14:11 +0000 (0:00:00.531) 0:01:41.342 ******** 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.148374", "end": "2024-04-18 15:14:11.695615", "rc": 0, "start": "2024-04-18 15:14:11.547241" } STDOUT: args="ro crashkernel=auto net.ifnames=0 rhgb quiet $tuned_params" 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 crashkernel=auto net.ifnames=0 rhgb quiet " 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 crashkernel=auto net.ifnames=0 rhgb quiet " GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true RUNNING HANDLER [fedora.linux_system_roles.bootloader : Reboot system] ********* task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:15 Thursday 18 April 2024 15:14:11 +0000 (0:00:00.364) 0:01:41.707 ******** included: /WORKDIR/git-refactor-with-mocks_8q24ts/.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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 Thursday 18 April 2024 15:14:11 +0000 (0:00:00.011) 0:01:41.718 ******** changed: [sut] => { "changed": true, "elapsed": 26, "rebooted": true } RUNNING HANDLER [fedora.linux_system_roles.bootloader : Notify about reboot] *** task path: /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:7 Thursday 18 April 2024 15:14:38 +0000 (0:00:27.173) 0:02:08.892 ******** 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-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:14 Thursday 18 April 2024 15:14:38 +0000 (0:00:00.009) 0:02:08.902 ******** 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 Thursday 18 April 2024 15:14:38 +0000 (0:00:00.013) 0:02:08.915 ******** =============================================================================== fedora.linux_system_roles.bootloader : Reboot system when bootloader_reboot_ok is true -- 30.41s /WORKDIR/git-refactor-with-mocks_8q24ts/.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 -- 27.17s /WORKDIR/git-refactor-with-mocks_8q24ts/.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 -- 24.29s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/reboot.yml:3 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 5.19s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 4.97s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.28s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.19s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.16s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.15s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 fedora.linux_system_roles.bootloader : Ensure required packages are installed --- 3.13s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:13 Clone test_kernel kernel and initrd for test purposes ------------------- 0.91s /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:7 -------- Clone test_kernel kernel and initrd for test purposes ------------------- 0.83s /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tasks/clone_kernel.yml:7 -------- fedora.linux_system_roles.bootloader : Ensure ansible_facts used by role --- 0.74s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/set_vars.yml:3 Remove cloned kernels --------------------------------------------------- 0.53s /WORKDIR/git-refactor-with-mocks_8q24ts/tests/tests_add_rm.yml:95 ------------- fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.53s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.51s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.50s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Ensure boot loader settings ------ 0.49s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:92 fedora.linux_system_roles.bootloader : Collect bootloader facts --------- 0.48s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/tasks/main.yml:129 fedora.linux_system_roles.bootloader : Fix default kernel boot parameters --- 0.47s /WORKDIR/git-refactor-with-mocks_8q24ts/.collection/ansible_collections/fedora/linux_system_roles/roles/bootloader/handlers/main.yml:4 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---