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-RIM
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.12.9 (main, Feb  4 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-4)] (/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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml
statically imported: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml
statically imported: /tmp/collections-RIM/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-RIM/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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3
Thursday 03 April 2025  07:26:51 -0400 (0:00:00.010)       0:00:00.010 ******** 
ok: [managed-node2] => {
    "ansible_facts": {
        "lsr_rhc_test_data_file": ""
    },
    "changed": false
}

TASK [Import test data] ********************************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12
Thursday 03 April 2025  07:26:51 -0400 (0:00:00.049)       0:00:00.059 ******** 
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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16
Thursday 03 April 2025  07:26:51 -0400 (0:00:00.030)       0:00:00.090 ******** 
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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24
Thursday 03 April 2025  07:26:51 -0400 (0:00:00.029)       0:00:00.119 ******** 
ok: [managed-node2] => {
    "ansible_facts": {
        "lsr_rhc_test_data": {
            "baseurl": "http://localhost:8080",
            "candlepin_host": "candlepin.local",
            "candlepin_insecure": false,
            "candlepin_port": 8443,
            "candlepin_prefix": "/candlepin",
            "env_nonworking": "Ceci n'est pas une environment",
            "envs_register": [
                "Environment 2"
            ],
            "insights": false,
            "proxy_auth_hostname": "localhost",
            "proxy_auth_password": "proxypass",
            "proxy_auth_port": 3130,
            "proxy_auth_scheme": "https",
            "proxy_auth_username": "proxyuser",
            "proxy_noauth_hostname": "localhost",
            "proxy_noauth_port": 3128,
            "proxy_noauth_scheme": "https",
            "proxy_nonworking_hostname": "wrongproxy",
            "proxy_nonworking_password": "wrong-proxypassword",
            "proxy_nonworking_port": 4000,
            "proxy_nonworking_username": "wrong-proxyuser",
            "reg_activation_keys": [
                "default_key"
            ],
            "reg_invalid_password": "invalid-password",
            "reg_invalid_username": "invalid-user",
            "reg_organization": "donaldduck",
            "reg_password": "password",
            "reg_username": "doc",
            "release": null,
            "repositories": [
                {
                    "name": "donaldy-content-label-7051",
                    "state": "enabled"
                },
                {
                    "name": "content-label-32060",
                    "state": "disabled"
                }
            ]
        }
    },
    "ansible_included_var_files": [
        "/tmp/collections-RIM/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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32
Thursday 03 April 2025  07:26:52 -0400 (0:00:00.034)       0:00:00.154 ******** 
[WARNING]: Platform linux on host managed-node2 is using the discovered Python
interpreter at /usr/bin/python3.9, 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.9"
    },
    "changed": false,
    "stat": {
        "exists": false
    }
}

TASK [Set flag to indicate system is ostree] ***********************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:37
Thursday 03 April 2025  07:26:52 -0400 (0:00:00.501)       0:00:00.655 ******** 
ok: [managed-node2] => {
    "ansible_facts": {
        "__rhc_is_ostree": false
    },
    "changed": false
}

TASK [Get facts for external test data] ****************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9
Thursday 03 April 2025  07:26:52 -0400 (0:00:00.019)       0:00:00.675 ******** 
ok: [managed-node2]

TASK [Set helper fact for Candlepin base URL] **********************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17
Thursday 03 April 2025  07:26:53 -0400 (0:00:00.749)       0:00:01.424 ******** 
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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21
Thursday 03 April 2025  07:26:53 -0400 (0:00:00.034)       0:00:01.458 ******** 
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-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25
Thursday 03 April 2025  07:26:53 -0400 (0:00:00.034)       0:00:01.492 ******** 
changed: [managed-node2] => {
    "backup": "",
    "changed": true
}

MSG:

line added

TASK [Install needed packages] *************************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31
Thursday 03 April 2025  07:26:53 -0400 (0:00:00.445)       0:00:01.938 ******** 
changed: [managed-node2] => {
    "changed": true,
    "rc": 0,
    "results": [
        "Installed: shadow-utils-subid-2:4.9-12.el9.x86_64",
        "Installed: protobuf-c-1.3.3-13.el9.x86_64",
        "Installed: passt-0^20250320.g32f6212-1.el9.x86_64",
        "Installed: passt-selinux-0^20250320.g32f6212-1.el9.noarch",
        "Installed: criu-3.19-1.el9.x86_64",
        "Installed: criu-libs-3.19-1.el9.x86_64",
        "Installed: libnet-1.2-7.el9.x86_64",
        "Installed: crun-1.20-2.el9.x86_64",
        "Installed: netavark-2:1.14.0-1.el9.x86_64",
        "Installed: conmon-3:2.1.13-1.el9.x86_64",
        "Installed: aardvark-dns-2:1.14.0-3.el9.x86_64",
        "Installed: container-selinux-3:2.236.0-1.el9.noarch",
        "Installed: yajl-2.1.0-25.el9.x86_64",
        "Installed: podman-5:5.4.0-5.el9.x86_64",
        "Installed: fuse-overlayfs-1.14-1.el9.x86_64",
        "Installed: fuse3-3.10.2-9.el9.x86_64",
        "Installed: containers-common-2:1-130.el9.x86_64",
        "Installed: fuse-common-3.10.2-9.el9.x86_64",
        "Installed: fuse3-libs-3.10.2-9.el9.x86_64",
        "Installed: slirp4netns-1.3.2-1.el9.x86_64",
        "Installed: libslirp-4.4.0-8.el9.x86_64"
    ]
}

TASK [Stop and remove Candlepin container] *************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38
Thursday 03 April 2025  07:28:16 -0400 (0:01:22.245)       0:01:24.183 ******** 
included: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node2

TASK [Check if the candlepin container is started] *****************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3
Thursday 03 April 2025  07:28:16 -0400 (0:00:00.041)       0:01:24.225 ******** 
ok: [managed-node2] => {
    "changed": false,
    "cmd": [
        "podman",
        "container",
        "exists",
        "candlepin"
    ],
    "delta": "0:00:00.121427",
    "end": "2025-04-03 07:28:16.736031",
    "failed_when_result": false,
    "rc": 1,
    "start": "2025-04-03 07:28:16.614604"
}

MSG:

non-zero return code

TASK [Stop and potentionally remove Candlepin container] ***********************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9
Thursday 03 April 2025  07:28:16 -0400 (0:00:00.718)       0:01:24.944 ******** 
skipping: [managed-node2] => {
    "changed": false,
    "false_condition": "__rhc_candlepin_cont_started.rc == 0",
    "skip_reason": "Conditional result was False"
}

TASK [Check if there is a stopped candlepin container] *************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14
Thursday 03 April 2025  07:28:16 -0400 (0:00:00.036)       0:01:24.980 ******** 
ok: [managed-node2] => {
    "changed": false,
    "cmd": [
        "podman",
        "ps",
        "-a",
        "--filter",
        "name=candlepin"
    ],
    "delta": "0:00:00.030937",
    "end": "2025-04-03 07:28:17.190041",
    "failed_when_result": false,
    "rc": 0,
    "start": "2025-04-03 07:28:17.159104"
}

STDOUT:

CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES

TASK [Remove Candlepin container] **********************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20
Thursday 03 April 2025  07:28:17 -0400 (0:00:00.408)       0:01:25.389 ******** 
skipping: [managed-node2] => {
    "changed": false,
    "false_condition": "\"candlepin\" in __rhc_candlepin_container_stopped.stdout",
    "skip_reason": "Conditional result was False"
}

TASK [Check if the image exists locally] ***************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29
Thursday 03 April 2025  07:28:17 -0400 (0:00:00.035)       0:01:25.425 ******** 
fatal: [managed-node2]: FAILED! => {}

MSG:

The conditional check '__rhc_cleanup_image | bool' failed. The error was: error while evaluating conditional (__rhc_cleanup_image | bool): '__rhc_cleanup_image' is undefined

The error appears to be in '/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml': line 29, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  block:
    - name: Check if the image exists locally
      ^ here


TASK [Clean up Candlepin container] ********************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tests_environments.yml:111
Thursday 03 April 2025  07:28:17 -0400 (0:00:00.033)       0:01:25.458 ******** 
included: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml for managed-node2

TASK [Check if the candlepin container is started] *****************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3
Thursday 03 April 2025  07:28:17 -0400 (0:00:00.022)       0:01:25.481 ******** 
ok: [managed-node2] => {
    "changed": false,
    "cmd": [
        "podman",
        "container",
        "exists",
        "candlepin"
    ],
    "delta": "0:00:00.028731",
    "end": "2025-04-03 07:28:17.661859",
    "failed_when_result": false,
    "rc": 1,
    "start": "2025-04-03 07:28:17.633128"
}

MSG:

non-zero return code

TASK [Stop and potentionally remove Candlepin container] ***********************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9
Thursday 03 April 2025  07:28:17 -0400 (0:00:00.377)       0:01:25.858 ******** 
skipping: [managed-node2] => {
    "changed": false,
    "false_condition": "__rhc_candlepin_cont_started.rc == 0",
    "skip_reason": "Conditional result was False"
}

TASK [Check if there is a stopped candlepin container] *************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14
Thursday 03 April 2025  07:28:17 -0400 (0:00:00.011)       0:01:25.870 ******** 
ok: [managed-node2] => {
    "changed": false,
    "cmd": [
        "podman",
        "ps",
        "-a",
        "--filter",
        "name=candlepin"
    ],
    "delta": "0:00:00.033898",
    "end": "2025-04-03 07:28:18.066650",
    "failed_when_result": false,
    "rc": 0,
    "start": "2025-04-03 07:28:18.032752"
}

STDOUT:

CONTAINER ID  IMAGE       COMMAND     CREATED     STATUS      PORTS       NAMES

TASK [Remove Candlepin container] **********************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20
Thursday 03 April 2025  07:28:18 -0400 (0:00:00.394)       0:01:26.265 ******** 
skipping: [managed-node2] => {
    "changed": false,
    "false_condition": "\"candlepin\" in __rhc_candlepin_container_stopped.stdout",
    "skip_reason": "Conditional result was False"
}

TASK [Check if the image exists locally] ***************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29
Thursday 03 April 2025  07:28:18 -0400 (0:00:00.014)       0:01:26.280 ******** 
ok: [managed-node2] => {
    "changed": false,
    "cmd": [
        "podman",
        "images",
        "-q",
        "ghcr.io/ptoscano/candlepin-unofficial"
    ],
    "delta": "0:00:00.029594",
    "end": "2025-04-03 07:28:18.511389",
    "rc": 0,
    "start": "2025-04-03 07:28:18.481795"
}

TASK [Remove Candlepin container image] ****************************************
task path: /tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:34
Thursday 03 April 2025  07:28:18 -0400 (0:00:00.434)       0:01:26.714 ******** 
skipping: [managed-node2] => {
    "changed": false,
    "false_condition": "__rhc_candlepin_image.stdout | length > 0",
    "skip_reason": "Conditional result was False"
}

PLAY RECAP *********************************************************************
managed-node2              : ok=16   changed=2    unreachable=0    failed=1    skipped=7    rescued=0    ignored=0   


TASKS RECAP ********************************************************************
Thursday 03 April 2025  07:28:18 -0400 (0:00:00.045)       0:01:26.760 ******** 
=============================================================================== 
Install needed packages ------------------------------------------------ 82.25s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:31 
Get facts for external test data ---------------------------------------- 0.75s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:9 
Check if the candlepin container is started ----------------------------- 0.72s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 
Check if system is ostree ----------------------------------------------- 0.50s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:32 
Add candlepin hostname to /etc/hosts ------------------------------------ 0.45s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:25 
Check if the image exists locally --------------------------------------- 0.43s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29 
Check if there is a stopped candlepin container ------------------------- 0.41s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 
Check if there is a stopped candlepin container ------------------------- 0.39s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:14 
Check if the candlepin container is started ----------------------------- 0.38s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:3 
Get LSR_RHC_TEST_DATA environment variable ------------------------------ 0.05s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:3 
Remove Candlepin container image ---------------------------------------- 0.05s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:34 
Stop and remove Candlepin container ------------------------------------- 0.04s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:38 
Stop and potentionally remove Candlepin container ----------------------- 0.04s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:9 
Remove Candlepin container ---------------------------------------------- 0.04s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:20 
Set helper fact for Candlepin base URL ---------------------------------- 0.03s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:17 
Set local lsr_rhc_test_data --------------------------------------------- 0.03s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:24 
Set helper fact for Candlepin owner URL --------------------------------- 0.03s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_candlepin.yml:21 
Check if the image exists locally --------------------------------------- 0.03s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/cleanup_candlepin_container.yml:29 
Import test data -------------------------------------------------------- 0.03s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:12 
Get facts for external test data ---------------------------------------- 0.03s
/tmp/collections-RIM/ansible_collections/fedora/linux_system_roles/tests/rhc/tasks/setup_test_data.yml:16