magnum cmd should print more graceful error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Ma Wen Cheng |
Bug Description
run magnum command with unreasonable parameters, it will print some error tracback message to the screen which is not needed.
we can only print these message in debug mode.
ubuntu@ubuntu14:~$ magnum baymodel-show 111
ERROR: Baymodel 111 could not be found.
Traceback (most recent call last):
File "/opt/stack/
return getattr(target, method)(context, *args, **kwargs)
File "/usr/local/
result = fn(cls, context, *args, **kwargs)
File "/opt/stack/
db_baymodel = cls.dbapi.
File "/opt/stack/
raise exception.
BayModelNotFound: Baymodel 111 could not be found.
(HTTP 404)
it should be like the following, looks better
ubuntu@ubuntu14:~$ nova show 111
ERROR (CommandError): No server with a name or ID of '111' exists.
Changed in magnum: | |
assignee: | nobody → Ma Wen Cheng (mars914) |
Changed in magnum: | |
milestone: | none → mitaka-1 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/237844
Review: https:/