Bug 1801734

Summary: [RFE][OVN] OVN DHCP Server ignores DHCPINFORM messages from client
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Jakub Libosvar <jlibosva>
Component: ovn2.11Assignee: Numan Siddique <nusiddiq>
Status: CLOSED ERRATA QA Contact: ying xu <yinxu>
Severity: medium Docs Contact:
Priority: medium    
Version: RHEL 8.0CC: amuller, apevec, astupnik, ctrautma, ekuris, fhallal, lhh, majopela, nusiddiq, rkhan, scohen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1801258 Environment:
Last Closed: 2020-08-18 11:23:25 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:
Bug Depends On: 1801258    
Bug Blocks:    

Description Jakub Libosvar 2020-02-11 14:53:32 UTC
+++ This bug was initially created as a clone of Bug #1801258 +++

Description of problem:

OVN DHCP server doesn't process DHCPINFORM packages from clients and silently drops them.

P.S. Couldn't find OVN component for RHOSP.

Comment 5 ying xu 2020-07-15 02:40:02 UTC
verified on the latest version:
# rpm -qa|grep ovn
ovn2.11-2.11.1-53.el8fdp.x86_64
ovn2.11-host-2.11.1-53.el8fdp.x86_64
ovn2.11-central-2.11.1-53.el8fdp.x86_64
topo:
vm1-------ls-----------vm2

send inform packet:
sendp(Ether(src="00:00:00:00:00:02", dst="00:de:ad:ff:01:02")/IP(src='42.42.42.3',dst='42.42.42.254')/UDP(sport=68,dport=67)/BOOTP(ciaddr='42.42.42.3',chaddr=hw,xid=random.randint(0, 0xFFFFFFFF),)/DHCP(options=[("message-type","inform"),"end"]),iface="vm2")

cat /var/log/ovn/ovn-controller.log|grep DHCPINFORM'
2020-07-14T07:59:29.949Z|00010|pinctrl(ovn_pinctrl0)|INFO|DHCPINFORM from 00:00:00:00:00:01 42.42.42.2
2020-07-14T08:00:00.189Z|00012|pinctrl(ovn_pinctrl0)|INFO|DHCPINFORM from 00:00:00:00:00:01 42.42.42.2

# tcpdump -r dhcp.pcap -nn -v
reading from file dhcp.pcap, link-type EN10MB (Ethernet)
22:03:15.310978 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 16) fe80::200:ff:fe00:2 > ff02::2: [icmp6 sum ok] ICMP6, router solicitation, length 16
	  source link-address option (1), length 8 (1): 00:00:00:00:00:02
22:03:19.687679 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 272)
    42.42.42.3.68 > 42.42.42.254.67: BOOTP/DHCP, Request from 00:00:00:00:00:02, length 244, xid 0x6d00363e, Flags [none]
	  Client-IP 42.42.42.3
	  Client-Ethernet-Address 00:00:00:00:00:02
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message Option 53, length 1: Inform
22:03:19.689269 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 292)
    42.42.42.254.67 > 42.42.42.3.68: BOOTP/DHCP, Reply, length 264, xid 0x6d00363e, Flags [none]
	  Client-IP 42.42.42.3
	  Client-Ethernet-Address 00:00:00:00:00:02
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message Option 53, length 1: ACK
	    Default-Gateway Option 3, length 4: 42.42.42.254
	    Server-ID Option 54, length 4: 42.42.42.254

send release packet:
sendp(Ether(src="00:00:00:00:00:01", dst="00:de:ad:ff:01:02")/IP(src='42.42.42.2',dst='42.42.42.254')/UDP(sport=68,dport=67)/BOOTP(ciaddr='42.42.42.2',chaddr=hw,xid=random.randint(0, 0xFFFFFFFF),)/DHCP(options=[("message-type","release"),("server_id",'42.42.42.254'),("client_id",chr(1),hw),"end"]),iface="vm1")

#cat /var/log/ovn/ovn-controller.log|grep DHCPRELEASE'
2020-07-15T02:38:50.397Z|00008|pinctrl(ovn_pinctrl0)|INFO|DHCPRELEASE 00:00:00:00:00:01 42.42.42.2

Comment 7 errata-xmlrpc 2020-08-18 11:23:25 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 (ovn2.11 bug fix and enhancement update), 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-2020:3487