Merge "Bump minimum required libvirt/qemu versions for Pike"
This commit is contained in:
commit
082885fb72
@ -102,7 +102,7 @@ class NUMAServersTest(ServersTestBase):
|
|||||||
|
|
||||||
def _get_connection(self, host_info):
|
def _get_connection(self, host_info):
|
||||||
fake_connection = fakelibvirt.Connection('qemu:///system',
|
fake_connection = fakelibvirt.Connection('qemu:///system',
|
||||||
version=1002007,
|
version=1002009,
|
||||||
hv_version=2001000,
|
hv_version=2001000,
|
||||||
host_info=host_info)
|
host_info=host_info)
|
||||||
return fake_connection
|
return fake_connection
|
||||||
|
@ -85,7 +85,7 @@ class SRIOVServersTest(ServersTestBase):
|
|||||||
|
|
||||||
def _get_connection(self, host_info, pci_info):
|
def _get_connection(self, host_info, pci_info):
|
||||||
fake_connection = fakelibvirt.Connection('qemu:///system',
|
fake_connection = fakelibvirt.Connection('qemu:///system',
|
||||||
version=1002007,
|
version=1002009,
|
||||||
hv_version=2001000,
|
hv_version=2001000,
|
||||||
host_info=host_info,
|
host_info=host_info,
|
||||||
pci_info=pci_info)
|
pci_info=pci_info)
|
||||||
|
@ -73,7 +73,7 @@ class RealTimeServersTest(ServersTestBase):
|
|||||||
cpu_cores=2, cpu_threads=2,
|
cpu_cores=2, cpu_threads=2,
|
||||||
kB_mem=15740000)
|
kB_mem=15740000)
|
||||||
fake_connection = fakelibvirt.Connection('qemu:///system',
|
fake_connection = fakelibvirt.Connection('qemu:///system',
|
||||||
version=1002007,
|
version=1002009,
|
||||||
hv_version=2001000,
|
hv_version=2001000,
|
||||||
host_info=host_info)
|
host_info=host_info)
|
||||||
with mock.patch('nova.virt.libvirt.host.Host.get_connection',
|
with mock.patch('nova.virt.libvirt.host.Host.get_connection',
|
||||||
|
@ -155,9 +155,9 @@ VIR_SECRET_USAGE_TYPE_CEPH = 2
|
|||||||
VIR_SECRET_USAGE_TYPE_ISCSI = 3
|
VIR_SECRET_USAGE_TYPE_ISCSI = 3
|
||||||
|
|
||||||
# Libvirt version to match MIN_LIBVIRT_VERSION in driver.py
|
# Libvirt version to match MIN_LIBVIRT_VERSION in driver.py
|
||||||
FAKE_LIBVIRT_VERSION = 1002001
|
FAKE_LIBVIRT_VERSION = 1002009
|
||||||
# Libvirt version to match MIN_QEMU_VERSION in driver.py
|
# Libvirt version to match MIN_QEMU_VERSION in driver.py
|
||||||
FAKE_QEMU_VERSION = 1005003
|
FAKE_QEMU_VERSION = 2001000
|
||||||
|
|
||||||
PF_CAP_TYPE = 'virt_functions'
|
PF_CAP_TYPE = 'virt_functions'
|
||||||
VF_CAP_TYPE = 'phys_function'
|
VF_CAP_TYPE = 'phys_function'
|
||||||
|
@ -2051,9 +2051,12 @@ class LibvirtConnTestCase(test.NoDBTestCase):
|
|||||||
return_value=caps),
|
return_value=caps),
|
||||||
mock.patch.object(
|
mock.patch.object(
|
||||||
hardware, 'get_vcpu_pin_set', return_value=set([3])),
|
hardware, 'get_vcpu_pin_set', return_value=set([3])),
|
||||||
mock.patch.object(random, 'choice')
|
mock.patch.object(random, 'choice'),
|
||||||
|
mock.patch.object(drvr, '_has_numa_support',
|
||||||
|
return_value=False)
|
||||||
) as (get_host_cap_mock,
|
) as (get_host_cap_mock,
|
||||||
get_vcpu_pin_set_mock, choice_mock):
|
get_vcpu_pin_set_mock, choice_mock,
|
||||||
|
_has_numa_support_mock):
|
||||||
cfg = drvr._get_guest_config(instance_ref, [],
|
cfg = drvr._get_guest_config(instance_ref, [],
|
||||||
image_meta, disk_info)
|
image_meta, disk_info)
|
||||||
self.assertFalse(choice_mock.called)
|
self.assertFalse(choice_mock.called)
|
||||||
@ -2225,9 +2228,12 @@ class LibvirtConnTestCase(test.NoDBTestCase):
|
|||||||
hardware, 'get_vcpu_pin_set', return_value=set([3])),
|
hardware, 'get_vcpu_pin_set', return_value=set([3])),
|
||||||
mock.patch.object(random, 'choice'),
|
mock.patch.object(random, 'choice'),
|
||||||
mock.patch.object(pci_manager, "get_instance_pci_devs",
|
mock.patch.object(pci_manager, "get_instance_pci_devs",
|
||||||
return_value=[pci_device, pci_device2])
|
return_value=[pci_device, pci_device2]),
|
||||||
|
mock.patch.object(conn, '_has_numa_support',
|
||||||
|
return_value=False)
|
||||||
) as (get_host_cap_mock,
|
) as (get_host_cap_mock,
|
||||||
get_vcpu_pin_set_mock, choice_mock, pci_mock):
|
get_vcpu_pin_set_mock, choice_mock, pci_mock,
|
||||||
|
_has_numa_support_mock):
|
||||||
cfg = conn._get_guest_config(instance_ref, [],
|
cfg = conn._get_guest_config(instance_ref, [],
|
||||||
image_meta, disk_info)
|
image_meta, disk_info)
|
||||||
self.assertFalse(choice_mock.called)
|
self.assertFalse(choice_mock.called)
|
||||||
|
@ -197,15 +197,15 @@ patch_tpool_proxy()
|
|||||||
# versions. Over time, this will become a common min version
|
# versions. Over time, this will become a common min version
|
||||||
# for all architectures/hypervisors, as this value rises to
|
# for all architectures/hypervisors, as this value rises to
|
||||||
# meet them.
|
# meet them.
|
||||||
MIN_LIBVIRT_VERSION = (1, 2, 1)
|
MIN_LIBVIRT_VERSION = (1, 2, 9)
|
||||||
MIN_QEMU_VERSION = (1, 5, 3)
|
MIN_QEMU_VERSION = (2, 1, 0)
|
||||||
# TODO(berrange): Re-evaluate this at start of each release cycle
|
# TODO(berrange): Re-evaluate this at start of each release cycle
|
||||||
# to decide if we want to plan a future min version bump.
|
# to decide if we want to plan a future min version bump.
|
||||||
# MIN_LIBVIRT_VERSION can be updated to match this after
|
# MIN_LIBVIRT_VERSION can be updated to match this after
|
||||||
# NEXT_MIN_LIBVIRT_VERSION has been at a higher value for
|
# NEXT_MIN_LIBVIRT_VERSION has been at a higher value for
|
||||||
# one cycle
|
# one cycle
|
||||||
NEXT_MIN_LIBVIRT_VERSION = (1, 2, 9)
|
NEXT_MIN_LIBVIRT_VERSION = (1, 3, 1)
|
||||||
NEXT_MIN_QEMU_VERSION = (2, 1, 0)
|
NEXT_MIN_QEMU_VERSION = (2, 5, 0)
|
||||||
|
|
||||||
# When the above version matches/exceeds this version
|
# When the above version matches/exceeds this version
|
||||||
# delete it & corresponding code using it
|
# delete it & corresponding code using it
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The minimum required version of libvirt used by the `nova-compute` service
|
||||||
|
is now 1.2.9. The minimum required version of QEMU used by the
|
||||||
|
`nova-compute` service is now 2.1.0. Failing to meet these minimum versions
|
||||||
|
when using the libvirt compute driver will result in the `nova-compute`
|
||||||
|
service not starting.
|
Loading…
x
Reference in New Issue
Block a user