nova/nova/tests/virt
Ken'ichi Ohmichi 6484fc6f0f Fix bug with not implemented virConnect.registerCloseCallback
The unit test test_connection_to_primitive fails many times due to
"virConnect instance has no attribute 'registerCloseCallback'".

registerCloseCallback has been added since original(community's)
python-libvirt v1.0.0, and v1.2.0 also contains the method.
However ubuntu cloud's v1.0.1 does not contain the method, and current
version check of python-libvirt does not work.
This patch tries to operate the method and catch TypeError exception if
the method does not exist instead of the version check.

Conflicts:
        nova/tests/virt/libvirt/test_libvirt.py

NOTE(mriedem): The conflict is due to set_host_enabled
calls which aren't in stable/havana.

Co-Authored-By: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Closes-Bug: #1266711
Change-Id: I4ec9ff9a684639ae5b146f400c90115c83afcda7
(cherry picked from commit 85068cc9f6)
2014-08-06 14:12:05 -07:00
..
baremetal Baremetal: Be more patient with IPMI and BMC 2013-10-10 10:20:11 -04:00
disk Convert TestCases to NoDBTestCase 2013-09-19 19:53:04 +10:00
docker plug_vif raise NotImplementedError instead of pass 2014-03-27 14:19:32 -06:00
hyperv Fixes the Hyper-V agent individual disk metrics 2014-07-31 12:53:56 +00:00
libvirt Fix bug with not implemented virConnect.registerCloseCallback 2014-08-06 14:12:05 -07:00
powervm plug_vif raise NotImplementedError instead of pass 2014-03-27 14:19:32 -06:00
vmwareapi VMware: ensure rescue instance is deleted when instance is deleted 2014-04-23 01:03:12 -07:00
xenapi XenAPI: Add versioning for plugins 2013-10-10 10:20:53 -04:00
__init__.py refactor: extract method: connect_volume 2012-11-20 08:30:19 +00:00
test_block_device.py Convert TestCases to NoDBTestCase 2013-09-21 06:58:31 +10:00
test_driver.py Convert TestCases to NoDBTestCase 2013-09-21 06:58:31 +10:00
test_images.py Convert TestCases to NoDBTestCase 2013-09-21 06:58:31 +10:00
test_virt.py Fix for qemu-nbd hang 2014-04-14 17:26:03 +02:00
test_virt_disk.py Fail quickly if file injection for boot volume 2013-10-29 19:40:25 -07:00
test_virt_disk_vfs_guestfs.py Convert TestCases to NoDBTestCase 2013-09-21 06:58:31 +10:00
test_virt_disk_vfs_localfs.py Convert TestCases to NoDBTestCase 2013-09-21 06:58:31 +10:00
test_virt_drivers.py Save connection info in libvirt after volume connect 2014-06-10 12:09:31 -07:00