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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml statically imported: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml statically imported: /tmp/collections-fAB/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-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 Saturday 15 February 2025 14:26:16 -0500 (0:00:00.029) 0:00:00.029 ***** ok: [managed-node2] => { "ansible_facts": { "lsr_rhc_test_data_file": "" }, "changed": false } TASK [Import test data] ******************************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 Saturday 15 February 2025 14:26:16 -0500 (0:00:00.045) 0:00:00.075 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16 Saturday 15 February 2025 14:26:16 -0500 (0:00:00.038) 0:00:00.113 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set local lsr_rhc_test_data] ********************************************* task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 Saturday 15 February 2025 14:26:17 -0500 (0:00:00.039) 0:00:00.152 ***** 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-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Saturday 15 February 2025 14:26:17 -0500 (0:00:00.048) 0:00:00.200 ***** 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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37 Saturday 15 February 2025 14:26:17 -0500 (0:00:00.540) 0:00:00.741 ***** ok: [managed-node2] => { "ansible_facts": { "__rhc_is_ostree": false }, "changed": false } TASK [Get facts for external test data] **************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Saturday 15 February 2025 14:26:17 -0500 (0:00:00.043) 0:00:00.785 ***** ok: [managed-node2] TASK [Set helper fact for Candlepin base URL] ********************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 Saturday 15 February 2025 14:26:18 -0500 (0:00:00.671) 0:00:01.456 ***** 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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 Saturday 15 February 2025 14:26:18 -0500 (0:00:00.044) 0:00:01.500 ***** 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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 Saturday 15 February 2025 14:26:18 -0500 (0:00:00.044) 0:00:01.544 ***** changed: [managed-node2] => { "backup": "", "changed": true } MSG: line added TASK [Install needed packages] ************************************************* task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Saturday 15 February 2025 14:26:18 -0500 (0:00:00.474) 0:00:02.018 ***** changed: [managed-node2] => { "changed": true, "changes": { "installed": [ "podman" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-\n : manager\n\nThis system is not registered with an entitlement server. You can use subscription-manager to register.\n\nLoading mirror speeds from cached hostfile\n * epel: d2lzkl7pfhq30w.cloudfront.net\n * epel-debuginfo: d2lzkl7pfhq30w.cloudfront.net\n * epel-source: d2lzkl7pfhq30w.cloudfront.net\nResolving Dependencies\n--> Running transaction check\n---> Package podman.x86_64 0:1.6.4-36.el7_9 will be installed\n--> Processing Dependency: slirp4netns >= 0.4.0-1 for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: runc >= 1.0.0-57 for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: containers-common >= 0.1.29-3 for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: containernetworking-plugins >= 0.8.1-1 for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: nftables for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: fuse-overlayfs for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: container-selinux for package: podman-1.6.4-36.el7_9.x86_64\n--> Processing Dependency: conmon for package: podman-1.6.4-36.el7_9.x86_64\n--> Running transaction check\n---> Package conmon.x86_64 2:2.0.8-1.el7 will be installed\n---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed\n---> Package containernetworking-plugins.x86_64 0:0.8.3-3.el7.centos will be installed\n---> Package containers-common.x86_64 1:0.1.40-11.el7_8 will be installed\n---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed\n--> Processing Dependency: libfuse3.so.3(FUSE_3.2)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64\n--> Processing Dependency: libfuse3.so.3(FUSE_3.0)(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64\n--> Processing Dependency: libfuse3.so.3()(64bit) for package: fuse-overlayfs-0.7.2-6.el7_8.x86_64\n---> Package nftables.x86_64 1:0.8-14.el7 will be installed\n--> Processing Dependency: libnftnl.so.7(LIBNFTNL_5)(64bit) for package: 1:nftables-0.8-14.el7.x86_64\n--> Processing Dependency: libnftnl.so.7()(64bit) for package: 1:nftables-0.8-14.el7.x86_64\n---> Package runc.x86_64 0:1.0.0-70.rc10.el7_9 will be installed\n--> Processing Dependency: criu for package: runc-1.0.0-70.rc10.el7_9.x86_64\n---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed\n--> Running transaction check\n---> Package criu.x86_64 0:3.12-2.el7 will be installed\n--> Processing Dependency: libprotobuf-c.so.1(LIBPROTOBUF_C_1.0.0)(64bit) for package: criu-3.12-2.el7.x86_64\n--> Processing Dependency: libprotobuf-c.so.1()(64bit) for package: criu-3.12-2.el7.x86_64\n--> Processing Dependency: libnet.so.1()(64bit) for package: criu-3.12-2.el7.x86_64\n---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed\n---> Package libnftnl.x86_64 0:1.0.8-3.el7 will be installed\n--> Running transaction check\n---> Package libnet.x86_64 0:1.1.6-7.el7 will be installed\n---> Package protobuf-c.x86_64 0:1.0.2-3.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository\n Size\n================================================================================\nInstalling:\n podman x86_64 1.6.4-36.el7_9 extras 13 M\nInstalling for dependencies:\n conmon x86_64 2:2.0.8-1.el7 extras 31 k\n container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k\n containernetworking-plugins x86_64 0.8.3-3.el7.centos extras 20 M\n containers-common x86_64 1:0.1.40-11.el7_8 extras 43 k\n criu x86_64 3.12-2.el7 base 453 k\n fuse-overlayfs x86_64 0.7.2-6.el7_8 extras 54 k\n fuse3-libs x86_64 3.6.1-4.el7 extras 82 k\n libnet x86_64 1.1.6-7.el7 base 59 k\n libnftnl x86_64 1.0.8-3.el7 base 78 k\n nftables x86_64 1:0.8-14.el7 base 186 k\n protobuf-c x86_64 1.0.2-3.el7 base 28 k\n runc x86_64 1.0.0-70.rc10.el7_9 extras 2.7 M\n slirp4netns x86_64 0.4.3-4.el7_8 extras 81 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+13 Dependent packages)\n\nTotal download size: 37 M\nInstalled size: 143 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 32 MB/s | 37 MB 00:01 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 1/14 \n Installing : slirp4netns-0.4.3-4.el7_8.x86_64 2/14 \n Installing : containernetworking-plugins-0.8.3-3.el7.centos.x86_64 3/14 \n Installing : libnftnl-1.0.8-3.el7.x86_64 4/14 \n Installing : 1:nftables-0.8-14.el7.x86_64 5/14 \n Installing : 2:conmon-2.0.8-1.el7.x86_64 6/14 \n Installing : fuse3-libs-3.6.1-4.el7.x86_64 7/14 \n Installing : fuse-overlayfs-0.7.2-6.el7_8.x86_64 8/14 \n Installing : 1:containers-common-0.1.40-11.el7_8.x86_64 9/14 \n Installing : protobuf-c-1.0.2-3.el7.x86_64 10/14 \n Installing : libnet-1.1.6-7.el7.x86_64 11/14 \n Installing : criu-3.12-2.el7.x86_64 12/14 \n Installing : runc-1.0.0-70.rc10.el7_9.x86_64 13/14 \n Installing : podman-1.6.4-36.el7_9.x86_64 14/14 \n Verifying : libnet-1.1.6-7.el7.x86_64 1/14 \n Verifying : protobuf-c-1.0.2-3.el7.x86_64 2/14 \n Verifying : fuse3-libs-3.6.1-4.el7.x86_64 3/14 \n Verifying : podman-1.6.4-36.el7_9.x86_64 4/14 \n Verifying : fuse-overlayfs-0.7.2-6.el7_8.x86_64 5/14 \n Verifying : runc-1.0.0-70.rc10.el7_9.x86_64 6/14 \n Verifying : slirp4netns-0.4.3-4.el7_8.x86_64 7/14 \n Verifying : 1:nftables-0.8-14.el7.x86_64 8/14 \n Verifying : criu-3.12-2.el7.x86_64 9/14 \n Verifying : 2:conmon-2.0.8-1.el7.x86_64 10/14 \n Verifying : 1:containers-common-0.1.40-11.el7_8.x86_64 11/14 \n Verifying : libnftnl-1.0.8-3.el7.x86_64 12/14 \n Verifying : containernetworking-plugins-0.8.3-3.el7.centos.x86_64 13/14 \n Verifying : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 14/14 \n\nInstalled:\n podman.x86_64 0:1.6.4-36.el7_9 \n\nDependency Installed:\n conmon.x86_64 2:2.0.8-1.el7 \n container-selinux.noarch 2:2.119.2-1.911c772.el7_8 \n containernetworking-plugins.x86_64 0:0.8.3-3.el7.centos \n containers-common.x86_64 1:0.1.40-11.el7_8 \n criu.x86_64 0:3.12-2.el7 \n fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 \n fuse3-libs.x86_64 0:3.6.1-4.el7 \n libnet.x86_64 0:1.1.6-7.el7 \n libnftnl.x86_64 0:1.0.8-3.el7 \n nftables.x86_64 1:0.8-14.el7 \n protobuf-c.x86_64 0:1.0.2-3.el7 \n runc.x86_64 0:1.0.0-70.rc10.el7_9 \n slirp4netns.x86_64 0:0.4.3-4.el7_8 \n\nComplete!\n" ] } lsrpackages: podman TASK [Stop and remove Candlepin container] ************************************* task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Saturday 15 February 2025 14:26:39 -0500 (0:00:20.503) 0:00:22.522 ***** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "stop", "candlepin" ], "delta": "0:00:02.473626", "end": "2025-02-15 14:26:42.272556", "failed_when_result": false, "rc": 125, "start": "2025-02-15 14:26:39.798930" } 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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:50 Saturday 15 February 2025 14:26:42 -0500 (0:00:02.950) 0:00:25.472 ***** ok: [managed-node2] => { "changed": false, "cmd": [ "podman", "run", "--rm", "--detach", "--hostname", "candlepin.local", "--name", "candlepin", "--publish", "8443:8443", "--publish", "8080:8080", "--privileged", "ghcr.io/ptoscano/candlepin-unofficial" ], "delta": "0:00:23.145084", "end": "2025-02-15 14:27:05.764404", "rc": 0, "start": "2025-02-15 14:26:42.619320" } STDOUT: 7428c72e3b24efbd6e6817748d599c5b6ac9a8e2799f84476b641edb7980226d STDERR: Trying to pull ghcr.io/ptoscano/candlepin-unofficial... Getting image source signatures Copying blob sha256:45ea2f2ce928d65b145ef54019947c283d96b814078e11f635c73e8063db679c Copying config sha256:46002e34156a388daab0a887b43b80d7232fd3de7f7d46dccca01d9d26de4a69 Writing manifest to image destination Storing signatures TASK [Ensure directories exist] ************************************************ task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:71 Saturday 15 February 2025 14:27:05 -0500 (0:00:23.510) 0:00:48.983 ***** ok: [managed-node2] => (item=/etc/pki/product) => { "ansible_loop_var": "item", "changed": false, "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": 4096, "state": "directory", "uid": 0 } ok: [managed-node2] => (item=/etc/pki/product-default) => { "ansible_loop_var": "item", "changed": false, "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": 4096, "state": "directory", "uid": 0 } ok: [managed-node2] => (item=/etc/rhsm/ca) => { "ansible_loop_var": "item", "changed": false, "gid": 0, "group": "root", "item": "/etc/rhsm/ca", "mode": "0755", "owner": "root", "path": "/etc/rhsm/ca", "secontext": "system_u:object_r:rhsmcertd_config_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [Copy product certificates] *********************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:81 Saturday 15 February 2025 14:27:08 -0500 (0:00:02.347) 0:00:51.330 ***** 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.507441", "end": "2025-02-15 14:27:09.720154", "item": "7050", "rc": 0, "start": "2025-02-15 14:27:09.212713" } TASK [Copy Candlepin CA certificate for subscription-manager] ****************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:92 Saturday 15 February 2025 14:27:09 -0500 (0:00:01.675) 0:00:53.006 ***** 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.457580", "end": "2025-02-15 14:27:11.132302", "rc": 0, "start": "2025-02-15 14:27:10.674722" } TASK [Copy Candlepin CA certificate for system] ******************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:101 Saturday 15 February 2025 14:27:11 -0500 (0:00:01.411) 0:00:54.417 ***** 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.495474", "end": "2025-02-15 14:27:12.585076", "rc": 0, "start": "2025-02-15 14:27:12.089602" } TASK [Update system certificates store] **************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:110 Saturday 15 February 2025 14:27:12 -0500 (0:00:01.466) 0:00:55.883 ***** ok: [managed-node2] => { "changed": false, "cmd": [ "update-ca-trust", "extract" ], "delta": "0:00:02.066529", "end": "2025-02-15 14:27:15.717122", "rc": 0, "start": "2025-02-15 14:27:13.650593" } TASK [Wait for started Candlepin] ********************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:117 Saturday 15 February 2025 14:27:15 -0500 (0:00:03.116) 0:00:59.000 ***** ok: [managed-node2] => { "attempts": 1, "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Sat, 15 Feb 2025 19:27:32 GMT", "elapsed": 16, "redirected": true, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/", "vary": "accept-encoding", "x_candlepin_request_uuid": "89b4f2ea-71e2-42c9-99d5-3ff9c182de4a", "x_version": "4.5.1-2" } MSG: OK (unknown bytes) TASK [Install GPG key for RPM repositories] ************************************ task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:127 Saturday 15 February 2025 14:27:33 -0500 (0:00:17.446) 0:01:16.446 ***** changed: [managed-node2] => { "changed": true, "checksum_dest": null, "checksum_src": "f370b1e6ba7deca6577fb46a6a950b49c9db1489", "dest": "/etc/pki/rpm-gpg/RPM-GPG-KEY-candlepin", "elapsed": 0, "gid": 0, "group": "root", "md5sum": "d4931d327ecd2a3dccb09cf858d0fd99", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:cert_t:s0", "size": 1660, "src": "/root/.ansible/tmp/ansible-tmp-1739647653.37-12285-137338183341875/tmpV82hDe", "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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:136 Saturday 15 February 2025 14:27:33 -0500 (0:00:00.553) 0:01:17.000 ***** ok: [managed-node2] => (item={u'id': u'envId1', u'name': u'Environment 1', u'desc': u'The environment 1'}) => { "ansible_loop_var": "item", "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Sat, 15 Feb 2025 19:27:34 GMT", "elapsed": 0, "item": { "desc": "The environment 1", "id": "envId1", "name": "Environment 1" }, "json": { "contentPrefix": null, "created": "2025-02-15T19:27:34+0000", "description": "The environment 1", "environmentContent": [], "id": "envId1", "name": "Environment 1", "owner": { "contentAccessMode": "org_environment", "displayName": "Donald Duck", "href": "/owners/donaldduck", "id": "8a8082e493ba48930193ba48a7c80004", "key": "donaldduck" }, "type": null, "updated": "2025-02-15T19:27:34+0000" }, "redirected": false, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/owners/donaldduck/environments", "vary": "accept-encoding", "x_candlepin_request_uuid": "d9f26bce-7e43-458c-b408-dcfa42fdc450", "x_version": "4.5.1-2" } MSG: OK (unknown bytes) ok: [managed-node2] => (item={u'id': u'envId2', u'name': u'Environment 2', u'desc': u'The environment 2'}) => { "ansible_loop_var": "item", "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Sat, 15 Feb 2025 19:27:35 GMT", "elapsed": 0, "item": { "desc": "The environment 2", "id": "envId2", "name": "Environment 2" }, "json": { "contentPrefix": null, "created": "2025-02-15T19:27:35+0000", "description": "The environment 2", "environmentContent": [], "id": "envId2", "name": "Environment 2", "owner": { "contentAccessMode": "org_environment", "displayName": "Donald Duck", "href": "/owners/donaldduck", "id": "8a8082e493ba48930193ba48a7c80004", "key": "donaldduck" }, "type": null, "updated": "2025-02-15T19:27:35+0000" }, "redirected": false, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/owners/donaldduck/environments", "vary": "accept-encoding", "x_candlepin_request_uuid": "8acb491f-7706-4d07-ab8c-e982be522cf4", "x_version": "4.5.1-2" } MSG: OK (unknown bytes) TASK [Check Candlepin works] *************************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/check_candlepin.yml:3 Saturday 15 February 2025 14:27:35 -0500 (0:00:01.742) 0:01:18.742 ***** ok: [managed-node2] => { "changed": false, "connection": "close", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Sat, 15 Feb 2025 19:27:35 GMT", "elapsed": 0, "redirected": true, "status": 200, "transfer_encoding": "chunked", "url": "https://candlepin.local:8443/candlepin/", "vary": "accept-encoding", "x_candlepin_request_uuid": "3a832d53-8f00-4229-94e1-5fa135b31228", "x_version": "4.5.1-2" } MSG: OK (unknown bytes) META: TASK [Ensure ansible_facts used by the test] *********************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:22 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.496) 0:01:19.238 ***** ok: [managed-node2] TASK [Register (wrong environment)] ******************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:33 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.417) 0:01:19.655 ***** TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.036) 0:01:19.691 ***** included: /tmp/collections-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.121) 0:01:19.813 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.029) 0:01:19.842 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Set flag to indicate system is ostree] *** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.026) 0:01:19.869 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if insights-packages are installed] *** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.024) 0:01:19.894 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.023) 0:01:19.917 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.025) 0:01:19.943 ***** included: /tmp/collections-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Saturday 15 February 2025 14:27:36 -0500 (0:00:00.052) 0:01:19.996 ***** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "subscription-manager-1.24.54-1.el7.centos.x86_64 providing subscription-manager is already installed" ] } lsrpackages: subscription-manager TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Saturday 15 February 2025 14:27:37 -0500 (0:00:00.919) 0:01:20.915 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Saturday 15 February 2025 14:27:37 -0500 (0:00:00.019) 0:01:20.935 ***** 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-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:57 Saturday 15 February 2025 14:27:39 -0500 (0:00:01.246) 0:01:22.181 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Register (with existing environments)] *********************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:63 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.020) 0:01:22.202 ***** TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.026) 0:01:22.229 ***** included: /tmp/collections-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.024) 0:01:22.253 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.018) 0:01:22.272 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Set flag to indicate system is ostree] *** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.016) 0:01:22.288 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if insights-packages are installed] *** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.017) 0:01:22.306 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.016) 0:01:22.322 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.027) 0:01:22.350 ***** included: /tmp/collections-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Saturday 15 February 2025 14:27:39 -0500 (0:00:00.033) 0:01:22.384 ***** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "subscription-manager-1.24.54-1.el7.centos.x86_64 providing subscription-manager is already installed" ] } lsrpackages: subscription-manager TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Saturday 15 February 2025 14:27:40 -0500 (0:00:00.876) 0:01:23.261 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Saturday 15 February 2025 14:27:40 -0500 (0:00:00.024) 0:01:23.285 ***** 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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:49 Saturday 15 February 2025 14:27:46 -0500 (0:00:06.023) 0:01:29.308 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Configure repositories] ****************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:58 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.022) 0:01:29.331 ***** TASK [fedora.linux_system_roles.rhc : Handle insights registration] ************ task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:18 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.015) 0:01:29.346 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get enabled environments] ************************************************ task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:92 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.016) 0:01:29.363 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Check environments to enable are enabled] ******************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:95 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.018) 0:01:29.382 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Unregister] ************************************************************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:103 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.019) 0:01:29.401 ***** TASK [fedora.linux_system_roles.rhc : Set ansible_facts required by role] ****** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:3 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.029) 0:01:29.431 ***** included: /tmp/collections-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:3 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.023) 0:01:29.454 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if system is ostree] *************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:11 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.018) 0:01:29.473 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Set flag to indicate system is ostree] *** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:16 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.017) 0:01:29.490 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Check if insights-packages are installed] *** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/set_vars.yml:20 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.019) 0:01:29.510 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle insights unregistration] ********** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:6 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.024) 0:01:29.535 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Handle system subscription] ************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:15 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.053) 0:01:29.588 ***** included: /tmp/collections-fAB/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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.047) 0:01:29.636 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Get subscription status] ***************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:10 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.020) 0:01:29.656 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Call subscription-manager] *************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Saturday 15 February 2025 14:27:46 -0500 (0:00:00.023) 0:01:29.680 ***** 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-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:49 Saturday 15 February 2025 14:27:47 -0500 (0:00:01.410) 0:01:31.090 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.rhc : Configure repositories] ****************** task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:58 Saturday 15 February 2025 14:27:47 -0500 (0:00:00.018) 0:01:31.109 ***** TASK [fedora.linux_system_roles.rhc : Handle insights registration] ************ task path: /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/main.yml:18 Saturday 15 February 2025 14:27:47 -0500 (0:00:00.015) 0:01:31.124 ***** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node2 : ok=32 changed=5 unreachable=0 failed=0 skipped=29 rescued=1 ignored=0 Saturday 15 February 2025 14:27:47 -0500 (0:00:00.015) 0:01:31.140 ***** =============================================================================== Start Candlepin container ---------------------------------------------- 23.51s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:50 Install needed packages ------------------------------------------------ 20.50s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 Wait for started Candlepin --------------------------------------------- 17.45s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:117 fedora.linux_system_roles.rhc : Call subscription-manager --------------- 6.02s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 Update system certificates store ---------------------------------------- 3.12s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:110 Stop and remove Candlepin container ------------------------------------- 2.95s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 Ensure directories exist ------------------------------------------------ 2.35s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:71 Add environments -------------------------------------------------------- 1.74s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:136 Copy product certificates ----------------------------------------------- 1.68s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:81 Copy Candlepin CA certificate for system -------------------------------- 1.47s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:101 Copy Candlepin CA certificate for subscription-manager ------------------ 1.41s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:92 fedora.linux_system_roles.rhc : Call subscription-manager --------------- 1.41s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 fedora.linux_system_roles.rhc : Call subscription-manager --------------- 1.25s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:23 fedora.linux_system_roles.rhc : Ensure required packages are installed --- 0.92s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 fedora.linux_system_roles.rhc : Ensure required packages are installed --- 0.88s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/roles/rhc/tasks/subscription-manager.yml:3 Get facts for external test data ---------------------------------------- 0.67s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 Install GPG key for RPM repositories ------------------------------------ 0.55s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:127 Check if system is ostree ----------------------------------------------- 0.54s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 Check Candlepin works --------------------------------------------------- 0.50s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/check_candlepin.yml:3 Add candlepin hostname to /etc/hosts ------------------------------------ 0.47s /tmp/collections-fAB/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25