Bug 1887722 - The validations statistics (numbers of execution) are erroneous.
Summary: The validations statistics (numbers of execution) are erroneous.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-validations-libs
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z3
: 16.1 (Train on RHEL 8.2)
Assignee: mathieu bultel
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-13 08:06 UTC by Gaël Chamoulaud
Modified: 2020-12-15 18:37 UTC (History)
3 users (show)

Fixed In Version: python-validations-libs-1.0.5-1.20200914174430.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 18:37:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 757777 0 None MERGED Fix show validation stats with correct number 2021-02-08 03:51:00 UTC
Red Hat Product Errata RHEA-2020:5413 0 None None None 2020-12-15 18:37:34 UTC

Description Gaël Chamoulaud 2020-10-13 08:06:45 UTC
The check-cpu validation has been executed only one time and the stat shows me that it has been executed 53 times already!


undercloud) [RedHat-8.2 - stack@undercloud ~]$ openstack tripleo validator run --validation check-cpu --plan overcloud-10                                                                                          
/usr/lib/python3.6/site-packages/validations_libs/ansible.py:374: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/log/validations/artifacts/93392131-3633-44be-a4c5-117948bc6208_check-cpu.yaml_2020-10-13T07:22:32.229799Z/artifacts/stdout'>
  status, rc = runner.run()
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+                                                                                     
|                 UUID                 | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts |   Duration  |                                                                                     
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+                                                                                     
| 93392131-3633-44be-a4c5-117948bc6208 |  check-cpu  | PASSED |    all     |   undercloud   |                   | 0:00:03.080 |                                                                                     
+--------------------------------------+-------------+--------+------------+----------------+-------------------+-------------+                                                                                     
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('192.168.24.2', 59752), raddr=('192.168.24.2', 13000)>                             
(undercloud) [RedHat-8.2 - stack@undercloud ~]$ openstack tripleo validator show check-cpu
+---------------------+-----------------------------------------------------+
| Field               | Value                                               |
+---------------------+-----------------------------------------------------+
| ID                  | check-cpu                                           |
| Name                | Verify if the server fits the CPU core requirements |
| Description         | Make sure that the server has enough CPU cores.     |
|                     |                                                     |
| Groups              | ['prep', 'pre-introspection']                       |
| Last execution date | 2020-10-13 07:22:33                                 |
| Number of execution | Total: 53, Passed: 4, Failed: 49                    |
+---------------------+-----------------------------------------------------+

Comment 11 errata-xmlrpc 2020-12-15 18:37: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 16.1.3 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/RHEA-2020:5413


Note You need to log in before you can comment on or make changes to this bug.