# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_add_rm.yml ***************************************************** 1 plays in /WORKDIR/git-bios-uefii56nsctm/tests/tests_add_rm.yml PLAY [Test creating, modifying, and removing kernels] ************************** META: ran handlers TASK [Get bootloader_facts] **************************************************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/tests_add_rm.yml:13 Monday 26 February 2024 18:12:41 +0000 (0:00:00.017) 0:00:00.017 ******* TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 Monday 26 February 2024 18:12:41 +0000 (0:00:00.035) 0:00:00.053 ******* included: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml for sut TASK [linux-system-roles.bootloader : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 Monday 26 February 2024 18:12:41 +0000 (0:00:00.014) 0:00:00.068 ******* ok: [sut] TASK [linux-system-roles.bootloader : Check if system is ostree] *************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:12 Monday 26 February 2024 18:12:42 +0000 (0:00:00.615) 0:00:00.683 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:17 Monday 26 February 2024 18:12:42 +0000 (0:00:00.184) 0:00:00.868 ******* ok: [sut] => { "ansible_facts": { "__bootloader_is_ostree": false }, "changed": false } TASK [linux-system-roles.bootloader : Set platform/version specific variables] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:21 Monday 26 February 2024 18:12:42 +0000 (0:00:00.018) 0:00:00.886 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Ensure required packages are installed] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 Monday 26 February 2024 18:12:42 +0000 (0:00:00.025) 0:00:00.912 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed" ] } TASK [linux-system-roles.bootloader : Ensure boot loader settings] ************* task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:13 Monday 26 February 2024 18:12:43 +0000 (0:00:00.938) 0:00:01.851 ******* ok: [sut] => { "actions": [], "changed": false } TASK [linux-system-roles.bootloader : Determine platform type] ***************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:20 Monday 26 February 2024 18:12:43 +0000 (0:00:00.171) 0:00:02.023 ******* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.bootloader : Set boot loader configuration files] ***** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 Monday 26 February 2024 18:12:43 +0000 (0:00:00.116) 0:00:02.139 ******* ok: [sut] => { "ansible_facts": { "__bootloader_grub_conf": "/boot/grub2/grub.cfg", "__bootloader_user_conf": "/boot/grub2/user.cfg" }, "changed": false } TASK [linux-system-roles.bootloader : Get stat of /etc/default/grub] *********** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:36 Monday 26 February 2024 18:12:43 +0000 (0:00:00.031) 0:00:02.170 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1708443955.650116, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d45f560efc7eafef37bf56677f0fab9fc0276c8b", "ctime": 1708443955.6511161, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 144314, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1708443955.650116, "nlink": 1, "path": "/etc/default/grub", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 249, "uid": 0, "version": "18446744071638590892", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:41 Monday 26 February 2024 18:12:43 +0000 (0:00:00.144) 0:00:02.314 ******* ok: [sut] => { "changed": false } TASK [linux-system-roles.bootloader : Regenerate grub config in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:51 Monday 26 February 2024 18:12:43 +0000 (0:00:00.173) 0:00:02.488 ******* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg] *** task path: /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 Monday 26 February 2024 18:12:43 +0000 (0:00:00.008) 0:00:02.496 ******* fatal: [sut]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: '__bootloader_grub_conf_stat' is undefined The error appears to be in '/WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml': line 59, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # timeout value to the config - name: Update boot loader timeout configuration in {{ __bootloader_grub_conf }} ^ here We could be wrong, but this one looks like it might be an issue with missing quotes. Always quote template expression brackets when they start a value. For instance: with_items: - {{ foo }} Should be written as: with_items: - "{{ foo }}" TASK [Remove cloned kernels] *************************************************** task path: /WORKDIR/git-bios-uefii56nsctm/tests/tests_add_rm.yml:100 Monday 26 February 2024 18:12:43 +0000 (0:00:00.009) 0:00:02.505 ******* fatal: [sut]: FAILED! => {} MSG: The task includes an option with an undefined variable. The error was: 'test_kernel' is undefined The error appears to be in '/WORKDIR/git-bios-uefii56nsctm/tests/tests_add_rm.yml': line 100, column 11, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: always: - name: Remove cloned kernels ^ here to retry, use: --limit @/tmp/tests_add_rm.retry PLAY RECAP ********************************************************************* sut : ok=10 changed=0 unreachable=0 failed=2 skipped=2 rescued=0 ignored=0 Monday 26 February 2024 18:12:43 +0000 (0:00:00.006) 0:00:02.512 ******* =============================================================================== linux-system-roles.bootloader : Ensure required packages are installed --- 0.94s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:6 linux-system-roles.bootloader : Ensure ansible_facts used by role ------- 0.62s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:3 linux-system-roles.bootloader : Check if system is ostree --------------- 0.18s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:12 linux-system-roles.bootloader : Update boot loader timeout configuration in /etc/default/grub --- 0.17s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:41 linux-system-roles.bootloader : Ensure boot loader settings ------------- 0.17s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:13 linux-system-roles.bootloader : Get stat of /etc/default/grub ----------- 0.14s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:36 linux-system-roles.bootloader : Determine platform type ----------------- 0.12s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:20 Get bootloader_facts ---------------------------------------------------- 0.04s /WORKDIR/git-bios-uefii56nsctm/tests/tests_add_rm.yml:13 ---------------------- linux-system-roles.bootloader : Set boot loader configuration files ----- 0.03s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:25 linux-system-roles.bootloader : Set platform/version specific variables --- 0.03s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:21 linux-system-roles.bootloader : Set flag to indicate system is ostree --- 0.02s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/set_vars.yml:17 linux-system-roles.bootloader : Set platform/version specific variables --- 0.01s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:3 linux-system-roles.bootloader : Update boot loader timeout configuration in /boot/grub2/grub.cfg --- 0.01s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:59 linux-system-roles.bootloader : Regenerate grub config in /boot/grub2/grub.cfg --- 0.01s /WORKDIR/git-bios-uefii56nsctm/tests/roles/linux-system-roles.bootloader/tasks/main.yml:51 Remove cloned kernels --------------------------------------------------- 0.01s /WORKDIR/git-bios-uefii56nsctm/tests/tests_add_rm.yml:100 --------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---