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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/collections-WJ6/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-WJ6/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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.045) 0:00:00.045 ******** ok: [managed-node2] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.060) 0:00:00.105 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.057) 0:00:00.163 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set local lsr_rhc_test_data] ********************************************* task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.055) 0:00:00.218 ******** ok: [managed-node2] => { "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-WJ6/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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.068) 0:00:00.286 ******** ok: [managed-node2] => { "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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.521) 0:00:00.808 ******** ok: [managed-node2] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Thursday 03 April 2025 07:26:58 -0400 (0:00:00.057) 0:00:00.866 ******** ok: [managed-node2] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Thursday 03 April 2025 07:26:59 -0400 (0:00:00.693) 0:00:01.559 ******** ok: [managed-node2] => { "ansible_facts": { "_cp_url": "https://candlepin.local:8443/candlepin" }, "changed": false } TASK [Set helper fact for Candlepin owner URL] ********************************* task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Thursday 03 April 2025 07:26:59 -0400 (0:00:00.054) 0:00:01.614 ******** ok: [managed-node2] => { "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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Thursday 03 April 2025 07:26:59 -0400 (0:00:00.058) 0:00:01.673 ******** ok: [managed-node2] => { "backup": "", "changed": false } TASK [Install needed packages] ************************************************* task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Thursday 03 April 2025 07:27:00 -0400 (0:00:00.461) 0:00:02.135 ******** ok: [managed-node2] => { "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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Thursday 03 April 2025 07:27:01 -0400 (0:00:01.056) 0:00:03.191 ******** included: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node2 TASK [Check if the candlepin container is started] ***************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Thursday 03 April 2025 07:27:01 -0400 (0:00:00.078) 0:00:03.270 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "container", "exists", "candlepin" ], "delta": "0:00:00.071877", "end": "2025-04-03 07:27:01.884834", "failed_when_result": false, "rc": 1, "start": "2025-04-03 07:27:01.812957" } MSG: non-zero return code TASK [Stop and potentionally remove Candlepin container] *********************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Thursday 03 April 2025 07:27:01 -0400 (0:00:00.561) 0:00:03.831 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if there is a stopped candlepin container] ************************* task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Thursday 03 April 2025 07:27:01 -0400 (0:00:00.058) 0:00:03.890 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.068214", "end": "2025-04-03 07:27:02.396497", "failed_when_result": false, "rc": 0, "start": "2025-04-03 07:27:02.328283" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Remove Candlepin container] ********************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Thursday 03 April 2025 07:27:02 -0400 (0:00:00.454) 0:00:04.345 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if the image exists locally] *************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29 Thursday 03 April 2025 07:27:02 -0400 (0:00:00.052) 0:00:04.398 ******** fatal: [managed-node2]: 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-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml': line 29, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: block: - name: Check if the image exists locally ^ here TASK [Clean up Candlepin container] ******************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111 Thursday 03 April 2025 07:27:02 -0400 (0:00:00.046) 0:00:04.445 ******** included: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node2 TASK [Check if the candlepin container is started] ***************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Thursday 03 April 2025 07:27:02 -0400 (0:00:00.043) 0:00:04.488 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "container", "exists", "candlepin" ], "delta": "0:00:00.069984", "end": "2025-04-03 07:27:02.917692", "failed_when_result": false, "rc": 1, "start": "2025-04-03 07:27:02.847708" } MSG: non-zero return code TASK [Stop and potentionally remove Candlepin container] *********************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Thursday 03 April 2025 07:27:02 -0400 (0:00:00.368) 0:00:04.857 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if there is a stopped candlepin container] ************************* task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Thursday 03 April 2025 07:27:03 -0400 (0:00:00.040) 0:00:04.898 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.069814", "end": "2025-04-03 07:27:03.308060", "failed_when_result": false, "rc": 0, "start": "2025-04-03 07:27:03.238246" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Remove Candlepin container] ********************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Thursday 03 April 2025 07:27:03 -0400 (0:00:00.356) 0:00:05.254 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check if the image exists locally] *************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29 Thursday 03 April 2025 07:27:03 -0400 (0:00:00.057) 0:00:05.311 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "images", "-q", "ghcr.io/ptoscano/candlepin-unofficial" ], "delta": "0:00:00.079037", "end": "2025-04-03 07:27:03.800709", "rc": 0, "start": "2025-04-03 07:27:03.721672" } TASK [Remove Candlepin container image] **************************************** task path: /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:34 Thursday 03 April 2025 07:27:03 -0400 (0:00:00.432) 0:00:05.744 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node2 : ok=16 changed=0 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0 Thursday 03 April 2025 07:27:03 -0400 (0:00:00.059) 0:00:05.804 ******** =============================================================================== Install needed packages ------------------------------------------------- 1.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Get facts for external test data ---------------------------------------- 0.69s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Check if the candlepin container is started ----------------------------- 0.56s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Check if system is ostree ----------------------------------------------- 0.52s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Add candlepin hostname to /etc/hosts ------------------------------------ 0.46s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Check if there is a stopped candlepin container ------------------------- 0.45s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Check if the image exists locally --------------------------------------- 0.43s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29 Check if the candlepin container is started ----------------------------- 0.37s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Check if there is a stopped candlepin container ------------------------- 0.36s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Stop and remove Candlepin container ------------------------------------- 0.08s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Set local lsr_rhc_test_data --------------------------------------------- 0.07s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Get LSR_RHC_TEST_DATA environment variable ------------------------------ 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Remove Candlepin container image ---------------------------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:34 Set helper fact for Candlepin owner URL --------------------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Stop and potentionally remove Candlepin container ----------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Set flag to indicate system is ostree ----------------------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Import test data -------------------------------------------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Remove Candlepin container ---------------------------------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Get facts for external test data ---------------------------------------- 0.06s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Set helper fact for Candlepin base URL ---------------------------------- 0.05s /tmp/collections-WJ6/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17