Bug 1959815 - Filtering by groups of validations when listing them does return all the validations catalog and doesn't apply the filter at all
Summary: Filtering by groups of validations when listing them does return all the vali...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Gaël Chamoulaud
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks: 1959884
TreeView+ depends on / blocked
 
Reported: 2021-05-12 12:35 UTC by Gaël Chamoulaud
Modified: 2021-12-09 20:19 UTC (History)
4 users (show)

Fixed In Version: python-tripleoclient-12.3.2-1.20210521073320.ae58329.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1959884 (view as bug list)
Environment:
Last Closed: 2021-12-09 20:19:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 790854 0 None MERGED Fix validations listing when filtering by group(s) 2021-05-18 12:04:47 UTC
OpenStack gerrit 790855 0 None MERGED Fix validations listing when filtering by group(s) 2021-05-21 05:01:48 UTC
OpenStack gerrit 790960 0 None MERGED Fix validations listing when filtering by group(s) 2021-05-18 12:04:49 UTC
OpenStack gerrit 790976 0 None MERGED Fix validations listing when filtering by group(s) 2021-05-21 05:01:50 UTC
OpenStack gerrit 790977 0 None MERGED Fix validations listing when filtering by group(s) 2021-05-21 05:01:53 UTC
Red Hat Issue Tracker OSP-3844 0 None None None 2021-11-18 11:32:13 UTC
Red Hat Issue Tracker VALFRWK-519 0 None None None 2021-08-13 05:32:53 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:19:28 UTC

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


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