nova/nova/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 Fix for qemu-nbd hang 2014-04-14 17:26:03 +02: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 Add context as parameter for resume 2013-12-04 07:29:10 +08:00
__init__.py In preparation for XenAPI support, refactor the interface between 2010-07-18 18:15:12 +01:00
block_device.py Allow block devices without device_name 2013-09-05 10:01:59 +02:00
configdrive.py Fixes ConfigDrive bug on Windows 2014-07-31 12:49:39 +00:00
driver.py Add context as parameter for resume 2013-12-04 07:29:10 +08:00
event.py Fix and enable H403 tests 2013-06-12 22:07:23 +02:00
fake.py Add context as parameter for resume 2013-12-04 07:29:10 +08:00
firewall.py Refresh network info cache for secgroups 2013-09-04 17:58:30 -07:00
images.py ensure we don't boot oversized images 2013-10-31 17:03:08 +01:00
interfaces.template Port Cheetah templates to Jinja2 2013-09-02 16:03:34 +02:00
netutils.py Fix network info injection in pure IPv6 environment 2013-09-17 13:28:40 +00:00
storage_users.py Correct lock path for storage-registry-lock 2013-09-24 18:16:15 -07:00
virtapi.py Enable libvirt driver to use the new BDM format 2013-09-05 10:02:00 +02:00