Bug 1942531

Summary: OSP 16.2 Valdator check-latest-packages-version takes 47 minutes to run
Product: Red Hat OpenStack Reporter: David Rosenfeld <drosenfe>
Component: validations-commonAssignee: Jiri Podivin <jpodivin>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: gchamoul, jpodivin
Target Milestone: rcKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: validations-common-1.1.2-2.20210327005000.5795fa8.el8ost Doc Type: Bug Fix
Doc Text:
Before this update, execution of the validation package `check-latest-packages-version` was slow. This update resolves the issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:13:08 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 David Rosenfeld 2021-03-24 14:10:23 UTC
Description of problem: In 16.2 the validation check-latest-packages-version takes 47 minutes to run. In 16.1 it only took 30 seconds. In IRC it was determined that by changing a variable name the time could be reduced. 


openstack tripleo validator run --validation check-latest-packages-version
Running Validations without Overcloud settings.
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
|                 UUID                 | Validations          | Status | Host_Group | Status_by_Host | Unreachable_Hosts |   Duration  |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
| 45748696-f0ad-4354-8df3-b9353cb7bff6 | check-latest-packages-version | FAILED | localhost  | localhost    |                   | 0:47:07.384 |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+ 


Version-Release number of selected component (if applicable): RHOS-16.2-RHEL-8-20210319.n.0


How reproducible: Every time


Steps to Reproduce:
1. Enter openstack tripleo validator run --validation check-latest-packages-version from a command line.
2.
3.

Actual results: check-latest-packages-version takes 47 minutes to complete


Expected results: check-latest-packages-version takes a time similar to the OSP 16.1 time of 30 seconds.


Additional info:

Comment 5 David Rosenfeld 2021-04-14 13:47:44 UTC
Took five seconds now:

(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation check-latest-packages-version
Running Validations without Overcloud settings.
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
| UUID                                 | Validations                   | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration    |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+
| 33208071-566f-4c3e-8ab7-9aada64cbfa7 | check-latest-packages-version | PASSED | localhost  | localhost      |                   | 0:00:05.077 |
+--------------------------------------+-------------------------------+--------+------------+----------------+-------------------+-------------+

Comment 7 errata-xmlrpc 2021-09-15 07:13:08 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 (RHOSP) 16.2 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/RHEA-2021:3483