Bug 1926238

Summary: [FFU 13-16.1][Validation] pre-upgrade validation for "check-latest-packages-version" is failing for "python2-tripleoclient" on OC nodes
Product: Red Hat OpenStack Reporter: MD Sufiyan <msufiyan>
Component: validations-commonAssignee: Gaƫl Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: asalvati, drosenfe, gchamoul, jjoyce, jpretori, jschluet, slinaber, tvignaud
Target Milestone: z6Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: validations-common-1.1.2-1.20201114033622.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-26 13:51:28 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:
Bug Depends On:    
Bug Blocks: 1926721    

Description MD Sufiyan 2021-02-08 13:37:37 UTC
Description of problem:

Pre-upgarde validation[1] is failing after running the command[2] at check-latest-packages-version due to unavailability of package "python2-tripleoclient" in Overcloud nodes.

~~~
(undercloud) [stack@director-name ~]$ cat log_ffu_openstack_tripleo_validator_run_02_02_2021-15_54_39.txt |grep -i f047fc46
| f047fc46-27d8-4821-8c10-279870aa4cd4 |    check-latest-packages-version    | FAILED |           all            | <overcloud-node-names>, undercloud |                   | 0:00:06.863 |
~~~

~~~
openstack tripleo validator show run f047fc46-27d8-4821-8c10-279870aa4cd4" (output attached).

        {
            "task": {
                "hosts": {
                    "overcloud_node_name": {
                        "action": "check_package_update",
                        "changed": false,
                        "failed": true,
                        "msg": "All items completed",
                        "results": [
                            {
                                "_ansible_item_label": "python2-tripleoclient",
                                "_ansible_no_log": false,
                                "ansible_loop_var": "item",
                                "changed": false,
                                "failed": true,
                                "invocation": {
                                    "module_args": {
                                        "package": "python2-tripleoclient",
                                        "pkg_mgr": "yum"
                                    }
                                },
                                "item": "python2-tripleoclient",
                                "msg": "\"python2-tripleoclient\" is not an installed package."
                            }
                        ]
                    }
                },
                "name": "Get available updates for packages",
                "status": "FAILED"
            }
        }
~~~


~~~
Version-Release number of selected component (if applicable):
(undercloud) [stack@director-name environments]$ rpm -qa | grep -i validation
openstack-tripleo-validations-11.3.2-1.20200916153438.el8ost.noarch
validations-common-1.1.2-1.20200914180305.el8ost.noarch
python3-validations-libs-1.0.5-1.20200914174430.el8ost.noarch
~~~


[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html-single/framework_for_upgrades_13_to_16.1/index?validating-red-hat-openstack-platform-oldvernum-before-the-upgrade#validating-the-pre-upgrade-requirements
[2] openstack tripleo validator run --group pre-upgrade

Comment 11 David Rosenfeld 2021-04-19 16:59:23 UTC
check-latest-packages-version passes now:

openstack tripleo validator run --plan overcloud --validation check-latest-packages-version
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
|                 UUID                 |          Validations          | Status | Host_Group | Status_by_Host | Unreachable_Hosts |   Duration  |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
| a16bb2ee-cc68-46ed-b1fb-295378b1ecc2 | check-latest-packages-version | PASSED | localhost  |   localhost    |                   | 0:00:05.563 |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+

Comment 18 errata-xmlrpc 2021-05-26 13:51:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.6 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:2097