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:
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)
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