libvirt: cleanup() serial_consoles after instance failure
When nova cleanup() is called to release all resources related to an instance
it can thow InstanceNotFound. Which is not caught and therefore returned to
the user.
This is because the generator function (_get_serial_ports_from_instance)
is not *executed* under try/except. While that is clearly the intent of the
code.
Reviewed: https:/ /review. openstack. org/208268 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d365c087aee 56af2617700f55f 4ff7a01c116da6
Committed: https:/
Submitter: Jenkins
Branch: master
commit d365c087aee56af 2617700f55f4ff7 a01c116da6
Author: lyanchih <email address hidden>
Date: Mon Aug 3 02:16:38 2015 +0000
libvirt: cleanup() serial_consoles after instance failure
When nova cleanup() is called to release all resources related to an instance
it can thow InstanceNotFound. Which is not caught and therefore returned to
the user.
This is because the generator function (_get_serial_ ports_from_ instance)
is not *executed* under try/except. While that is clearly the intent of the
code.
Change-Id: I9e9410ab7eec5f a667c0c3de4548c 49df050c167
Closes-Bug: 1480514