Bug 1887717 - The CLI terminates with an exception when trying to show details of a non-existing validation
Summary: The CLI terminates with an exception when trying to show details of a non-ex...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z4
: 16.1 (Train on RHEL 8.2)
Assignee: Gaël Chamoulaud
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-13 07:57 UTC by Gaël Chamoulaud
Modified: 2021-03-17 15:34 UTC (History)
8 users (show)

Fixed In Version: python-tripleoclient-12.3.2-1.20200914164931.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-17 15:32:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 758792 0 None MERGED [Validator Show] Properly throwing an exception for unknown validation 2021-02-01 05:37:19 UTC
Red Hat Product Errata RHBA-2021:0817 0 None None None 2021-03-17 15:34:06 UTC

Description Gaël Chamoulaud 2020-10-13 07:57:56 UTC
Here is the output we have when trying to show details of a non-existing validation:

(undercloud) [RedHat-8.2 - stack@undercloud ~]$ openstack tripleo validator show undercloud-cpu                                                                                                                     
Exception occured while running the command                                                                                                                                         
Traceback (most recent call last):                                                        
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_validator.py", line 94, in take_action
    data = actions.show_validations(parsed_args.validation_id)               
  File "/usr/lib/python3.6/site-packages/validations_libs/validation_actions.py", line 60, in show_validations
    raise RuntimeError(msg)                                                            
RuntimeError: Validation undercloud-cpu not found in the path: /usr/share/ansible/validation-playbooks
                                                                                   
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 98, in take_action
    "Output: {}").format(e))                                                 
RuntimeError: Validations listing finished with errors                                        
Output: Validation undercloud-cpu not found in the path: /usr/share/ansible/validation-playbooks
Validations listing finished with errors                                                           
Output: Validation undercloud-cpu not found in the path: /usr/share/ansible/validation-playbooks

We should just have this:

(undercloud) [RedHat-8.2 - stack@undercloud ~]$ openstack tripleo validator show undercloud-cpu 
Validation undercloud-cpu not found in the path: /usr/share/ansible/validation-playbooks

Validations listing finished with errors

Comment 7 David Rosenfeld 2021-02-02 22:38:34 UTC
This is seen now:

openstack tripleo validator show undercloud-cpu 
Validation undercloud-cpu not found in the path: /usr/share/ansible/validation-playbooks

Comment 13 errata-xmlrpc 2021-03-17 15:32:20 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.4 director bug fix 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:0817


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