The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1699350 - [RFE] Support binding a logical port based on the GARP from the VIF
Summary: [RFE] Support binding a logical port based on the GARP from the VIF
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: OVN
Version: FDP 19.C
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Numan Siddique
QA Contact: haidong li
URL:
Whiteboard:
Depends On:
Blocks: 1740094
TreeView+ depends on / blocked
 
Reported: 2019-04-12 13:47 UTC by Numan Siddique
Modified: 2023-12-15 16:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1740094 (view as bug list)
Environment:
Last Closed: 2019-10-01 07:21:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2943 0 None None None 2019-10-01 07:21:53 UTC

Description Numan Siddique 2019-04-12 13:47:33 UTC
Description of problem:
Suppose if there is a logical port - lport1 with [MAC, IP] configured but it is not bound to any chassis (because there is no corresponding ovs port created in any chassis) and if any VIF sends a GARP with the MAC of lport1, then ovn-controller on that chassis should bind this logical port.

Please see the BZ - https://bugzilla.redhat.com/show_bug.cgi?id=1649334 about the use case in Openstack networking-ovn with octavia.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Numan Siddique 2019-07-26 13:57:21 UTC
Patches are up for review - https://patchwork.ozlabs.org/patch/1133755/

Comment 4 haidong li 2019-09-17 07:55:29 UTC
Verified on the latest version:

ovn2.11-central-2.11.0-36.el7fdp.x86_64
ovn2.11-2.11.0-36.el7fdp.x86_64
ovn2.11-host-2.11.0-36.el7fdp.x86_64
openvswitch-selinux-extra-policy-1.0-13.el7fdp.noarch
openvswitch2.11-2.11.0-21.el7fdp.x86_64

[root@dell-per730-57 ovn]# 

[root@dell-per730-19 ovn]# ovn-nbctl ls-list
06bab679-3eff-4844-86f7-5d0f165e969a (public)
ee6ae08a-562e-4975-8c66-b0fa9438d162 (s2)
08c04495-78dc-41c1-951a-2d1ec99ce6cd (s3)
[root@dell-per730-19 ovn]# ovn-nbctl lsp-add s2 s2-vir
[root@dell-per730-19 ovn]# ovn-nbctl lsp-set-addresses sw0-vir "50:54:00:00:00:10 172.16.102.99
> ^C
[root@dell-per730-19 ovn]# ovn-nbctl lsp-set-addresses sw0-vir "50:54:00:00:00:10 172.16.102.99"
ovn-nbctl: sw0-vir: port name not found
[root@dell-per730-19 ovn]# ovn-nbctl lsp-set-addresses s2-vir "50:54:00:00:00:10 172.16.102.99"
[root@dell-per730-19 ovn]# ovn-nbctl lsp-set-type s2-vir virtual
[root@dell-per730-19 ovn]# ovn-nbctl set logical_switch_port s2-vir options:virtual-ip=172.16.102.99
[root@dell-per730-19 ovn]# ovn-nbctl set logical_switch_port s2-vir options:virtual-parents=hv1_vm00_vnet1,hv1_vm01_vnet1
[root@dell-per730-19 ovn]# ovn-nbctl show
switch 06bab679-3eff-4844-86f7-5d0f165e969a (public)
    port public_r1
        type: router
        router-port: r1_public
    port ln_p1
        type: localnet
        addresses: ["unknown"]
switch 08c04495-78dc-41c1-951a-2d1ec99ce6cd (s3)
    port hv0_vm01_vnet1
        addresses: ["00:de:ad:00:01:01 172.16.103.12"]
    port s3_r1
        type: router
        addresses: ["00:de:ad:ff:01:03 172.16.103.1"]
        router-port: r1_s3
    port hv0_vm00_vnet1
        addresses: ["00:de:ad:00:00:01 172.16.103.11"]
switch ee6ae08a-562e-4975-8c66-b0fa9438d162 (s2)
    port s2_r1
        type: router
        addresses: ["00:de:ad:ff:01:02 172.16.102.1"]
        router-port: r1_s2
    port s2-vir
        type: virtual
        addresses: ["50:54:00:00:00:10 172.16.102.99"]
    port hv1_vm01_vnet1
        addresses: ["00:de:ad:01:01:01 172.16.102.12"]
    port hv1_vm00_vnet1
        addresses: ["00:de:ad:01:00:01 172.16.102.11"]
router c854b5d2-8889-4292-a73f-6ec9f9840136 (r1)
    port r1_s2
        mac: "00:de:ad:ff:01:02"
        networks: ["172.16.102.1/24"]
    port r1_s3
        mac: "00:de:ad:ff:01:03"
        networks: ["172.16.103.1/24"]
    port r1_public
        mac: "40:44:00:00:00:03"
        networks: ["172.16.104.1/24"]
    nat 990f4323-4813-43b9-a465-7e04b5ce1c65
        external ip: "172.16.104.200"
        logical ip: "172.16.102.11"
        type: "dnat_and_snat"
    nat ed6947bc-ce8e-412d-a1d7-aef75aa61db4
        external ip: "172.16.104.201"
        logical ip: "172.16.103.11"
        type: "dnat_and_snat"


sendp(Ether(src="00:00:00:01:01:01",dst="ff:ff:ff:ff:ff:ff")/ARP(op=1,hwsrc='00:00:00:01:01:01',hwdst='00:00:00:00:00:00',psrc='172.16.102.99',pdst='172.16.102.99'),iface="eth1")
[root@dell-per730-19 ovn]# ovn-sbctl --bare --columns virtual_parent find port_binding logical_port=s2-vir
hv1_vm00_vnet1
[root@dell-per730-19 ovn]# ovn-sbctl list chssis
ovn-sbctl: unknown table "chssis"
[root@dell-per730-19 ovn]# ovn-sbctl list chassis
_uuid               : b2d0a6ca-5793-42ca-ab45-064c23d1b5df
encaps              : [13be8950-7a3e-4890-bda8-78df139016bc]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-57.rhts.eng.pek2.redhat.com"
name                : "hv0"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 9559469e-b45b-4fdb-83f8-43c46398d596
encaps              : [6a0439d1-4eda-4f52-a9de-53215e9d6123]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-19.rhts.eng.pek2.redhat.com"
name                : "hv1"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []
[root@dell-per730-19 ovn]# ovn-sbctl list chassis
_uuid               : b2d0a6ca-5793-42ca-ab45-064c23d1b5df
encaps              : [13be8950-7a3e-4890-bda8-78df139016bc]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-57.rhts.eng.pek2.redhat.com"
name                : "hv0"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 9559469e-b45b-4fdb-83f8-43c46398d596
encaps              : [6a0439d1-4eda-4f52-a9de-53215e9d6123]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-19.rhts.eng.pek2.redhat.com"
name                : "hv1"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []
[root@dell-per730-19 ovn]# ovn-sbctl list chassis
_uuid               : b2d0a6ca-5793-42ca-ab45-064c23d1b5df
encaps              : [13be8950-7a3e-4890-bda8-78df139016bc]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-57.rhts.eng.pek2.redhat.com"
name                : "hv0"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 9559469e-b45b-4fdb-83f8-43c46398d596
encaps              : [6a0439d1-4eda-4f52-a9de-53215e9d6123]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-19.rhts.eng.pek2.redhat.com"
name                : "hv1"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []
[root@dell-per730-19 ovn]# 
[root@dell-per730-19 ovn]#
 [root@dell-per730-19 ovn]# ovn-sbctl --bare --columns chassis find port_binding logical_port=s2-vir
9559469e-b45b-4fdb-83f8-43c46398d596

[root@dell-per730-19 ovn]# ovn-sbctl list chassis
_uuid               : b2d0a6ca-5793-42ca-ab45-064c23d1b5df
encaps              : [13be8950-7a3e-4890-bda8-78df139016bc]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-57.rhts.eng.pek2.redhat.com"
name                : "hv0"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []

_uuid               : 9559469e-b45b-4fdb-83f8-43c46398d596
encaps              : [6a0439d1-4eda-4f52-a9de-53215e9d6123]
external_ids        : {datapath-type="", iface-types="erspan,geneve,gre,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", ovn-bridge-mappings="nattest:nat_test", ovn-cms-options=""}
hostname            : "dell-per730-19.rhts.eng.pek2.redhat.com"
name                : "hv1"
nb_cfg              : 0
transport_zones     : []
vtep_logical_switches: []
[root@dell-per730-19 ovn]# 
[root@dell-per730-19 ovn]#

Comment 6 errata-xmlrpc 2019-10-01 07:21:33 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://access.redhat.com/errata/RHBA-2019:2943


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