# 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_selinux_enforcing.yml ****************************************** 2 plays in /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Include vault variables] ************************************************* task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:4 Wednesday 06 December 2023 09:38:20 +0000 (0:00:00.012) 0:00:00.012 **** ok: [sut] => { "ansible_facts": { "mssql_password": { "__ansible_vault": "$ANSIBLE_VAULT;1.1;AES256\n66336361663164656232326461653662643537386337346563613939356466313835383235313234\n3634333565616161316639666662613564353237653663610a616639306439653033386664303839\n30663030636161326137656235636230356162373234386461363632353863393161353035316162\n3664353366373231360a343334326337353861366233656330363634353164316434616561333161\n3234\n" } }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxer8mnhgx/tests/vars/vault-variables.yml" ], "changed": false } META: ran handlers META: ran handlers PLAY [Test mssql_run_selinux_confined] ***************************************** META: ran handlers TASK [Assert expected failures on unsupported platforms] *********************** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:20 Wednesday 06 December 2023 09:38:20 +0000 (0:00:00.010) 0:00:00.022 **** included: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml for sut TASK [Ensure ansible_facts to get ansible_distribution] ************************ task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml:2 Wednesday 06 December 2023 09:38:20 +0000 (0:00:00.019) 0:00:00.042 **** ok: [sut] TASK [Run the role] ************************************************************ task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml:15 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.441) 0:00:00.484 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Unreachable task] ******************************************************** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml:22 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.018) 0:00:00.502 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check error message on not supported hosts] ****************************** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:28 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.519 **** TASK [linux-system-roles.mssql : Ensure ansible_facts and variables used by role] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:3 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.147) 0:00:00.667 **** included: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml for sut TASK [linux-system-roles.mssql : Ensure ansible_facts used by role] ************ task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:3 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.021) 0:00:00.689 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Set platform/version specific variables] ****** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:9 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.018) 0:00:00.707 **** ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/9/prod/", "__mssql_confined_supported": true, "__mssql_server_repository": "https://packages.microsoft.com/rhel/9/mssql-server-{{ mssql_version | int }}/", "__mssql_supported_versions": [ 2022 ] }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/9/prod/", "__mssql_confined_supported": true, "__mssql_server_repository": "https://packages.microsoft.com/rhel/9/mssql-server-{{ mssql_version | int }}/", "__mssql_supported_versions": [ 2022 ] }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [sut] => (item=RedHat_8.yml) => { "ansible_facts": { "__mssql_client_repository": "https://packages.microsoft.com/rhel/8/prod/", "__mssql_confined_supported": false, "__mssql_server_repository": "https://packages.microsoft.com/rhel/8/mssql-server-{{ mssql_version | int }}/", "__mssql_supported_versions": [ 2017, 2019, 2022 ] }, "ansible_included_var_files": [ "/WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/vars/RedHat_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml" } skipping: [sut] => (item=RedHat_8.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact] ****** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:8 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.045) 0:00:00.753 **** ok: [sut] => { "ansible_facts": { "__mssql_sqlcmd_login_cmd": null }, "changed": false } TASK [linux-system-roles.mssql : Print that the mssql_input_sql_file variable is deprecated] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:15 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.018) 0:00:00.772 **** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:23 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.789 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Print that the variable is deprecated] ******** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:30 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.807 **** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_ha_listener_port fact] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:37 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.824 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Print that the mssql_ad_sql_user_name variable is deprecated] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:44 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.841 **** skipping: [sut] => {} TASK [linux-system-roles.mssql : Link the deprecated mssql_ad_sql_user_name fact] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:51 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.858 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that the user accepts EULA variables] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:55 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.876 **** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [linux-system-roles.mssql : Verify that EL < 8 is not used with mssql_ha_configure=true] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:67 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.021) 0:00:00.898 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify if the mssql_ha_replica_type variable is provided correctly] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:75 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.018) 0:00:00.916 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that 'mssql_ha_replica_type = primary' is provided once] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:84 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.018) 0:00:00.934 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that mssql_ha_prep_for_pacemaker is provided correctly] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:97 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.952 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.mssql : Verify that selinux variables are used on supported platforms] *** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:108 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.017) 0:00:00.969 **** fatal: [sut]: FAILED! => { "changed": false } MSG: mssql_manage_selinux and mssql_run_selinux_confined is supported only on RHEL 9 managed nodes TASK [Assert that the role failed with selinux_confined not supported] ********* task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:35 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.019) 0:00:00.989 **** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Clean up after the role invocation] ************************************** task path: /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:41 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.019) 0:00:01.008 **** fatal: [sut]: FAILED! => { "reason": "conflicting action statements: shell, warn\n\nThe error appears to be in '/WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/cleanup.yml': line 58, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Remove related files\n ^ here\n" } to retry, use: --limit @/tmp/tests_selinux_enforcing.retry PLAY RECAP ********************************************************************* sut : ok=8 changed=0 unreachable=0 failed=1 skipped=13 rescued=1 ignored=0 Wednesday 06 December 2023 09:38:21 +0000 (0:00:00.020) 0:00:01.029 **** =============================================================================== Ensure ansible_facts to get ansible_distribution ------------------------ 0.44s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml:2 Check error message on not supported hosts ------------------------------ 0.15s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:28 ----- linux-system-roles.mssql : Set platform/version specific variables ------ 0.05s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:9 linux-system-roles.mssql : Verify that the user accepts EULA variables --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:55 linux-system-roles.mssql : Ensure ansible_facts and variables used by role --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:3 Clean up after the role invocation -------------------------------------- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:41 ----- linux-system-roles.mssql : Verify that selinux variables are used on supported platforms --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:108 Assert that the role failed with selinux_confined not supported --------- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:35 ----- Assert expected failures on unsupported platforms ----------------------- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tests_selinux_enforcing.yml:20 ----- linux-system-roles.mssql : Unset the __mssql_sqlcmd_login_cmd fact ------ 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:8 linux-system-roles.mssql : Ensure ansible_facts used by role ------------ 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/set_vars.yml:3 linux-system-roles.mssql : Verify if the mssql_ha_replica_type variable is provided correctly --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:75 linux-system-roles.mssql : Verify that EL < 8 is not used with mssql_ha_configure=true --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:67 Run the role ------------------------------------------------------------ 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml:15 Unreachable task -------------------------------------------------------- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/tasks/assert_fail_on_unsupported_ver.yml:22 linux-system-roles.mssql : Verify that 'mssql_ha_replica_type = primary' is provided once --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:84 linux-system-roles.mssql : Link the deprecated mssql_ad_sql_user_name fact --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:51 linux-system-roles.mssql : Print that the mssql_input_sql_file variable is deprecated --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:15 linux-system-roles.mssql : Verify that mssql_ha_prep_for_pacemaker is provided correctly --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:97 linux-system-roles.mssql : Link the deprecated mssql_input_sql_file fact --- 0.02s /WORKDIR/git-storage-selinuxer8mnhgx/tests/roles/linux-system-roles.mssql/tasks/main.yml:23 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---