ports/emulators/py-nova/files/04-xen-phy.patch
Roman Bogorodskiy b7e05e4ed3 Add emulators/py-nova 14.0.2, Openstack Compute Service
Please note that this is a development version of nova.
Many features are not available.

Currently nova works on FreeBSD 11 and supports QEMU and Xen.

Common issues:
- Security groups are not implemented
- ARP spoofing, DHCP isolation protection are not implemented
- Nova services work from the root user
- No IPv6 support

QEMU issues:
- Need to enable serialconsole (TCP)
- Need to disable online CPU tracking
- Cannot mount cinder volumes

Xen issues:
- Live snapshots don't work
- No support for cinder volume hot-plugging
- XENBUS delay (5 min) when using qemu driver and COW images
- Some Linux images cannot be booted

For further FreeBSD specific notes please refer to port's pkg-message.

PR:		215151
Submitted by:	Alexander Nusov (alexander.nusov@nfvexpress.com)
2016-12-18 06:30:58 +00:00

42 lines
1.3 KiB
Diff

From b4e9024ac90ed0eaf155bc24ef7ee3b01112366e Mon Sep 17 00:00:00 2001
From: Alexander Nusov <alexander.nusov@nfvexpress.com>
Date: Tue, 15 Nov 2016 13:08:49 +0300
Subject: [PATCH] foce xen phy option
---
nova/conf/libvirt.py | 3 +++
nova/virt/libvirt/utils.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/nova/conf/libvirt.py b/nova/conf/libvirt.py
index bfb278e..2eba080 100644
--- a/nova/conf/libvirt.py
+++ b/nova/conf/libvirt.py
@@ -498,6 +498,9 @@ libvirt_imagebackend_opts = [
help='Discard option for nova managed disks. Need'
' Libvirt(1.0.6) Qemu1.5 (raw format) Qemu1.6(qcow2'
' format)'),
+ cfg.BoolOpt('force_xen_phy',
+ default=False,
+ help='Force using of PHY driver in Xen'),
]
libvirt_imagecache_opts = [
diff --git a/nova/virt/libvirt/utils.py b/nova/virt/libvirt/utils.py
index f0a4796..ff68d45 100644
--- a/nova/virt/libvirt/utils.py
+++ b/nova/virt/libvirt/utils.py
@@ -112,7 +112,7 @@ def pick_disk_driver_name(hypervisor_version, is_block_dev=False):
:returns: driver_name or None
"""
if CONF.libvirt.virt_type == "xen":
- if is_block_dev:
+ if is_block_dev or CONF.libvirt.force_xen_phy:
return "phy"
else:
# 4002000 == 4.2.0
--
2.8.1