diff options
author | Devananda van der Veen <devananda.vdv@gmail.com> | 2013-02-21 13:56:25 -0800 |
---|---|---|
committer | Devananda van der Veen <devananda.vdv@gmail.com> | 2013-02-22 07:20:38 -0800 |
commit | 3aace2a610d8b5e7027ef141970e23cddba0294d (patch) | |
tree | 461f32463e3a5836938bcc331debc1c700ddcdf0 /nova/utils.py | |
parent | fc4ede9bb69896992e5fafc2623f1083cc8d19cd (diff) | |
download | nova-3aace2a610d8b5e7027ef141970e23cddba0294d.tar.gz nova-3aace2a610d8b5e7027ef141970e23cddba0294d.tar.xz nova-3aace2a610d8b5e7027ef141970e23cddba0294d.zip |
Fix exception handling in baremetal API.
In patch ab9f8667c63d901f37d1662c5204fb2938be44fe, several
baremetal/db/api methods' exceptions were changed from InstanceNotFound
to NodeNotFound. The API extension for baremetal was not updated to
catch these, and this was not caught by unit testing. This resulted in
unhandled exceptions within nova-api if any baremetal node lacked an
associated interface.
While fixing that bug, a few other unit tests for the baremetal API
were added, and a missing exception was added to db/api bm_node_destroy.
Fixes bug 1131430.
Change-Id: I15f7624723754f9d7b217b609663a2d709acb056
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions