novatools should handle exceptions more cleanly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
High
|
Unassigned |
Bug Description
For example, when exceeding a quota I get this stacktrace:
$ novatools boot win102 --image 4 --flavor 3
Traceback (most recent call last):
File "/usr/local/
File "/usr/local/
File "/usr/local/
File "/usr/local/
metadata, files)
File "/usr/local/
return self._create(
File "/usr/local/
resp, body = self.api.
File "/usr/local/
return self._cs_
File "/usr/local/
**kwargs)
File "/usr/local/
raise exceptions.
novatools.
The tool should probably handle any exception due to interacting with the API and print a clean error message to the user. The message from the exception would probably be good.
affects: | nova → python-novaclient |
OpenStack Exceptions were not being correctly caught. Now they only get passed to the os when --debug is supplied. Otherwise, the short-form error message is displayed.