Bug 1940688

Summary: 16.2 Group not found traceback when validator list executed
Product: Red Hat OpenStack Reporter: David Rosenfeld <drosenfe>
Component: python-validations-libsAssignee: Gaƫl Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: hbrock, jslagle, mburns
Target Milestone: rcKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-validations-libs-1.0.5-2.20210310005005.861232b.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:13:08 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:

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