← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2125715] [NEW] OVN DHCPv6 support for Option 59

 

Public bug reported:

I have a usecase where I boot nova instances using an iPXE image.

For IPv6 setting option 59 is allowed via the API, and the
`extra_dhcp_opts` field have the value:

| extra_dhcp_opts         | ip_version='6', opt_name='59',
opt_value='http://[2620:cf:cf:cf02::fff0]:8081/boot/boot.ipxe'

However, the client does not get the option.

It turns out all that is needed is to add '59': 'bootfile_name' to the
SUPPORTED_DHCP_OPTS_MAPPING.

--- a/neutron/common/ovn/constants.py
+++ b/neutron/common/ovn/constants.py
@@ -196,7 +196,8 @@ SUPPORTED_DHCP_OPTS_MAPPING = {
         '2': 'server_id',
         '5': 'ia_addr',
         '24': 'domain_search',
-        '23': 'dns_server'},
+        '23': 'dns_server',
+        '59': 'bootfile_name'},
 }

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2125715

Title:
  OVN DHCPv6 support for Option 59

Status in neutron:
  New

Bug description:
  I have a usecase where I boot nova instances using an iPXE image.

  For IPv6 setting option 59 is allowed via the API, and the
  `extra_dhcp_opts` field have the value:

  | extra_dhcp_opts         | ip_version='6', opt_name='59',
  opt_value='http://[2620:cf:cf:cf02::fff0]:8081/boot/boot.ipxe'

  However, the client does not get the option.

  It turns out all that is needed is to add '59': 'bootfile_name' to the
  SUPPORTED_DHCP_OPTS_MAPPING.

  --- a/neutron/common/ovn/constants.py
  +++ b/neutron/common/ovn/constants.py
  @@ -196,7 +196,8 @@ SUPPORTED_DHCP_OPTS_MAPPING = {
           '2': 'server_id',
           '5': 'ia_addr',
           '24': 'domain_search',
  -        '23': 'dns_server'},
  +        '23': 'dns_server',
  +        '59': 'bootfile_name'},
   }

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2125715/+subscriptions



Follow ups