Cinder shows a raw python error when using --os-volume-api-version incorrectly
Bug #1867061 reported by
Sofia Enriquez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Undecided
|
Eduardo Santos |
Bug Description
Description of problem:
In general, cinder shows a help message when a user types a wrong command. However, when using microversion shows a raw python error prompts.
How reproducible:
cinder --version
> 6.0.0
cinder --os-volume-
> ERROR: 'Namespace' object has no attribute 'func'
Actual results:
ERROR: 'Namespace' object has no attribute 'func'
Expected results:
It must be something about adding the option that messes things up.
Changed in cinder: | |
assignee: | nobody → Sofia Enriquez (lsofia-enriquez) |
Changed in python-cinderclient: | |
assignee: | Sofia Enriquez (lsofia-enriquez) → Eduardo Santos (ecsantos) |
tags: | added: low-hanging-fruit |
To post a comment you must log in.
Some more info:
cinder --debug --os-volume- api-version 3.40 smcginnis/ src/openstack/ python- cinderclient/ cinderclient/ shell.py" , line 1018, in main nderShell( ).main( sys.argv[ 1:]) smcginnis/ src/openstack/ python- cinderclient/ cinderclient/ shell.py" , line 609, in main ent.shell: 'Namespace' object has no attribute 'func' smcginnis/ src/openstack/ python- cinderclient/ cinderclient/ shell.py" , line 1018, in main nderShell( ).main( sys.argv[ 1:]) smcginnis/ src/openstack/ python- cinderclient/ cinderclient/ shell.py" , line 609, in main
DEBUG (shell:1026) 'Namespace' object has no attribute 'func'
Traceback (most recent call last):
File "/home/
OpenStackCi
File "/home/
if args.func == self.do_help:
AttributeError: 'Namespace' object has no attribute 'func'
DEBUG:cindercli
Traceback (most recent call last):
File "/home/
OpenStackCi
File "/home/
if args.func == self.do_help:
AttributeError: 'Namespace' object has no attribute 'func'
ERROR: 'Namespace' object has no attribute 'func'