Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2259795

Summary: [rhosp 16.2 to 17.1] Incorrect validation of podman version
Product: Red Hat OpenStack Reporter: Eric Nothen <enothen>
Component: documentationAssignee: Juan Badia Payno <jbadiapa>
Status: CLOSED CURRENTRELEASE QA Contact: Archana Singh <arcsingh>
Severity: high Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: cgussobo, gkadam, gregraka, jbadiapa, jjoyce, jpretori, jschluet, kgilliga, mariel, mbultel, pkomarov, slinaber, tvignaud
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-14.3.2-17.1.20240405160852.2b526f8.el9ost Doc Type: Known Issue
Doc Text:
If you are performing an update/upgrade of your RHOSP environment to 17.1.x, the pre-update/pre-upgrade `package_version` validation fails because the validation cannot find a matching podman version. + *Workaround:* To skip the `package_version` validation, use the `--skiplist-validations package-version` option when you run the pre-update validation: + ---- $ validation run -i ~/overcloud-deploy/<stack>/tripleo-ansible-inventory.yaml --group pre-update --skiplist-validations package-version ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-20 19:11:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Nothen 2024-01-23 09:09:12 UTC
Description of problem:
Running rhosp 16.2 to 17.1 pre-upgrade validation fails because of podman version, but required podman version is incorrect for rhosp 16.2

Version-Release number of selected component (if applicable):
17.1.2

How reproducible:
Always reproducible

Steps to Reproduce:
1. Setup undercloud as described in documentation [0]

2. Run validation as in section 2.2 step 6:
~~~
(undercloud) [stack ~]$ validation run -i inventory.yaml --group pre-upgrade
Validation config file found: /etc/validation.cfg
...
One or more validations have failed.
(undercloud) [stack ~]$ 
~~~

3. Check results:
~~~
(undercloud) [stack ~]$ validation history list
Validation config file found: /etc/validation.cfg
Limiting output to the maximum of 15 last validations.
+--------------------------------------+-----------------------------------+--------+-----------------------------+-------------+
| UUID                                 | Validations                       | Status | Execution at                | Duration    |
+--------------------------------------+-----------------------------------+--------+-----------------------------+-------------+
| f5d05137-f8e8-45d8-bead-2d713e603869 | tripleo-latest-packages-version   | PASSED | 2024-01-23T08:07:00.649061Z | 0:00:07.150 |
| a3a1d016-e3f0-41fc-a8a6-196c3f99cb4b | compute-tsx                       | PASSED | 2024-01-23T08:07:09.156322Z | 0:00:01.178 |
| b9f197ba-76b3-4165-8e27-f520d0593cd9 | undercloud-disabled-services      | PASSED | 2024-01-23T08:07:11.886542Z | 0:00:00.815 |
| 14bb5ac6-e54b-40ee-8e07-f3ba2a67ad88 | image-serve                       | PASSED | 2024-01-23T08:07:14.029424Z | 0:00:02.618 |
| ae60071e-bf01-41ed-a0ec-d267170a4373 | check-disk-space-pre-upgrade      | PASSED | 2024-01-23T08:07:17.876140Z | 0:00:02.675 |
| b88179d2-6732-4d1b-b08b-79370d638614 | check-ftype                       | PASSED | 2024-01-23T08:07:21.697617Z | 0:00:00.639 |
| 68c6917e-3044-417e-a19a-0266ec0ce2d1 | container-status                  | FAILED | 2024-01-23T08:07:23.502395Z | 0:00:05.117 |
| c6284d07-dcbf-4972-863b-dfed4b3dbb1a | undercloud-disk-space-pre-upgrade | PASSED | 2024-01-23T08:07:29.947453Z | 0:00:03.132 |
| 16413dee-7cb6-4f6e-936b-a5867b7a7a1d | undercloud-sysctl                 | PASSED | 2024-01-23T08:07:34.416264Z | 0:00:01.890 |
| a9b26025-a09a-4f25-8ea6-d2cae957bac4 | validate-selinux                  | PASSED | 2024-01-23T08:07:37.615138Z | 0:00:06.052 |
| c6a6f2af-5953-4f36-9b12-edbbca5c6217 | check-rsyslog                     | PASSED | 2024-01-23T08:07:45.180054Z | 0:00:12.752 |
| 93d58a4d-fd36-4e4c-aab0-70dd292044c0 | check-reboot                      | PASSED | 2024-01-23T08:07:59.921728Z | 0:00:17.391 |
| 7e4c4f07-30d0-4e72-8822-63d03998b495 | package-version                   | FAILED | 2024-01-23T08:08:18.581550Z | 0:00:11.512 |
| 8c45404e-8d52-46ff-b26c-ed49bbb1210b | undercloud-ipa-server-check       | FAILED | 2024-01-23T08:08:31.447044Z | 0:00:04.754 |
| 0a12b02d-4ea6-4133-b813-2ddac14a176b | repos                             | PASSED | 2024-01-23T08:08:37.472451Z | 0:00:16.133 |
+--------------------------------------+-----------------------------------+--------+-----------------------------+-------------+
(undercloud) [stack ~]$ 
~~~

Actual results:

Validation "package-version" shows podman with version *el8.2.0" is required, which is incorrect for rhosp 16.2, based on rhel 8.4:

~~~
(undercloud) [stack ~]$ validation history get 7e4c4f07-30d0-4e72-8822-63d03998b495 
Validation config file found: /etc/validation.cfg
{
    "hosts": {
        "overcloud-novacompute-0": {
            "action": "fail",
            "changed": false,
            "failed": true,
            "msg": "All items completed",
            "results": [
                {
                    "_ansible_item_label": "podman",
                    "_ansible_no_log": false,
                    "ansible_loop_var": "item",
                    "changed": false,
                    "failed": true,
                    "item": {
                        "key": "podman",
                        "value": []
                    },
                    "msg": "Unable to find a matching version for podman. Should get 1.6.4-15.module+el8.2.0+7290+954fb593 as installed."
                }
            ]
        }
    },
    "name": "Fail if we lack a version for any package",
    "status": "FAILED"
}
...
~~~

Expected results:

Validation should match with a version of podman that is available on the "Red Hat Enterprise Linux Server - TUS (v. 8.4 for x86_64)" repository with release 8.4 set. Since we allow updates from non-latest z-stream, it may not be the latest one (as of this writing podman-3.2.3-0.12.module+el8.4.0+14908+81312c48.x86_64), but it should definitely be somewhere around 3.2.3-*.el8.4.*. and not *el8.2*.

Additional info:

[0] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.1/html-single/framework_for_upgrades_16.2_to_17.1/index#validating-rhosp-before-the-upgrade

Comment 1 Eric Nothen 2024-03-13 15:02:23 UTC
~~~
(undercloud) [stack ~]$ cat /usr/share/ansible/roles/package_version/vars/redhat-8.yml
---
package_version_packages:
  - name: podman
    version: 1.6.4-15.module+el8.2.0+7290+954fb593
    comparison: '=='
    state: installed
~~~

Comment 3 Eric Nothen 2024-03-25 10:36:39 UTC
Hello,

Anything I can pass to the customer? How about the proposed workaround?

Comment 4 mathieu bultel 2024-03-28 16:11:19 UTC
Hi Eric,

Sorry for the delay.
A hotfix will just to adjust the correct version of podman.
I'm trying to see what is the official version of podman for RHEL 8.4 and also if this version might change often.

Comment 5 mathieu bultel 2024-04-04 07:59:32 UTC
Looks for rhel-9 we will have 4.4.1
 "On rhel9 it looks like we have version podman-4.4.1-13.el9_2"
For rhel-8, I don't have clear answer for now.
I'm going to prepare a patch for rhel-8 and 9 with the follow checks:
rhel-8: podman-3.2.x
rhel-9: podman-4.4.x