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-pXf 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/collections-pXf/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-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Wednesday 02 April 2025 11:16:41 -0400 (0:00:00.011) 0:00:00.011 ******* ok: [managed-node2] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Wednesday 02 April 2025 11:16:42 -0400 (0:00:00.026) 0:00:00.038 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Wednesday 02 April 2025 11:16:42 -0400 (0:00:00.070) 0:00:00.108 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Wednesday 02 April 2025 11:16:42 -0400 (0:00:00.051) 0:00:00.159 ******* 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-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Wednesday 02 April 2025 11:16:42 -0400 (0:00:00.052) 0:00:00.211 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Wednesday 02 April 2025 11:16:42 -0400 (0:00:00.547) 0:00:00.759 ******* ok: [managed-node2] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Wednesday 02 April 2025 11:16:42 -0400 (0:00:00.037) 0:00:00.797 ******* ok: [managed-node2] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Wednesday 02 April 2025 11:16:43 -0400 (0:00:00.711) 0:00:01.508 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Wednesday 02 April 2025 11:16:43 -0400 (0:00:00.058) 0:00:01.567 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Wednesday 02 April 2025 11:16:43 -0400 (0:00:00.068) 0:00:01.636 ******* changed: [managed-node2] => { "backup": "", "changed": true } MSG: line added TASK [Install needed packages] ************************************************* task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Wednesday 02 April 2025 11:16:44 -0400 (0:00:00.470) 0:00:02.106 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Wednesday 02 April 2025 11:18:00 -0400 (0:01:15.977) 0:01:18.084 ******* ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "stop", "candlepin" ], "delta": "0:00:01.169467", "end": "2025-04-02 11:18:01.654639", "failed_when_result": false, "rc": 125, "start": "2025-04-02 11:18:00.485172" } STDERR: Error: no container with name or ID "candlepin" found: no such container MSG: non-zero return code TASK [Start Candlepin container] *********************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:50 Wednesday 02 April 2025 11:18:01 -0400 (0:00:01.642) 0:01:19.726 ******* ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "run", "--rm", "--detach", "--hostname", "candlepin.local", "--name", "candlepin", "--publish", "8443:8443", "--publish", "8080:8080", "ghcr.io/ptoscano/candlepin-unofficial" ], "delta": "0:00:16.265448", "end": "2025-04-02 11:18:18.317326", "rc": 0, "start": "2025-04-02 11:18:02.051878" } STDOUT: b57498a89faf4c7462eea8cb7775ac39098844918f1bfd7a03a28258b77aa883 STDERR: Trying to pull ghcr.io/ptoscano/candlepin-unofficial:latest... Getting image source signatures Copying blob sha256:f1878efc4cd597f6803ce704bc7334a67118af4612c8f78028cc1e3a3dd4077f Copying config sha256:508c6cadba4d1c0b1e0f47ba2a338731f2b2671362a0a33135c6b31813a9181d Writing manifest to image destination TASK [Ensure directories exist] ************************************************ task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:71 Wednesday 02 April 2025 11:18:18 -0400 (0:00:16.699) 0:01:36.426 ******* changed: [managed-node2] => (item=/etc/pki/product) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/etc/pki/product", "mode": "0755", "owner": "root", "path": "/etc/pki/product", "secontext": "unconfined_u:object_r:cert_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [managed-node2] => (item=/etc/pki/product-default) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/etc/pki/product-default", "mode": "0755", "owner": "root", "path": "/etc/pki/product-default", "secontext": "unconfined_u:object_r:cert_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [managed-node2] => (item=/etc/rhsm/ca) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/etc/rhsm/ca", "mode": "0755", "owner": "root", "path": "/etc/rhsm/ca", "secontext": "unconfined_u:object_r:rhsmcertd_config_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Copy product certificates] *********************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:81 Wednesday 02 April 2025 11:18:22 -0400 (0:00:04.373) 0:01:40.799 ******* ok: [managed-node2] => (item=7050) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "podman", "cp", "candlepin:/home/candlepin/devel/candlepin/generated_certs/7050.pem", "/etc/pki/product-default/" ], "delta": "0:00:00.733688", "end": "2025-04-02 11:18:25.144447", "item": "7050", "rc": 0, "start": "2025-04-02 11:18:24.410759" } TASK [Copy Candlepin CA certificate for subscription-manager] ****************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:92 Wednesday 02 April 2025 11:18:25 -0400 (0:00:02.711) 0:01:43.511 ******* ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "cp", "candlepin:/etc/candlepin/certs/candlepin-ca.crt", "/etc/rhsm/ca/candlepin-ca.pem" ], "delta": "0:00:00.529426", "end": "2025-04-02 11:18:27.551331", "rc": 0, "start": "2025-04-02 11:18:27.021905" } TASK [Copy Candlepin CA certificate for system] ******************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:101 Wednesday 02 April 2025 11:18:27 -0400 (0:00:02.236) 0:01:45.748 ******* ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "cp", "candlepin:/etc/candlepin/certs/candlepin-ca.crt", "/etc/pki/ca-trust/source/anchors/candlepin-ca.pem" ], "delta": "0:00:00.396316", "end": "2025-04-02 11:18:29.343901", "rc": 0, "start": "2025-04-02 11:18:28.947585" } TASK [Update system certificates store] **************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:110 Wednesday 02 April 2025 11:18:29 -0400 (0:00:01.707) 0:01:47.455 ******* ok: [managed-node2] => { "changed": false, "cmd": [ "update-ca-trust", "extract" ], "delta": "0:00:02.006587", "end": "2025-04-02 11:18:32.763099", "rc": 0, "start": "2025-04-02 11:18:30.756512" } TASK [Wait for started Candlepin] ********************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:117 Wednesday 02 April 2025 11:18:32 -0400 (0:00:03.559) 0:01:51.015 ******* ok: [managed-node2] => { "attempts": 1, "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Wed, 02 Apr 2025 15:18:45 GMT", "elapsed": 11, "redirected": true, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/", "vary": "accept-encoding", "x_candlepin_request_uuid": "74fa4acc-294a-4c82-9b1e-c3862511e4d5", "x_version": "4.6.0-1" } MSG: OK (unknown bytes) TASK [Install GPG key for RPM repositories] ************************************ task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:127 Wednesday 02 April 2025 11:18:46 -0400 (0:00:13.496) 0:02:04.512 ******* changed: [managed-node2] => { "changed": true, "checksum_dest": null, "checksum_src": "61077d250afaa3900fbc66729a22414e43fed0eb", "dest": "/etc/pki/rpm-gpg/RPM-GPG-KEY-candlepin", "elapsed": 0, "gid": 0, "group": "root", "md5sum": "1c47a16e8b4c12689664a54bfc91ab44", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:cert_t:s0", "size": 1660, "src": "/root/.ansible/tmp/ansible-tmp-1743607126.5475874-10283-169955020553487/tmp1wk4ust2", "state": "file", "status_code": 200, "uid": 0, "url": "http://candlepin.local:8080/RPM-GPG-KEY-candlepin" } MSG: OK (1660 bytes) TASK [Add environments] ******************************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:136 Wednesday 02 April 2025 11:18:47 -0400 (0:00:00.673) 0:02:05.185 ******* ok: [managed-node2] => (item={'name': 'Environment 1', 'desc': 'The environment 1', 'id': 'envId1'}) => { "ansible_loop_var": "item", "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Wed, 02 Apr 2025 15:18:48 GMT", "elapsed": 0, "item": { "desc": "The environment 1", "id": "envId1", "name": "Environment 1" }, "json": { "contentPrefix": null, "created": "2025-04-02T15:18:48+0000", "description": "The environment 1", "environmentContent": [], "id": "envId1", "name": "Environment 1", "owner": { "contentAccessMode": "org_environment", "displayName": "Donald Duck", "href": "/owners/donaldduck", "id": "8a8082e495ed16620195ed1676f80004", "key": "donaldduck" }, "type": null, "updated": "2025-04-02T15:18:48+0000" }, "redirected": false, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/owners/donaldduck/environments", "vary": "accept-encoding", "x_candlepin_request_uuid": "12ba6393-2551-4d3e-b890-bf227ba49e83", "x_version": "4.6.0-1" } MSG: OK (unknown bytes) ok: [managed-node2] => (item={'name': 'Environment 2', 'desc': 'The environment 2', 'id': 'envId2'}) => { "ansible_loop_var": "item", "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Wed, 02 Apr 2025 15:18:48 GMT", "elapsed": 0, "item": { "desc": "The environment 2", "id": "envId2", "name": "Environment 2" }, "json": { "contentPrefix": null, "created": "2025-04-02T15:18:48+0000", "description": "The environment 2", "environmentContent": [], "id": "envId2", "name": "Environment 2", "owner": { "contentAccessMode": "org_environment", "displayName": "Donald Duck", "href": "/owners/donaldduck", "id": "8a8082e495ed16620195ed1676f80004", "key": "donaldduck" }, "type": null, "updated": "2025-04-02T15:18:48+0000" }, "redirected": false, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/owners/donaldduck/environments", "vary": "accept-encoding", "x_candlepin_request_uuid": "cf1fbf48-d1a3-4082-85f9-00c46455faf1", "x_version": "4.6.0-1" } MSG: OK (unknown bytes) TASK [Check Candlepin works] *************************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/check_candlepin.yml:3 Wednesday 02 April 2025 11:18:49 -0400 (0:00:01.883) 0:02:07.069 ******* ok: [managed-node2] => { "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Wed, 02 Apr 2025 15:18:49 GMT", "elapsed": 0, "redirected": true, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/", "vary": "accept-encoding", "x_candlepin_request_uuid": "d9f0526f-05b3-46ec-bf8b-4fd4bfe25f8d", "x_version": "4.6.0-1" } MSG: OK (unknown bytes) TASK [Skip if no test environments are set] ************************************ task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:17 Wednesday 02 April 2025 11:18:49 -0400 (0:00:00.618) 0:02:07.688 ******* META: end_play conditional evaluated to False, continuing play skipping: [managed-node2] => { "skip_reason": "end_play conditional evaluated to False, continuing play" } MSG: end_play TASK [Ensure ansible_facts used by the test] *********************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:24 Wednesday 02 April 2025 11:18:49 -0400 (0:00:00.025) 0:02:07.713 ******* ok: [managed-node2] TASK [Register (wrong environment)] ******************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:35 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.525) 0:02:08.238 ******* TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.028) 0:02:08.267 ******* included: /tmp/collections-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.025) 0:02:08.292 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.022) 0:02:08.315 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.015) 0:02:08.330 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.011) 0:02:08.341 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.012) 0:02:08.354 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.014) 0:02:08.368 ******* included: /tmp/collections-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Wednesday 02 April 2025 11:18:50 -0400 (0:00:00.032) 0:02:08.401 ******* changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: dnf-plugin-subscription-manager-1.28.42-1.el8.x86_64", "Installed: subscription-manager-rhsm-certificates-20220623-1.el8.noarch", "Installed: subscription-manager-1.28.42-1.el8.x86_64", "Installed: python3-iniparse-0.4-31.el8.noarch", "Installed: python3-inotify-0.9.6-13.el8.noarch", "Installed: python3-subscription-manager-rhsm-1.28.42-1.el8.x86_64", "Installed: python3-librepo-1.14.2-5.el8.x86_64", "Installed: python3-cloud-what-1.28.42-1.el8.x86_64", "Installed: usermode-1.113-2.el8.x86_64", "Installed: python3-ethtool-0.14-5.el8.x86_64" ] } TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Wednesday 02 April 2025 11:18:55 -0400 (0:00:05.358) 0:02:13.759 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not rhc_release is none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Wednesday 02 April 2025 11:18:55 -0400 (0:00:00.014) 0:02:13.774 ******* fatal: [managed-node2]: FAILED! => { "changed": false, "cmd": "/sbin/subscription-manager register --org donaldduck --environment 'Ceci n'\"'\"'est pas une environment' --username doc '--********' '********'", "rc": 65 } STDOUT: Registering to: candlepin.local:8443/candlepin STDERR: No such environment: Ceci n'est pas une environment MSG: No such environment: Ceci n'est pas une environment TASK [Assert registration failed] ********************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:59 Wednesday 02 April 2025 11:18:57 -0400 (0:00:02.013) 0:02:15.787 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Register (with existing environments)] *********************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:65 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.015) 0:02:15.803 ******* TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.017) 0:02:15.820 ******* included: /tmp/collections-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.015) 0:02:15.835 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.013) 0:02:15.849 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.012) 0:02:15.861 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.011) 0:02:15.873 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.009) 0:02:15.883 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.010) 0:02:15.893 ******* included: /tmp/collections-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Wednesday 02 April 2025 11:18:57 -0400 (0:00:00.018) 0:02:15.912 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Wednesday 02 April 2025 11:19:01 -0400 (0:00:03.496) 0:02:19.409 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not rhc_release is none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Wednesday 02 April 2025 11:19:01 -0400 (0:00:00.014) 0:02:19.423 ******* changed: [managed-node2] => { "changed": true, "subscribed_pool_ids": [] } MSG: System successfully registered to 'candlepin.local'. TASK [fedora.linux_system_roles.rhc : Set or unset the release] **************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:49 Wednesday 02 April 2025 11:19:08 -0400 (0:00:07.185) 0:02:26.609 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not rhc_release is none", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Configure repositories] ****************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:58 Wednesday 02 April 2025 11:19:08 -0400 (0:00:00.015) 0:02:26.624 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:18 Wednesday 02 April 2025 11:19:08 -0400 (0:00:00.009) 0:02:26.634 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [Get enabled environments] ************************************************ task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:94 Wednesday 02 April 2025 11:19:08 -0400 (0:00:00.011) 0:02:26.645 ******* included: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/list_environments.yml for managed-node2 TASK [Run subscription-manager environments --list-enabled] ******************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/list_environments.yml:3 Wednesday 02 April 2025 11:19:08 -0400 (0:00:00.018) 0:02:26.664 ******* ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail\nsubscription-manager environments --list-enabled |\nawk -F':' '/^Name/ {gsub(/^[ \\t]+|[ \\t]+$/, \"\", $2); print $2}'\n", "delta": "0:00:00.586929", "end": "2025-04-02 11:19:09.537891", "rc": 0, "start": "2025-04-02 11:19:08.950962" } STDOUT: Environment 2 TASK [Check environments to enable are enabled] ******************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:97 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.941) 0:02:27.606 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Unregister] ************************************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:105 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.019) 0:02:27.626 ******* TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.020) 0:02:27.646 ******* included: /tmp/collections-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.015) 0:02:27.662 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.015) 0:02:27.677 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.013) 0:02:27.690 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.010) 0:02:27.701 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.010) 0:02:27.712 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.009) 0:02:27.722 ******* included: /tmp/collections-pXf/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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.018) 0:02:27.740 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.012) 0:02:27.753 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Wednesday 02 April 2025 11:19:09 -0400 (0:00:00.010) 0:02:27.764 ******* changed: [managed-node2] => { "changed": true } MSG: System successfully unregistered from None. TASK [fedora.linux_system_roles.rhc : Set or unset the release] **************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:49 Wednesday 02 April 2025 11:19:11 -0400 (0:00:01.646) 0:02:29.410 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:58 Wednesday 02 April 2025 11:19:11 -0400 (0:00:00.012) 0:02:29.423 ******* 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-pXf/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:18 Wednesday 02 April 2025 11:19:11 -0400 (0:00:00.009) 0:02:29.433 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution == \"RedHat\"", "skip_reason": "Conditional result was False" } TASK [Clean up Candlepin container] ******************************************** task path: /tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111 Wednesday 02 April 2025 11:19:11 -0400 (0:00:00.012) 0:02:29.445 ******* ERROR! conflicting action statements: command, change_when The error appears to be in '/tmp/collections-pXf/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml': line 1, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Check if candlepin container is running ^ here