Bug 1940688 - 16.2 Group not found traceback when validator list executed
Summary: 16.2 Group not found traceback when validator list executed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-validations-libs
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 16.2 (Train on RHEL 8.4)
Assignee: Gaël Chamoulaud
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-18 22:05 UTC by David Rosenfeld
Modified: 2021-09-15 07:13 UTC (History)
3 users (show)

Fixed In Version: python-validations-libs-1.0.5-2.20210310005005.861232b.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-15 07:13:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 777463 0 None MERGED Remove the condition to check the groups. 2021-04-28 08:36:16 UTC
Red Hat Issue Tracker VALFRWK-472 0 None None None 2021-08-13 05:50:58 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:13:32 UTC

Description David Rosenfeld 2021-03-18 22:05:42 UTC
Description of problem: traceback is seen when executing command:

openstack tripleo validator list
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 217, in take_action
    return actions.list_validations()
  File "/usr/lib/python3.6/site-packages/validations_libs/validation_actions.py", line 79, in list_validations
    self.validation_path, self.group)
  File "/usr/lib/python3.6/site-packages/validations_libs/utils.py", line 93, in parse_all_validations_on_disk
    raise RuntimeError(msg)
RuntimeError: Group not found in playbook - please add appropriate group

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 220, in take_action
    "Output: {}").format(e))
RuntimeError: Validations listing finished with errors
Output: Group not found in playbook - please add appropriate group
Validations listing finished with errors
Output: Group not found in playbook - please add appropriate group 


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


How reproducible: Every time


Steps to Reproduce:
1. Execute command: openstack tripleo validator list
2.
3.

Actual results: traceback is seen when openstack tripleo validator list is executed


Expected results: openstack tripleo validator list executed successfully


Additional info:

Comment 8 David Rosenfeld 2021-04-14 14:01:05 UTC
openstack tripleo validator list may now be executed. Showing partial output below: 


(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator list
+-------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------+
| ID                                  | Name                                                                     | Groups                                                                                                  |
+-------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------+
| 512e                                | Advanced Format 512e Support                                             | ['prep', 'pre-deployment']                                                                              |
| check-cpu                           | Verify if the server fits the CPU core requirements                      | ['prep', 'pre-introspection']                                                                           |
| openstack-endpoints                 | Check connectivity to various OpenStack services                         | ['post-deployment', 'pre-upgrade', 'post-upgrade']                                                      |
| check-disk-space-pre-upgrade        | Verify server fits the disk space requirements to perform an upgrade     | ['pre-upgrade']                                                                                         |
| stack-health                        | Stack Health Check                                                       | ['pre-upgrade', 'post-upgrade']

Comment 11 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


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