Compute: Catch binding failed exception while init host
While compute starts it will init all instances,
if an exception is raised from one instance
(e.g NovaException during plug_vifs), then the
compute process exits unexpectedly because of
this unhandled exception.
This commit changes the NovaException to more
appropriate VirtualInterfacePlugException and
catches it during init host, as well as the
instance is set to error state, with this change
the compute process can be started normally even
if this VirtualInterfacePlugException is raised.
Reviewed: https:/ /review. openstack. org/160541 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e9cf07b96f5 7fed0d9f46bd8f2 4aac491b6cb976
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit e9cf07b96f57fed 0d9f46bd8f24aac 491b6cb976
Author: Wangpan <email address hidden>
Date: Thu Nov 13 06:10:40 2014 +0000
Compute: Catch binding failed exception while init host
While compute starts it will init all instances, ePlugException and ePlugException is raised.
if an exception is raised from one instance
(e.g NovaException during plug_vifs), then the
compute process exits unexpectedly because of
this unhandled exception.
This commit changes the NovaException to more
appropriate VirtualInterfac
catches it during init host, as well as the
instance is set to error state, with this change
the compute process can be started normally even
if this VirtualInterfac
Closes-bug: #1324041
Conflicts: tests/unit/ compute/ test_compute_ mgr.py virt/ironic/ driver. py virt/libvirt/ vif.py
nova/
nova/
nova/
Change-Id: Ia584dba66affb8 6787e3069df19bd 17b89cb5c49 20b840763b271a4 97b66ad5a5)
(cherry picked from commit 16ac50b1e760b7d