build_and_run_instance can error out with an UnboundException
Bug #1854848 reported by
Erik Olof Gunnar Andersson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
XiaojueGuan |
Bug Description
If for some reason eventlet throws a timeout during a build event on the compute a eventlet.Timeout exception might be thrown and cause an UnboundException. This is because we only catch Exception, but Timeout is based on BaseException.
https:/
Changed in nova: | |
assignee: | nobody → XiaojueGuan (xiaojuegaun) |
To post a comment you must log in.
Rather than change https:/ /github. com/openstack/ nova/blob/ 7babcdfd1d440c4 84d49d45ffe4f81 264cdc4f73/ nova/compute/ manager. py#L2075 to catch BaseException I would probably just have it also catch eventlet.Timeout and/or initialize the result variable before the try/except/finally block.