ansible-playbook [core 2.17.10] 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-Ucg executable location = /usr/local/bin/ansible-playbook python version = 3.12.9 (main, Feb 4 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] (/usr/bin/python3.12) jinja version = 3.1.5 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/collections-Ucg/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_repositories.yml *********************************************** 1 plays in /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_repositories.yml PLAY [Basic repository enablement/disablement test] **************************** TASK [Get LSR_RHC_TEST_DATA environment variable] ****************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.022) 0:00:00.022 ******* ok: [managed-node2] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.019) 0:00:00.042 ******* 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-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.030) 0:00:00.072 ******* 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-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.030) 0:00:00.102 ******* 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-Ucg/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-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.034) 0:00:00.137 ******* [WARNING]: Platform linux on host managed-node2 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3.12" }, "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.516) 0:00:00.653 ******* ok: [managed-node2] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Wednesday 02 April 2025 12:38:16 -0400 (0:00:00.020) 0:00:00.674 ******* ok: [managed-node2] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Wednesday 02 April 2025 12:38:17 -0400 (0:00:00.693) 0:00:01.368 ******* 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-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Wednesday 02 April 2025 12:38:17 -0400 (0:00:00.034) 0:00:01.402 ******* 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-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Wednesday 02 April 2025 12:38:17 -0400 (0:00:00.034) 0:00:01.437 ******* ok: [managed-node2] => { "backup": "", "changed": false } TASK [Install needed packages] ************************************************* task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Wednesday 02 April 2025 12:38:18 -0400 (0:00:00.469) 0:00:01.907 ******* fatal: [managed-node2]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'fake-content-38072': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried TASK [Clean up Candlepin container] ******************************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_repositories.yml:98 Wednesday 02 April 2025 12:38:19 -0400 (0:00:01.597) 0:00:03.504 ******* included: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node2 TASK [Check if candlepin container is running] ********************************* task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Wednesday 02 April 2025 12:38:19 -0400 (0:00:00.036) 0:00:03.541 ******* ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "ps", "-a", "--filter", "name=candlepin" ], "delta": "0:00:00.030353", "end": "2025-04-02 12:38:20.283975", "rc": 0, "start": "2025-04-02 12:38:20.253622" } STDOUT: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES TASK [Stop Candlepin container] ************************************************ task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:8 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.480) 0:00:04.021 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "\"candlepin\" in __rhc_candlepin_container.stdout", "skip_reason": "Conditional result was False" } TASK [Remove Candlepin container image] **************************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:13 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.011) 0:00:04.033 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "\"candlepin\" in __rhc_candlepin_container.stdout", "skip_reason": "Conditional result was False" } TASK [Unregister] ************************************************************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_repositories.yml:101 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.011) 0:00:04.044 ******* included: fedora.linux_system_roles.rhc for managed-node2 TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.038) 0:00:04.083 ******* included: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.rhc : Ensure ansible_facts used by role] ******* task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.019) 0:00:04.102 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "__rhc_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.051) 0:00:04.154 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __rhc_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Set flag to indicate system is ostree] *** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.027) 0:00:04.181 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __rhc_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if insights-packages are installed] *** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.021) 0:00:04.203 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.012) 0:00:04.216 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.015) 0:00:04.231 ******* included: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml for managed-node2 TASK [fedora.linux_system_roles.rhc : Ensure required packages are installed] *** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.033) 0:00:04.265 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "rhc_state | d('present') == \"present\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.036) 0:00:04.301 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "rhc_state | d(\"present\") == \"present\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Wednesday 02 April 2025 12:38:20 -0400 (0:00:00.035) 0:00:04.337 ******* ok: [managed-node2] => { "changed": false } MSG: System already unregistered. TASK [fedora.linux_system_roles.rhc : Set or unset the release] **************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:49 Wednesday 02 April 2025 12:38:21 -0400 (0:00:00.821) 0:00:05.159 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "rhc_state | d(\"present\") in [\"present\", \"reconnect\"]", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Configure repositories] ****************** task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:58 Wednesday 02 April 2025 12:38:21 -0400 (0:00:00.031) 0:00:05.190 ******* skipping: [managed-node2] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.rhc : Handle insights registration] ************ task path: /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:18 Wednesday 02 April 2025 12:38:21 -0400 (0:00:00.011) 0:00:05.202 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node2 : ok=14 changed=0 unreachable=0 failed=1 skipped=14 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Wednesday 02 April 2025 12:38:21 -0400 (0:00:00.012) 0:00:05.215 ******* =============================================================================== Install needed packages ------------------------------------------------- 1.60s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 fedora.linux_system_roles.rhc : Call subscription-manager --------------- 0.82s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Get facts for external test data ---------------------------------------- 0.69s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Check if system is ostree ----------------------------------------------- 0.52s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Check if candlepin container is running --------------------------------- 0.48s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 Add candlepin hostname to /etc/hosts ------------------------------------ 0.47s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 fedora.linux_system_roles.rhc : Ensure ansible_facts used by role ------- 0.05s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Unregister -------------------------------------------------------------- 0.04s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_repositories.yml:101 fedora.linux_system_roles.rhc : Ensure required packages are installed --- 0.04s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Clean up Candlepin container -------------------------------------------- 0.04s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_repositories.yml:98 fedora.linux_system_roles.rhc : Get subscription status ----------------- 0.04s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Set helper fact for Candlepin owner URL --------------------------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Set helper fact for Candlepin base URL ---------------------------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Set local lsr_rhc_test_data --------------------------------------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 fedora.linux_system_roles.rhc : Handle system subscription -------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 fedora.linux_system_roles.rhc : Set or unset the release ---------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:49 Get facts for external test data ---------------------------------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Import test data -------------------------------------------------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 fedora.linux_system_roles.rhc : Check if system is ostree --------------- 0.03s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 fedora.linux_system_roles.rhc : Set flag to indicate system is ostree --- 0.02s /tmp/collections-Ucg/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16