commit 4b6df96adec23ba90fd6277d88d7edd6c514fe73
Author: Matt Riedemann <email address hidden>
Date: Fri Dec 6 10:39:34 2013 -0800
libvirt: add a test to guard against set_host_enabled raising an error
Commit cc70e3a adds a finally block to _get_new_connection to
automatically disable the host if making a connection to libvirt fails.
The set_host_enabled method currently swallows all exceptions which is
good so it doesn't mask the original libvirt failure in
_get_new_connection, but we need to have a test that makes sure that
isn't unintentionally regressed. This patch adds the test.
Reviewed: https:/ /review. openstack. org/60584 github. com/openstack/ nova/commit/ 4b6df96adec23ba 90fd6277d88d7ed d6c514fe73
Committed: http://
Submitter: Jenkins
Branch: master
commit 4b6df96adec23ba 90fd6277d88d7ed d6c514fe73
Author: Matt Riedemann <email address hidden>
Date: Fri Dec 6 10:39:34 2013 -0800
libvirt: add a test to guard against set_host_enabled raising an error
Commit cc70e3a adds a finally block to _get_new_connection to
automatically disable the host if making a connection to libvirt fails.
The set_host_enabled method currently swallows all exceptions which is new_connection, but we need to have a test that makes sure that
good so it doesn't mask the original libvirt failure in
_get_
isn't unintentionally regressed. This patch adds the test.
Related-Bug: #1257644
Change-Id: I4beec053794edc 75ef2d0060a0528 5f7ed0b99ac