Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1444368 - openvswitch firewall driver doesn't work properly when two ports on different network on the same compute node have the same mac address
openvswitch firewall driver doesn't work properly when two ports on different...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron (Show other bugs)
12.0 (Pike)
Unspecified Unspecified
high Severity high
: beta
: 12.0 (Pike)
Assigned To: Jakub Libosvar
Roee Agiman
: Triaged
Depends On:
Blocks: 1385338 1452467
  Show dependency treegraph
 
Reported: 2017-04-21 04:58 EDT by Jakub Libosvar
Modified: 2018-02-05 14:07 EST (History)
11 users (show)

See Also:
Fixed In Version: openstack-neutron-11.0.0-0.20170821141644.3441b3f.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-13 16:23:38 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1626010 None None None 2017-04-21 04:58 EDT
OpenStack gerrit 385085 None None None 2017-04-21 04:58 EDT
Red Hat Product Errata RHEA-2017:3462 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-15 20:43:25 EST

  None (edit)
Description Jakub Libosvar 2017-04-21 04:58:03 EDT
Description of problem:
It seems we have a case where the openvswitch firewall driver and a use of trunks interferes with each other. I tried using the parent's MAC address for a subport. Like this:

 openstack network create net0
 openstack network create net1
 openstack subnet create --network net0 --subnet-range 10.0.4.0/24 subnet0
 openstack subnet create --network net1 --subnet-range 10.0.5.0/24 subnet1
 openstack port create --network net0 port0
 parent_mac="$( openstack port show port0 | awk '/ mac_address / { print $4 }' )"
 openstack port create --network net1 --mac-address "$parent_mac" port1
 openstack network trunk create --parent-port port0 --subport port=port1,segmentation-type=vlan,segmentation-id=101 trunk0
 openstack server create --flavor cirros256 --image cirros-0.3.4-x86_64-uec --nic port-id=port0 --key-name key0 --wait vm0

Then all packets are lost on the trunk's parent port:

 $ openstack server show vm0 | egrep addresses.*net0
 | addresses | net0=10.0.4.6 |
 $ sudo ip netns exec "qdhcp-$( openstack network show net0 | awk '/ id / { print $4 }' )" ping -c3 10.0.4.6
 WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
 PING 10.0.4.6 (10.0.4.6) 56(84) bytes of data.

 --- 10.0.4.6 ping statistics ---
 3 packets transmitted, 0 received, 100% packet loss, time 2016ms

If I change the firewall_driver to noop and redo the same I have connectivity.

If I still have the openvswitch firewall_driver but I don't explicitly set the subport MAC, but let neutron automatically assign one, then again I have connectivity.

Version-Release number of selected component (if applicable):
Pike

How reproducible:
100%

Steps to Reproduce:
1. Described in description
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 Assaf Muller 2017-07-07 15:23:29 EDT
The fix was approved upstream but CI never merged for some reason... I just rechecked the patch so that it has the chance to be merged. It should be available in the next downstream OSP 12 puddle.
Comment 4 Alexander Stafeyev 2017-10-15 09:59:30 EDT
Hi Kuba, 

SHould we add icmp allow to the SG in reproduction steps ? 

tnx
Comment 7 Jakub Libosvar 2017-10-16 03:56:14 EDT
(In reply to Alexander Stafeyev from comment #4)
> Hi Kuba, 
> 
> SHould we add icmp allow to the SG in reproduction steps ? 
> 
> tnx

Yes
Comment 13 Roee Agiman 2017-10-16 07:27:54 EDT
Verified
[stack@undercloud-0 ~]$ rpm -qa | grep openstack-neu
openstack-neutron-11.0.1-0.20170831212231.d6f8c44.el7ost.noarch
Comment 16 errata-xmlrpc 2017-12-13 16:23:38 EST
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://access.redhat.com/errata/RHEA-2017:3462

Note You need to log in before you can comment on or make changes to this bug.