nova/nova/tests/unit/virt/libvirt
Matt Riedemann a41d265a19 libvirt: conditionally set script path for ethernet vif types
Change I4f97c05e2dec610af22a5150dd27696e1d767896 worked around
a change introduced in libvirt 1.3.3 where the script path on
a LibvirtConfigGuestInterface could not be the emptry string
because libvirt would literally take that as the path and couldn't
resolve it, when in fact it used to indicate to libvirt that the
script path is a noop. This has been fixed in libvirt 3.1.

On Ubuntu with libvirt<1.3.3, if the script path is None then
it defaults to /etc/qemu-ifup which is blocked by AppArmor.

So this change adds a conditional check when setting the script
path value based on the libvirt version so we can straddle releases.

Change-Id: I192c61b93bd3736fdfe16b6a6906d58997d3eef9
Closes-Bug: #1665698
Related-Bug: #1649527
2017-03-21 14:12:39 -04:00
..
storage Port libvirt.storage.test_rbd to Python 3 2016-12-15 13:38:53 +00:00
volume libvirt: drop MIN_QEMU_DISCARD_VERSION 2017-02-11 20:30:31 -05:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_imagebackend.py [3/3]Replace six.iteritems() with .items() 2017-02-09 23:09:38 +08:00
fake_libvirt_utils.py libvirt: ephemeral disk support for virtuozzo containers 2017-01-26 14:19:08 +03:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Bump minimum required libvirt/qemu versions for Pike 2017-02-11 20:30:25 -05:00
test_blockinfo.py Merge "Fix root_device_name for Xen" 2017-01-31 18:56:46 +00:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py libvirt: Use the mirror element to detect job completion 2017-01-25 11:35:47 +00:00
test_designer.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 14:12:39 -04:00
test_driver.py Merge "Use proper user and tenant in the owner section of libvirt.xml." 2017-03-15 19:17:51 +00:00
test_fakelibvirt.py Enable global hacking checks and removed local checks 2017-02-10 15:09:37 +01:00
test_firewall.py Port libvirt.test_firewall to Python 3 2017-01-05 10:26:19 +00:00
test_guest.py Merge "libvirt: fix nova can't delete the instance with nvram" 2017-02-01 16:36:10 +00:00
test_host.py Merge "Avoid multiple initializations of Host class" 2017-02-25 14:54:01 +00:00
test_imagebackend.py Remove mox from unit/virt/libvirt/test_imagebackend.py (end) 2017-02-03 15:34:24 +07:00
test_imagecache.py conf: Remove config option compute_ manager 2016-12-08 20:05:52 +08:00
test_migration.py Change exponential function to linear 2017-01-26 15:24:20 +00:00
test_utils.py Use flake8-import-order 2017-03-06 06:50:23 -08:00
test_vif.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 14:12:39 -04:00