stack crashes with AttributeError on e.reason if the server returns an error
Bug #897054 reported by
Ewan Mellor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Ewan Mellor |
Bug Description
If the direct API throws an exception, this shows up in the 'stack' CLI tool as an HTTPError. This is no longer being caught though, because some idiot (Bug #884018) put a URLError handler above the HTTPError handler, but HTTPError is a subclass of URLError, so the HTTPError handler is no longer reached.
Instead, you get an AttributeError on e.reason, because HTTPError does not have a reason field. (This itself is a Python bug: http://
Changed in nova: | |
milestone: | none → essex-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-2 → 2012.1 |
To post a comment you must log in.
https:/ /review. openstack. org/1914