ansible-playbook 2.9.27 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, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/check_candlepin.yml 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_environments.yml *********************************************** 1 plays in /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml PLAY [Basic repository enablement/disablement test] **************************** META: ran handlers TASK [Get LSR_RHC_TEST_DATA environment variable] ****************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Thursday 03 April 2025 07:13:40 -0400 (0:00:00.027) 0:00:00.027 ******** ok: [managed-node1] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Thursday 03 April 2025 07:13:40 -0400 (0:00:00.044) 0:00:00.072 ******** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Thursday 03 April 2025 07:13:40 -0400 (0:00:00.036) 0:00:00.109 ******** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set local lsr_rhc_test_data] ********************************************* task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Thursday 03 April 2025 07:13:40 -0400 (0:00:00.037) 0:00:00.146 ******** ok: [managed-node1] => { "ansible_facts": { "lsr_rhc_test_data": { "baseurl": "http://localhost:8080", "candlepin_host": "candlepin.local", "candlepin_insecure": false, "candlepin_port": 8443, "candlepin_prefix": "/candlepin", "env_nonworking": "Ceci n'est pas une environment", "envs_register": [ "Environment 2" ], "insights": false, "proxy_auth_hostname": "localhost", "proxy_auth_password": "proxypass", "proxy_auth_port": 3130, "proxy_auth_scheme": "https", "proxy_auth_username": "proxyuser", "proxy_noauth_hostname": "localhost", "proxy_noauth_port": 3128, "proxy_noauth_scheme": "https", "proxy_nonworking_hostname": "wrongproxy", "proxy_nonworking_password": "wrong-proxypassword", "proxy_nonworking_port": 4000, "proxy_nonworking_username": "wrong-proxyuser", "reg_activation_keys": [ "default_key" ], "reg_invalid_password": "invalid-password", "reg_invalid_username": "invalid-user", "reg_organization": "donaldduck", "reg_password": "password", "reg_username": "doc", "release": null, "repositories": [ { "name": "donaldy-content-label-7051", "state": "enabled" }, { "name": "content-label-32060", "state": "disabled" } ] } }, "ansible_included_var_files": [ "/tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/../files/candlepin_data.yml" ], "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Thursday 03 April 2025 07:13:40 -0400 (0:00:00.044) 0:00:00.190 ******** ok: [managed-node1] => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Thursday 03 April 2025 07:13:41 -0400 (0:00:00.468) 0:00:00.659 ******** ok: [managed-node1] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Thursday 03 April 2025 07:13:41 -0400 (0:00:00.043) 0:00:00.702 ******** ok: [managed-node1] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Thursday 03 April 2025 07:13:41 -0400 (0:00:00.627) 0:00:01.329 ******** ok: [managed-node1] => { "ansible_facts": { "_cp_url": "https://candlepin.local:8443/candlepin" }, "changed": false } TASK [Set helper fact for Candlepin owner URL] ********************************* task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Thursday 03 April 2025 07:13:41 -0400 (0:00:00.045) 0:00:01.375 ******** ok: [managed-node1] => { "ansible_facts": { "_cp_url_owner": "https://candlepin.local:8443/candlepin/owners/donaldduck" }, "changed": false } TASK [Add candlepin hostname to /etc/hosts] ************************************ task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Thursday 03 April 2025 07:13:41 -0400 (0:00:00.047) 0:00:01.423 ******** ok: [managed-node1] => { "backup": "", "changed": false } TASK [Install needed packages] ************************************************* task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Thursday 03 April 2025 07:13:42 -0400 (0:00:00.423) 0:00:01.846 ******** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [ "podman-1.6.4-36.el7_9.x86_64 providing podman is already installed" ] } TASK [Stop and remove Candlepin container] ************************************* task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Thursday 03 April 2025 07:13:43 -0400 (0:00:00.989) 0:00:02.836 ******** included: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node1 TASK [Check if the candlepin container is started] ***************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Thursday 03 April 2025 07:13:43 -0400 (0:00:00.051) 0:00:02.888 ******** ok: [managed-node1] => { "changed": false, "cmd": [ "podman", "container", "exists", "candlepin" ], "delta": "0:00:00.074189", "end": "2025-04-03 07:13:43.781655", "failed_when_result": false, "rc": 1, "start": "2025-04-03 07:13:43.707466" } MSG: non-zero return code TASK [Stop and potentionally remove Candlepin container] *********************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Thursday 03 April 2025 07:13:43 -0400 (0:00:00.451) 0:00:03.339 ******** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if there is a stopped candlepin container] ************************* task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Thursday 03 April 2025 07:13:43 -0400 (0:00:00.040) 0:00:03.380 ******** ok: [managed-node1] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.069884", "end": "2025-04-03 07:13:44.187600", "failed_when_result": false, "rc": 0, "start": "2025-04-03 07:13:44.117716" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Remove Candlepin container] ********************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Thursday 03 April 2025 07:13:44 -0400 (0:00:00.373) 0:00:03.754 ******** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Remove Candlepin container image] **************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Thursday 03 April 2025 07:13:44 -0400 (0:00:00.057) 0:00:03.811 ******** fatal: [managed-node1]: FAILED! => {} MSG: The conditional check '__rhc_cleanup_image | bool' failed. The error was: error while evaluating conditional (__rhc_cleanup_image | bool): '__rhc_cleanup_image' is undefined The error appears to be in '/tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml': line 26, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Remove Candlepin container image ^ here TASK [Clean up Candlepin container] ******************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111 Thursday 03 April 2025 07:13:44 -0400 (0:00:00.058) 0:00:03.870 ******** included: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node1 TASK [Check if the candlepin container is started] ***************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Thursday 03 April 2025 07:13:44 -0400 (0:00:00.039) 0:00:03.910 ******** ok: [managed-node1] => { "changed": false, "cmd": [ "podman", "container", "exists", "candlepin" ], "delta": "0:00:00.073757", "end": "2025-04-03 07:13:44.726266", "failed_when_result": false, "rc": 1, "start": "2025-04-03 07:13:44.652509" } MSG: non-zero return code TASK [Stop and potentionally remove Candlepin container] *********************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Thursday 03 April 2025 07:13:44 -0400 (0:00:00.375) 0:00:04.285 ******** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if there is a stopped candlepin container] ************************* task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Thursday 03 April 2025 07:13:44 -0400 (0:00:00.035) 0:00:04.320 ******** ok: [managed-node1] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.067919", "end": "2025-04-03 07:13:45.097227", "failed_when_result": false, "rc": 0, "start": "2025-04-03 07:13:45.029308" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Remove Candlepin container] ********************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Thursday 03 April 2025 07:13:45 -0400 (0:00:00.334) 0:00:04.655 ******** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Remove Candlepin container image] **************************************** task path: /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Thursday 03 April 2025 07:13:45 -0400 (0:00:00.036) 0:00:04.692 ******** fatal: [managed-node1]: FAILED! => {} MSG: The conditional check '"candlepin" in __rhc_candlepin_container.stdout' failed. The error was: error while evaluating conditional ("candlepin" in __rhc_candlepin_container.stdout): '__rhc_candlepin_container' is undefined The error appears to be in '/tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml': line 26, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Remove Candlepin container image ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=15 changed=0 unreachable=0 failed=2 skipped=6 rescued=0 ignored=0 Thursday 03 April 2025 07:13:45 -0400 (0:00:00.038) 0:00:04.730 ******** =============================================================================== Install needed packages ------------------------------------------------- 0.99s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Get facts for external test data ---------------------------------------- 0.63s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Check if system is ostree ----------------------------------------------- 0.47s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Check if the candlepin container is started ----------------------------- 0.45s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Add candlepin hostname to /etc/hosts ------------------------------------ 0.42s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Check if the candlepin container is started ----------------------------- 0.38s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Check if there is a stopped candlepin container ------------------------- 0.37s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Check if there is a stopped candlepin container ------------------------- 0.33s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Remove Candlepin container image ---------------------------------------- 0.06s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Remove Candlepin container ---------------------------------------------- 0.06s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Stop and remove Candlepin container ------------------------------------- 0.05s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Set helper fact for Candlepin owner URL --------------------------------- 0.05s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Set helper fact for Candlepin base URL ---------------------------------- 0.05s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Get LSR_RHC_TEST_DATA environment variable ------------------------------ 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Set local lsr_rhc_test_data --------------------------------------------- 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Set flag to indicate system is ostree ----------------------------------- 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Stop and potentionally remove Candlepin container ----------------------- 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Clean up Candlepin container -------------------------------------------- 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111 Remove Candlepin container image ---------------------------------------- 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Get facts for external test data ---------------------------------------- 0.04s /tmp/collections-gBS/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16