Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1811117

Summary: OVN is not adhering to DHCP Broadcast Bit in DHCPDISCOVER and sending only unicast DHCPOFFER
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Ihar Hrachyshka <ihrachys>
Component: ovn2.12Assignee: Ihar Hrachyshka <ihrachys>
Status: CLOSED CURRENTRELEASE QA Contact: ying xu <yinxu>
Severity: medium Docs Contact:
Priority: medium    
Version: RHEL 7.7CC: apevec, ctrautma, ekuris, fiezzi, ihrachys, jishi, jlibosva, ldenny, lhh, majopela, mmichels, ralongi, scohen
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn2.12-2.12.0-36.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1801006 Environment:
Last Closed: 2020-11-10 15:14:16 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: 1801006, 1811119, 1812038    
Bug Blocks:    

Comment 1 Ihar Hrachyshka 2020-03-07 02:11:35 UTC
Note to QE: this should probably be verified in conjunction with the original OSP bug: https://bugzilla.redhat.com/show_bug.cgi?id=1801006 (the original bug is marked as TestOnly).

Comment 4 ying xu 2020-03-19 05:08:51 UTC
verified on version:
# rpm -qa|grep ovn
ovn2.12-2.12.0-36.el7fdp.x86_64
ovn2.12-host-2.12.0-36.el7fdp.x86_64
ovn2.12-central-2.12.0-36.el7fdp.x86_64




:: [ 01:06:03 ] :: [  BEGIN   ] :: Running 'ip netns exec vm2 /usr/libexec/platform-python ./broadcastset.py'
.
Sent 1 packets.
:: [ 01:06:04 ] :: [   PASS   ] :: Command 'ip netns exec vm2 /usr/libexec/platform-python ./broadcastset.py' (Expected 0, got 0)
:: [ 01:06:09 ] :: [  BEGIN   ] :: Running 'tcpdump -r a.pacp -nn -v |grep 42.42.42.254.67.*255.255.255.255.*BOOTP/DHCP.*Reply'
reading from file a.pacp, link-type EN10MB (Ethernet)
    42.42.42.254.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 276, Flags [Broadcast]
:: [ 01:06:09 ] :: [   PASS   ] :: Command 'tcpdump -r a.pacp -nn -v |grep 42.42.42.254.67.*255.255.255.255.*BOOTP/DHCP.*Reply' (Expected 0, got 0)


send dhcp discovery with broadcast flag:
conf.checkIPaddr = False
    fam,hw =get_if_raw_hwaddr(conf.iface)
    sendp(Ether(src="00:00:00:00:00:02", dst="ff:ff:ff:ff:ff:ff")/IP(src="0.0.0.0", dst="255.255.255.255")/UDP(sport=68,dport=67)/BOOTP(flags=32768,chaddr=hw)/DHCP(options=[("message-type","discover"),"end"]),iface="vm2")
and recieve the server reply in broadcast.
tcpdump -r a.pacp -nn -v |grep 42.42.42.254.67.*255.255.255.255.*BOOTP/DHCP.*Reply'
reading from file a.pacp, link-type EN10MB (Ethernet)
    42.42.42.254.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 276, Flags [Broadcast]

Comment 7 Dan Williams 2020-11-10 15:14:16 UTC
ovn2.12 has been superceded by ovn2.13.