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/160527 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b904b0b2942 11a0875ee271413 7772f5ad4012c0
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit b904b0b294211a0 875ee2714137772 f5ad4012c0
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
nova/
Change-Id: Ia584dba66affb8 6787e3069df19bd 17b89cb5c49 20b840763b271a4 97b66ad5a5)
(cherry picked from commit 16ac50b1e760b7d