RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1641765 - [RFE] Support DHCP Option 252 in OVN Native DHCP
Summary: [RFE] Support DHCP Option 252 in OVN Native DHCP
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Timothy Redaelli
QA Contact: haidong li
URL:
Whiteboard:
Depends On: 1641740
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-22 16:26 UTC by Timothy Redaelli
Modified: 2020-01-14 22:35 UTC (History)
21 users (show)

Fixed In Version: openvswitch-2.9.0-72.el7fdn
Doc Type: Enhancement
Doc Text:
With this update, a support for the Dynamic Host Configuration Protocol (DHCP) option 252 has been added to Open Virtual Network (OVN) Native DHCP.
Clone Of: 1641740
Environment:
Last Closed: 2018-11-05 14:59:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Timothy Redaelli 2018-10-22 16:26:24 UTC
+++ This bug was initially created as a clone of Bug #1641740 +++

+++ This bug was initially created as a clone of Bug #1613513 +++

Description of problem:

A customer is looking to move from ML2/OVS in their current deployment to OVN in a new OSP13 deployment. They currently use dnsmasq settings to pass DHCP option 252 (WPAD) to their clients for site-specific proxy configuration. Option 252 is not currently configured as a supported option by ovn-northd.

This RFE is to add support for option 252 to ovn-northd to be used in conjunction with another RFE for Neutron's networking-ovn module.

--- Additional comment from Mark Michelson on 2018-08-15 22:58:12 CEST ---

I have added this to the OVN Trello board. I will update this when the feature is finished.

--- Additional comment from Mark Michelson on 2018-08-21 14:20:03 CEST ---

I have submitted a patch upstream for this feature: https://patchwork.ozlabs.org/patch/959947/

I am placing this issue in the POST state.

Comment 5 haidong li 2018-10-29 01:44:25 UTC
Hi Timothy,
   In comment3,I found OVN can't reply to the "dhcp inform" packet.Is it expected?

Comment 6 Timothy Redaelli 2018-10-31 13:51:24 UTC
Hi Mark,
can you reply the comment#5 since you are the original assignee (bz#1613513)?

Comment 7 haidong li 2018-11-01 03:10:21 UTC
[root@hp-dl380pg8-05 images]# ovn-nbctl list DHCP_Options
 _uuid               : 6cf6faa7-31bb-4a9e-b232-85774cdc2835
 cidr                : "172.16.102.0/24"
 external_ids        : {}
 options             : {dns_server="172.16.102.254", lease_time="3600", router="172.16.102.254", server_id="172.16.102.254", server_mac="00:de:ad:ff:01:02", wpad="https://example.org"}
[root@hp-dl380pg8-05 images]#
captured the dhcp ack packet:
Frame 2: 345 bytes on wire (2760 bits), 345 bytes captured (2760 bits)
    Encapsulation type: Ethernet (1)
    Arrival Time: Oct 22, 2018 23:02:19.964465000 EDT
    [Time shift for this packet: 0.000000000 seconds]
    Epoch Time: 1540263739.964465000 seconds
    [Time delta from previous captured frame: 0.000820000 seconds]
    [Time delta from previous displayed frame: 0.000820000 seconds]
    [Time since reference or first frame: 0.000820000 seconds]
    Frame Number: 2
    Frame Length: 345 bytes (2760 bits)
    Capture Length: 345 bytes (2760 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: 00e:ad:ff:01:02 (00e:ad:ff:01:02), Dst: 00:00:00_01:01:01 (00:00:00:01:01:01)
    Destination: 00:00:00_01:01:01 (00:00:00:01:01:01)
        Address: 00:00:00_01:01:01 (00:00:00:01:01:01)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: 00e:ad:ff:01:02 (00e:ad:ff:01:02)
        Address: 00e:ad:ff:01:02 (00e:ad:ff:01:02)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IP (0x0800)
Internet Protocol Version 4, Src: 172.16.102.254 (172.16.102.254), Dst: 172.16.102.10 (172.16.102.10)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x10 (DSCP 0x04: Unknown DSCP; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
        0001 00.. = Differentiated Services Codepoint: Unknown (0x04)
        .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
    Total Length: 331
    Identification: 0x0000 (0)
    Flags: 0x00
        0... .... = Reserved bit: Not set
        .0.. .... = Don't fragment: Not set
        ..0. .... = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: UDP (17)
    Header checksum: 0x1469 [validation disabled]
        [Good: False]
        [Bad: False]
    Source: 172.16.102.254 (172.16.102.254)
    Destination: 172.16.102.10 (172.16.102.10)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
    Source port: bootps (67)
    Destination port: bootpc (68)
    Length: 311
    Checksum: 0x0000 (none)
        [Good Checksum: False]
        [Bad Checksum: False]
Bootstrap Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet (0x01)
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0x1a9d414d
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
        0... .... .... .... = Broadcast flag: Unicast
        .000 0000 0000 0000 = Reserved flags: 0x0000
    Client IP address: 0.0.0.0 (0.0.0.0)
    Your (client) IP address: 172.16.102.10 (172.16.102.10)
    Next server IP address: 0.0.0.0 (0.0.0.0)
    Relay agent IP address: 0.0.0.0 (0.0.0.0)
    Client MAC address: 00:00:00_01:01:01 (00:00:00:01:01:01)
    Client hardware address padding: 00000000000000000000
    Server host name not given
    Boot file name not given
    Magic cookie: DHCP
    Option: (53) DHCP Message Type
        Length: 1
        DHCP: ACK (5)
    Option: (6) Domain Name Server
        Length: 4
        Domain Name Server: 172.16.102.254 (172.16.102.254)
    Option: (51) IP Address Lease Time
        Length: 4
        IP Address Lease Time: (3600s) 1 hour
    Option: (1) Subnet Mask
        Length: 4
        Subnet Mask: 255.255.255.0 (255.255.255.0)
    Option: (3) Router
        Length: 4
        Router: 172.16.102.254 (172.16.102.254)
    Option: (54) DHCP Server Identifier
        Length: 4
        DHCP Server Identifier: 172.16.102.254 (172.16.102.254)
    Option: (252) Private/Proxy autodiscovery
        Length: 19
        Private/Proxy autodiscovery: https://example.org
    Option: (0) Padding
        Padding: 00000000
    Option: (255) End
        Option End: 255
    Padding
[root@localhost dhclient]# cat dhclient.leases
lease {
  interface "eth0";
  fixed-address 192.168.122.192;
  option subnet-mask 255.255.255.0;
  option routers 192.168.122.1;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option domain-name-servers 192.168.122.1;
  option dhcp-server-identifier 192.168.122.1;
  option dhcp-renewal-time 1800;
  option broadcast-address 192.168.122.255;
  option dhcp-rebinding-time 3150;
  renew 2 2018/10/23 08:55:45;
  rebind 2 2018/10/23 09:22:25;
  expire 2 2018/10/23 09:29:55;
}
lease {
  interface "eth1";
  fixed-address 172.16.102.10;
  option subnet-mask 255.255.255.0;
  option unknown-252 "https://example.org";
  option dhcp-lease-time 3600;
  option routers 172.16.102.254;
  option dhcp-message-type 5;
  option domain-name-servers 172.16.102.254;
  option dhcp-server-identifier 172.16.102.254;
  renew 2 2018/10/23 09:01:57;
  rebind 2 2018/10/23 09:27:16;
  expire 2 2018/10/23 09:34:46;
}

Comment 8 Mark Michelson 2018-11-01 12:19:02 UTC
Hi, in reply to comment #5, this is expected. OVN has no support for DHCPINFORM at all right now.

Comment 10 errata-xmlrpc 2018-11-05 14:59:05 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/RHSA-2018:3500


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