+ cd /tmp/tmpze2_xp7f/tests; TEST_SUBJECTS=/cache/rhel-guest-image-6.10-390.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-37-d59177e-rhel-6-a17zcr_q/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpze2_xp7f/_setup.yml /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpze2_xp7f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpze2_xp7f/_setup.yml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "groups": { "all": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "localhost": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "subjects": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpze2_xp7f/_setup.yml:6 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpze2_xp7f/_setup.yml:13 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_bool_not_allowed.yml ******************************************* 1 plays in /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml PLAY [test boolean values not allowed] ***************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] META: ran handlers TASK [try to pass a boolean value for bootloader cmdline] ********************** task path: /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml:7 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmpze2_xp7f/tasks/main.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmpze2_xp7f/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:17 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:22 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started"} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:29 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:35 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1603900664.58-46328-261508314489366/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmpze2_xp7f/tasks/main.yml:42 fatal: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900665.45-46356-259737738627285/AnsiballZ_kernel_settings.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900665.45-46356-259737738627285/AnsiballZ_kernel_settings.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900665.45-46356-259737738627285/AnsiballZ_kernel_settings.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_kernel_settings_payload_fpeMVs/__main__.py\", line 844, in \r\n File \"/tmp/ansible_kernel_settings_payload_fpeMVs/__main__.py\", line 840, in main\r\n File \"/tmp/ansible_kernel_settings_payload_fpeMVs/__main__.py\", line 772, in run_module\r\n File \"/tmp/ansible_kernel_settings_payload_fpeMVs/__main__.py\", line 716, in validate_and_digest\r\n File \"/tmp/ansible_kernel_settings_payload_fpeMVs/__main__.py\", line 679, in validate_and_digest_item\r\n File \"/tmp/ansible_kernel_settings_payload_fpeMVs/__main__.py\", line 685, in validate_and_digest_item\r\nValueError: zero length field name in format\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} TASK [check for bootloader cmdline bool value error] *************************** task path: /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml:20 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [try to pass a boolean value for sysctl value] **************************** task path: /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml:26 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmpze2_xp7f/tasks/main.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmpze2_xp7f/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:17 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:22 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started"} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:29 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:35 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-46097rst6XT/tmp2iF8ZX/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmpze2_xp7f/tasks/main.yml:42 fatal: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900667.69-46442-168264095228011/AnsiballZ_kernel_settings.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900667.69-46442-168264095228011/AnsiballZ_kernel_settings.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900667.69-46442-168264095228011/AnsiballZ_kernel_settings.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_kernel_settings_payload_g9X6Tn/__main__.py\", line 844, in \r\n File \"/tmp/ansible_kernel_settings_payload_g9X6Tn/__main__.py\", line 840, in main\r\n File \"/tmp/ansible_kernel_settings_payload_g9X6Tn/__main__.py\", line 772, in run_module\r\n File \"/tmp/ansible_kernel_settings_payload_g9X6Tn/__main__.py\", line 716, in validate_and_digest\r\n File \"/tmp/ansible_kernel_settings_payload_g9X6Tn/__main__.py\", line 685, in validate_and_digest_item\r\nValueError: zero length field name in format\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} TASK [check for sysctl bool value error] *************************************** task path: /tmp/tmpze2_xp7f/tests/tests_bool_not_allowed.yml:39 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=15 changed=3 unreachable=0 failed=0 skipped=1 rescued=2 ignored=0 + cd /tmp/tmpze2_xp7f/tests; TEST_SUBJECTS=/cache/rhel-guest-image-6.10-390.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-37-d59177e-rhel-6-a17zcr_q/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpze2_xp7f/_setup.yml /tmp/tmpze2_xp7f/tests/tests_change_settings.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpze2_xp7f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpze2_xp7f/_setup.yml:5 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => { "groups": { "all": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "localhost": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "subjects": [ "/cache/rhel-guest-image-6.10-390.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpze2_xp7f/_setup.yml:6 skipping: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpze2_xp7f/_setup.yml:13 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_settings.yml ******************************************** 1 plays in /tmp/tmpze2_xp7f/tests/tests_change_settings.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpze2_xp7f/tests/tests_change_settings.yml:1 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] META: ran handlers TASK [Ensure required packages are installed] ********************************** task path: /tmp/tmpze2_xp7f/tests/tests_change_settings.yml:3 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [Ensure kernel settings profile directory exists] ************************* task path: /tmp/tmpze2_xp7f/tests/tests_change_settings.yml:8 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [Generate a configuration for kernel settings] **************************** task path: /tmp/tmpze2_xp7f/tests/tests_change_settings.yml:14 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "checksum": "13fdc203370e2b8e7e42c13d94b671b1ac621563", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "d5df32baf1a63528844555117ead6672", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 381, "src": "/root/.ansible/tmp/ansible-tmp-1603900695.48-46656-115331007657399/source", "state": "file", "uid": 0} TASK [Ensure required services are enabled and started] ************************ task path: /tmp/tmpze2_xp7f/tests/tests_change_settings.yml:20 changed: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": true, "enabled": true, "name": "tuned", "state": "started"} TASK [apply kernel_settings] *************************************************** task path: /tmp/tmpze2_xp7f/tests/tests_change_settings.yml:26 TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmpze2_xp7f/tasks/main.yml:2 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmpze2_xp7f/vars/default.yml"], "changed": false} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:17 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "msg": "", "rc": 0, "results": ["tuned-0.2.19-18.el6.noarch providing tuned is already installed"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:22 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started"} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:29 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmpze2_xp7f/tasks/main.yml:35 ok: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2] => {"changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-46460ELt2y_/tmpIp99Fx/kernel_settings.j2"} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmpze2_xp7f/tasks/main.yml:42 fatal: [/cache/rhel-guest-image-6.10-390.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900698.8-46768-187805811366521/AnsiballZ_kernel_settings.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900698.8-46768-187805811366521/AnsiballZ_kernel_settings.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1603900698.8-46768-187805811366521/AnsiballZ_kernel_settings.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_kernel_settings_payload_8qgInR/__main__.py\", line 844, in \r\n File \"/tmp/ansible_kernel_settings_payload_8qgInR/__main__.py\", line 840, in main\r\n File \"/tmp/ansible_kernel_settings_payload_8qgInR/__main__.py\", line 782, in run_module\r\nImportError: No module named tuned.logs\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} PLAY RECAP ********************************************************************* /cache/rhel-guest-image-6.10-390.x86_64.qcow2 : ok=12 changed=4 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0