Bug 1289136

Summary: launch a vm with macvtap port is not working with kernel < 3.13
Product: Red Hat OpenStack Reporter: Brent Eagles <beagles>
Component: openstack-neutronAssignee: Hynek Mlnarik <hmlnarik>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: amichayp, amuller, chrisw, ekuris, hmlnarik, mlopes, moshele, nyechiel, srevivo, tfreger
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-2015.1.4-4.el7ost Doc Type: Bug Fix
Doc Text:
When you create a MacVTap passthrough to SR-IOV VF in Kernel >= 3.13 an `upper_macvtap` symbolic link is created. Previously, for kernel versions < 3.13 the only way to detect the link was by parsing the `ip link show` output. As a result, the MacVTap-assigned VF was not detected on kernel versions < 3.13. With this update, the `ip link show` command now detects MacVTap-assigned VFs, and detection of MacVTap-assigned VFs will work on all kernels.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-05 19:15:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brent Eagles 2015-12-07 14:10:16 UTC
Cloned from launchpad bug 1523083.

Description:

the sriov agent check if vf is assigned to macvtap by the exists of upper_macvtap symbolic

https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py#L85-L86

The upper_macvtap symbolic exists only in kernel 3.13 and above
see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/macvlan.c?id=5831d66e8097aedfa3bc35941cf265ada2352317
"net: create sysfs symlinks for neighbour devices".

This is a problem when using rhel 7.1 which comes with kernel 3.10

Specification URL (additional information):

https://bugs.launchpad.net/neutron/+bug/1523083

Comment 2 Brent Eagles 2015-12-08 20:26:48 UTC
Undoing mistaken version change. This does first occur in OSP 7 (kilo).

Comment 4 Eran Kuris 2016-10-05 06:15:33 UTC
verified on rhos 7 
 [root@compute1 ~]# rpm -qa |grep neutron 
openstack-neutron-openvswitch-2015.1.4-4.el7ost.noarch
openstack-neutron-2015.1.4-4.el7ost.noarch
python-neutronclient-2.4.0-2.el7ost.noarch
openstack-neutron-common-2015.1.4-4.el7ost.noarch
openstack-neutron-lbaas-2015.1.4-1.el7ost.noarch
python-neutron-fwaas-2015.1.2-1.el7ost.noarch
openstack-neutron-fwaas-2015.1.2-1.el7ost.noarch
python-neutron-2015.1.4-4.el7ost.noarch
python-neutron-lbaas-2015.1.4-1.el7ost.noarch

Comment 6 errata-xmlrpc 2016-10-05 19:15:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2029.html