Bug 1944872

Summary: [RFE] tripleO validations - provide a method to show only most recent history
Product: Red Hat OpenStack Reporter: Chris Fields <cfields>
Component: python-validations-libsAssignee: Jiri Podivin <jpodivin>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: drosenfe, erpeters, gchamoul, jamsmith, jpodivin, mariel, pweeks, scohen
Target Milestone: AlphaKeywords: FutureFeature, Triaged
Target Release: 17.0Flags: scohen: needinfo+
scohen: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-validations-libs-1.1.1-0.20210513023024.5815fb3.el8ost Doc Type: Enhancement
Doc Text:
This enhancement adds the '--limit' argument to the 'openstack tripleo validator show history' command. You can use this argument to show only a specified number of the most recent validations.
Story Points: ---
Clone Of:
: 1959707 (view as bug list) Environment:
Last Closed: 2022-09-21 12:14:53 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: wallaby
Embargoed:
Bug Depends On: 1962522    
Bug Blocks: 1959707    

Description Chris Fields 2021-03-30 20:19:48 UTC
Description of problem:

If I've run validations many times, I want to be able to show only the history of the most recent runs for each validator.  This is particularly useful when running group validations.  

openstack tripleo validator show history --recent

Returns the most recent run for each validator in history.  

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

Comment 5 Jiri Podivin 2021-05-10 09:06:41 UTC
Included in the 16.2 build, package: python-validations-libs-1.1.1-2.20210508004823.bfd8e33.el8ost
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1598598

Waiting for 17.0 build before changing status.

Comment 6 Jiri Podivin 2021-05-13 06:20:15 UTC
Now in brew build for 17 trunk: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1602791

Comment 7 Gaƫl Chamoulaud 2021-06-01 09:37:40 UTC
*** Bug 1959707 has been marked as a duplicate of this bug. ***

Comment 9 Jiri Podivin 2021-06-15 08:45:16 UTC
How to test:

1. Run 20< arbitrary validations. Group and specifics of validation doesn't matter.
   This is only a question of number.
2. Display the validator CLI help, to verify description of the `--limit` option.
3. Run `validator history list` without the `--limit` argument. 
   The output must consist of the 15 latest validation runs. Announcement must be displayed about the limit.
4. Run `validator history list` with the --limit argument and various values.
   Recommending 5, 7 and 20.
   Announcement about limit used must be displayed and output limited. 
5. Run `validator history list` with the --limit argument and several invalid values.
   For example -1 and HCF. Error message must be displayed.

Comment 10 Jiri Podivin 2021-06-15 12:28:51 UTC
How to test:

1. Run 20< arbitrary validations. Group and specifics of validation doesn't matter.
   This is only a question of number. `openstack tripleo validator run --validation <> --group <>`.
2. Display the validator CLI help, to verify description of the `--limit` option.
3. Run `openstack tripleo validator history list` without the `--limit` argument. 
   The output must consist of the 15 latest validation runs. Announcement must be displayed about the limit.
4. Run `openstack tripleo validator history list` with the --limit argument and various values.
   Recommending 5, 7 and 20.
   Announcement about limit used must be displayed and output limited. 
5. Run `openstack tripleo validator history list` with the --limit argument and several invalid values.
   For example -1 and HCF. Error message must be displayed.

Comment 21 errata-xmlrpc 2022-09-21 12:14:53 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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-2022:6543