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 1857563

Summary: [OVN] OVN DHCP Server ignores DHCPDECLIENmessages from client
Product: Red Hat Enterprise Linux Fast Datapath Reporter: ying xu <yinxu>
Component: ovn2.13Assignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: ying xu <yinxu>
Severity: medium Docs Contact:
Priority: medium    
Version: FDP 20.ECC: ctrautma, jishi, lorenzo.bianconi, ralongi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn2.13-20.06.2-8.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1857564 (view as bug list) Environment:
Last Closed: 2020-10-27 09:49:12 UTC Type: Bug
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:    
Bug Blocks: 1857564    

Description ying xu 2020-07-16 07:11:54 UTC
Description of problem:

[OVN] OVN DHCP Server ignores DHCPDECLIENmessages from client
Version-Release number of selected component (if applicable):
# rpm -qa|grep ovn
ovn2.13-20.06.1-2.el8fdp.x86_64
ovn2.13-host-20.06.1-2.el8fdp.x86_64
ovn2.13-central-20.06.1-2.el8fdp.x86_64

How reproducible:
always

Steps to Reproduce:
ovn doesnt support decline now. we have supported 7 kinds of dhcp packets.
declien is the last one.I think it's better to support it.

# ip netns exec vm2 /usr/libexec/platform-python ./decline.py
02:54:15.475836 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 281)
    42.42.42.3.68 > 42.42.42.254.67: BOOTP/DHCP, Request from 00:00:00:00:00:02, length 253, xid 0x64cc9868, Flags [none]
	  Client-IP 42.42.42.2
	  Client-Ethernet-Address 00:00:00:00:00:02
	  Vendor-rfc1048 Extensions
	    Magic Cookie 0x63825363
	    DHCP-Message Option 53, length 1: Decline

# cat /var/log/ovn/ovn-controller.log
2020-07-16T06:54:15.476Z|00017|pinctrl(ovn_pinctrl0)|WARN|Invalid DHCP message type: 4

Actual results:
invalid dhcp message
Expected results:
should  handle it.

Additional info:

Comment 3 ying xu 2020-10-10 08:57:50 UTC
I verified on version:
# rpm -qa|grep ovn
ovn2.13-20.09.0-2.el7fdp.x86_64
ovn2.13-central-20.09.0-2.el7fdp.x86_64
ovn2.13-host-20.09.0-2.el7fdp.x86_64

:: [ 04:09:35 ] :: [  BEGIN   ] :: Running 'ip netns exec vm1 /usr/libexec/platform-python ./decline.py'
.
Sent 1 packets.
:: [ 04:09:36 ] :: [   PASS   ] :: Command 'ip netns exec vm1 /usr/libexec/platform-python ./decline.py' (Expected 0, got 0)
:: [ 04:09:41 ] :: [  BEGIN   ] :: Running 'cat /var/log/ovn/ovn-controller.log|grep DECLINE'
2020-10-10T08:09:36.122Z|00008|pinctrl(ovn_pinctrl0)|INFO|DHCPDECLINE from 00:00:00:00:00:01, 42.42.42.2 duplicated
:: [ 04:09:41 ] :: [   PASS   ] :: Command 'cat /var/log/ovn/ovn-controller.log|grep DECLINE' (Expected 0, got 0)

# rpm -qa|grep ovn
kernel-kernel-networking-openvswitch-ovn-qos-1.0-6.noarch
ovn2.13-host-20.09.0-2.el8fdp.x86_64
ovn2.13-20.09.0-2.el8fdp.x86_64
kernel-kernel-networking-openvswitch-ovn-common-1.0-10.noarch
ovn2.13-central-20.09.0-2.el8fdp.x86_64

:: [ 04:54:16 ] :: [  BEGIN   ] :: Running 'ip netns exec vm1 /usr/libexec/platform-python ./decline.py'
.
Sent 1 packets.
:: [ 04:54:17 ] :: [   PASS   ] :: Command 'ip netns exec vm1 /usr/libexec/platform-python ./decline.py' (Expected 0, got 0)
:: [ 04:54:22 ] :: [  BEGIN   ] :: Running 'cat /var/log/ovn/ovn-controller.log|grep DECLINE'
2020-10-10T08:54:17.234Z|00007|pinctrl(ovn_pinctrl0)|INFO|DHCPDECLINE from 00:00:00:00:00:01, 42.42.42.2 duplicated
:: [ 04:54:22 ] :: [   PASS   ] :: Command 'cat /var/log/ovn/ovn-controller.log|grep DECLINE' (Expected 0, got 0)

Comment 5 errata-xmlrpc 2020-10-27 09:49:12 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.13 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:4356