ansible-playbook [core 2.16.14] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-3Ky executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/check_candlepin.yml redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_environments.yml *********************************************** 1 plays in /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml PLAY [Basic repository enablement/disablement test] **************************** TASK [Get LSR_RHC_TEST_DATA environment variable] ****************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Thursday 03 April 2025 07:14:27 -0400 (0:00:00.009) 0:00:00.009 ******** ok: [managed-node2] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Thursday 03 April 2025 07:14:27 -0400 (0:00:00.017) 0:00:00.027 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "lsr_rhc_test_data_file | length > 0", "skip_reason": "Conditional result was False" } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Thursday 03 April 2025 07:14:27 -0400 (0:00:00.047) 0:00:00.074 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "lsr_rhc_test_data_file | length > 0", "skip_reason": "Conditional result was False" } TASK [Set local lsr_rhc_test_data] ********************************************* task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Thursday 03 April 2025 07:14:27 -0400 (0:00:00.044) 0:00:00.119 ******** 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-3Ky/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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Thursday 03 April 2025 07:14:27 -0400 (0:00:00.052) 0:00:00.171 ******** ok: [managed-node2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Thursday 03 April 2025 07:14:28 -0400 (0:00:00.522) 0:00:00.694 ******** ok: [managed-node2] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Thursday 03 April 2025 07:14:28 -0400 (0:00:00.036) 0:00:00.731 ******** ok: [managed-node2] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Thursday 03 April 2025 07:14:28 -0400 (0:00:00.687) 0:00:01.418 ******** 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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Thursday 03 April 2025 07:14:29 -0400 (0:00:00.050) 0:00:01.468 ******** 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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Thursday 03 April 2025 07:14:29 -0400 (0:00:00.066) 0:00:01.535 ******** changed: [managed-node2] => { "backup": "", "changed": true } MSG: line added TASK [Install needed packages] ************************************************* task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Thursday 03 April 2025 07:14:29 -0400 (0:00:00.459) 0:00:01.994 ******** changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: shadow-utils-subid-2:4.6-22.el8.x86_64", "Installed: container-selinux-2:2.229.0-2.module_el8+847+7863d4e6.noarch", "Installed: criu-3.18-4.module_el8+804+f131391c.x86_64", "Installed: dnsmasq-2.79-33.el8.x86_64", "Installed: libslirp-4.4.0-1.module_el8+804+f131391c.x86_64", "Installed: protobuf-c-1.3.0-8.el8.x86_64", "Installed: slirp4netns-1.2.3-1.module_el8+951+32019cde.x86_64", "Installed: podman-catatonit-3:4.9.4-0.1.module_el8+971+3d3df00d.x86_64", "Installed: fuse3-libs-3.3.0-19.el8.x86_64", "Installed: fuse3-3.3.0-19.el8.x86_64", "Installed: containers-common-2:1-81.module_el8+968+fbb249c7.x86_64", "Installed: podman-gvproxy-3:4.9.4-0.1.module_el8+971+3d3df00d.x86_64", "Installed: podman-plugins-3:4.9.4-0.1.module_el8+971+3d3df00d.x86_64", "Installed: fuse-overlayfs-1.13-1.module_el8+804+f131391c.x86_64", "Installed: fuse-common-3.3.0-19.el8.x86_64", "Installed: podman-3:4.9.4-0.1.module_el8+971+3d3df00d.x86_64", "Installed: libnet-1.1.6-15.el8.x86_64", "Installed: runc-1:1.1.12-1.module_el8+885+7da147f3.x86_64", "Installed: containernetworking-plugins-1:1.4.0-2.module_el8+974+0c52b299.x86_64", "Installed: conmon-3:2.1.10-1.module_el8+804+f131391c.x86_64" ] } TASK [Stop and remove Candlepin container] ************************************* task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Thursday 03 April 2025 07:15:35 -0400 (0:01:05.455) 0:01:07.449 ******** included: /tmp/collections-3Ky/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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Thursday 03 April 2025 07:15:35 -0400 (0:00:00.040) 0:01:07.489 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "container", "exists", "candlepin" ], "delta": "0:00:01.573432", "end": "2025-04-03 07:15:37.029258", "failed_when_result": false, "rc": 1, "start": "2025-04-03 07:15:35.455826" } MSG: non-zero return code TASK [Stop and potentionally remove Candlepin container] *********************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Thursday 03 April 2025 07:15:37 -0400 (0:00:02.028) 0:01:09.518 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "__rhc_candlepin_cont_started.rc == 0", "skip_reason": "Conditional result was False" } TASK [Check if there is a stopped candlepin container] ************************* task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.030) 0:01:09.549 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.036145", "end": "2025-04-03 07:15:37.452005", "failed_when_result": false, "rc": 0, "start": "2025-04-03 07:15:37.415860" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Remove Candlepin container] ********************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.391) 0:01:09.940 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "\"candlepin\" in __rhc_candlepin_container_stopped.stdout", "skip_reason": "Conditional result was False" } TASK [Remove Candlepin container image] **************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.030) 0:01:09.971 ******** 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. '__rhc_cleanup_image' is undefined The error appears to be in '/tmp/collections-3Ky/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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.031) 0:01:10.003 ******** included: /tmp/collections-3Ky/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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.022) 0:01:10.025 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "container", "exists", "candlepin" ], "delta": "0:00:00.034183", "end": "2025-04-03 07:15:37.916020", "failed_when_result": false, "rc": 1, "start": "2025-04-03 07:15:37.881837" } MSG: non-zero return code TASK [Stop and potentionally remove Candlepin container] *********************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.380) 0:01:10.406 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "__rhc_candlepin_cont_started.rc == 0", "skip_reason": "Conditional result was False" } TASK [Check if there is a stopped candlepin container] ************************* task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Thursday 03 April 2025 07:15:37 -0400 (0:00:00.011) 0:01:10.417 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.032880", "end": "2025-04-03 07:15:38.293173", "failed_when_result": false, "rc": 0, "start": "2025-04-03 07:15:38.260293" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Remove Candlepin container] ********************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Thursday 03 April 2025 07:15:38 -0400 (0:00:00.363) 0:01:10.780 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "\"candlepin\" in __rhc_candlepin_container_stopped.stdout", "skip_reason": "Conditional result was False" } TASK [Remove Candlepin container image] **************************************** task path: /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Thursday 03 April 2025 07:15:38 -0400 (0:00:00.011) 0:01:10.792 ******** fatal: [managed-node2]: 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. '__rhc_candlepin_container' is undefined The error appears to be in '/tmp/collections-3Ky/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-node2 : ok=15 changed=2 unreachable=0 failed=2 skipped=6 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Thursday 03 April 2025 07:15:38 -0400 (0:00:00.028) 0:01:10.821 ******** =============================================================================== Install needed packages ------------------------------------------------ 65.46s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Check if the candlepin container is started ----------------------------- 2.03s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Get facts for external test data ---------------------------------------- 0.69s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Check if system is ostree ----------------------------------------------- 0.52s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Add candlepin hostname to /etc/hosts ------------------------------------ 0.46s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Check if there is a stopped candlepin container ------------------------- 0.39s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Check if the candlepin container is started ----------------------------- 0.38s /tmp/collections-3Ky/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-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 Set helper fact for Candlepin owner URL --------------------------------- 0.07s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Set local lsr_rhc_test_data --------------------------------------------- 0.05s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Set helper fact for Candlepin base URL ---------------------------------- 0.05s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Import test data -------------------------------------------------------- 0.05s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Get facts for external test data ---------------------------------------- 0.05s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Stop and remove Candlepin container ------------------------------------- 0.04s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Set flag to indicate system is ostree ----------------------------------- 0.04s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Remove Candlepin container image ---------------------------------------- 0.03s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Remove Candlepin container ---------------------------------------------- 0.03s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 Stop and potentionally remove Candlepin container ----------------------- 0.03s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 Remove Candlepin container image ---------------------------------------- 0.03s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:26 Clean up Candlepin container -------------------------------------------- 0.02s /tmp/collections-3Ky/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111