Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Rocky
openstack-nova
0001-Always-set-model-netfront-for-xen-over-lib...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Always-set-model-netfront-for-xen-over-libvirt.patch of Package openstack-nova
From ce1c9b774e05ec10beab50c78edf374a6fd9b075 Mon Sep 17 00:00:00 2001 From: Tomasz Paszkowski <tpaszkowski@suse.com> Date: Wed, 17 Jul 2013 15:47:46 +0200 Subject: [PATCH] Always set model = 'netfront' for xen over libvirt. This will prevent emulated network driver to be attached to virtual machine. Emulated network driver is not working for xen over libvirt as tap interface name is suffixed by xen with '-emu' which makes this interface name too long. Additionaly security groups will also not work for this interface as openstack is setting up filters on interface without -emu suffix. Change-Id: I0907ce148e473edf6b81ea782fac2fa6a1b71a2d Fixes: bug #1202199 --- nova/tests/virt/libvirt/test_libvirt_vif.py | 2 +- nova/virt/libvirt/vif.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) Index: nova-18.2.3.dev2/nova/virt/libvirt/vif.py =================================================================== --- nova-18.2.3.dev2.orig/nova/virt/libvirt/vif.py +++ nova-18.2.3.dev2/nova/virt/libvirt/vif.py @@ -137,6 +137,13 @@ class LibvirtGenericVIFDriver(object): conf, mac, model, driver, vhost_queues, rx_queue_size) return conf + # For xen over libvirt we need to always use PV network + # drives as emulated ones will not work (xen suffixes them + # with -emu which makes interface name too long). Additionaly + # security groups will also not work for -emu suffixed interfaces. + if CONF.libvirt.virt_type == "xen": + model = "netfront" + # If the user has specified a 'vif_model' against the # image then honour that model if image_meta:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor