Bug 1959815

Summary: Filtering by groups of validations when listing them does return all the validations catalog and doesn't apply the filter at all
Product: Red Hat OpenStack Reporter: Gaël Chamoulaud <gchamoul>
Component: python-tripleoclientAssignee: Gaël Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: hbrock, jfrancoa, jslagle, mburns
Target Milestone: z7Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.3.2-1.20210521073320.ae58329.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1959884 (view as bug list) Environment:
Last Closed: 2021-12-09 20:19:09 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: 1959884    

Description Gaël Chamoulaud 2021-05-12 12:35:34 UTC
Description of problem:

When listing validations from group pre-update the `openstack tripleo validator list --group pre-update` command returns all the validations catalog and doesn't return only those validations belonging to the pre-update group.

Actual results:

# Getting the total number of validations available:
(undercloud) [stack@undercloud ~]$ openstack tripleo validator list -f value -c ID | wc -l
69
# Trying to get the number of the pre-update validations:
(undercloud) [stack@undercloud ~]$ openstack tripleo validator list --group pre-update -f value -c ID | wc -l
69

The number of validations is the same

Expected results:

(undercloud) [stack@undercloud ~]$ openstack tripleo validator list --group pre-update -f value -c ID | wc -l
8
(undercloud) [stack@undercloud ~]$ openstack tripleo validator list --group pre-update -f table -c ID
+-------------------------------+
| ID                            |
+-------------------------------+
| openstack-endpoints           |
| package-version               |
| repos                         |
| undercloud-heat-purge-deleted |
| undercloud-ipa-server-check   |
| container-status              |
| undercloud-service-status     |
| system-encoding               |
+-------------------------------+

Comment 3 Jose Luis Franco 2021-05-12 13:27:53 UTC
We also need this patch in 16.2 for what I could verify in my env running OSP16.2 FFU.

Comment 4 Gaël Chamoulaud 2021-05-12 14:00:29 UTC
(In reply to Jose Luis Franco from comment #3)
> We also need this patch in 16.2 for what I could verify in my env running
> OSP16.2 FFU.

yes here it is https://bugzilla.redhat.com/show_bug.cgi?id=1959884

Comment 12 David Rosenfeld 2021-09-03 12:51:04 UTC
Filter is applied now:

openstack tripleo validator list -f value -c ID | wc -l
67

openstack tripleo validator list --group pre-upgrade -f value -c ID | wc -l
20
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator list --group pre-upgrade -f table -c ID
+-------------------------------------+
| ID                                  |
+-------------------------------------+
| check-disk-space-pre-upgrade        |
| check-ftype                         |
| check-latest-packages-version       |
| check-ram                           |
| service-status                      |
| validate-selinux                    |
| repos                               |
| stack-health                        |
| openstack-endpoints                 |
| undercloud-service-status           |
| nova-status                         |
| collect-flavors-and-verify-profiles |
| compute-tsx                         |
| container-status                    |
| containerized-undercloud-docker     |
| image-serve                         |
| undercloud-disk-space-pre-upgrade   |
| ironic-boot-configuration           |
| node-health                         |
| undercloud-heat-purge-deleted       |
+-------------------------------------+

Comment 22 errata-xmlrpc 2021-12-09 20:19:09 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.7 (Train) 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:3762