Multiple clients return a raw Python error when not using subcommands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Undecided
|
Mridula Joshi | ||
python-novaclient |
Fix Released
|
Low
|
Takashi Natsume |
Bug Description
Description
===========
Multiple OpenStack clients return a raw Python error when passing
optional arguments without using a subcommand. The clients tested
and confirmed so far include:
- python-glanceclient
- python-manilaclient (fix in review)
- python-novaclient
- python-cinderclient (fix already merged)
Bug reports were already opened for python-manilaclient and
python-
An exception throughout all the clients is the `--version` argument,
which works as expected.
Steps to reproduce
==================
* I ran any of the affected clients without using a subcommand while
passing an optional argument
Some commands in which the bug occurs:
$ glance --os-project-id 123
$ nova --os-user-id 123
Expected result
===============
The clients should print a help message.
Actual result
=============
The clients print a raw Python error message.
'Namespace' object has no attribute 'func'
or
ERROR (AttributeError): 'Namespace' object has no attribute 'func'
Environment
===========
DevStack, running:
- python-glanceclient 3.2.2
- python-manilaclient 2.4.0
- python-novaclient 17.2.1
- python-cinderclient 7.2.0
Logs & Configs
==============
Some debug logs and already proposed fixes:
- python-glanceclient log: http://
- python-novaclient log: http://
- python-cinderclient fix: https:/
- python-manilaclient fix: https:/
no longer affects: | python-manilaclient |
Changed in python-novaclient: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Takashi Natsume (natsume-takashi) |
status: | Confirmed → In Progress |
Changed in python-glanceclient: | |
assignee: | nobody → Mridula Joshi (mrjoshi) |
Fix proposed to branch: master in python-novaclient /review. opendev. org/769082
Review: https:/