← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2126923] [NEW] ovn_dhcp4_global_options doesn't support keys with a list of values

 

Public bug reported:

When using `ovn_dhcp4_global_options` under `[ovn]` in `ml2_conf.ini` it
will cause `neutron server` to crash when attempting to parse the
configuration if a key provided contains a list seperated by commas.

For example if setting `domain_search_list` with more than one domain.

```
[ovn]
ovn_dhcp4_global_options = domain_search_list:foo.bar,baz.qux
```

Expected output would be that `neutron server` doesn't crash when
attempting to parse such configuration and correctly applies these
options within `OVN`.

Experienced within OpenStack Epoxy.

Not currently blocking anything as it is possible to patch
`_get_ovn_dhcpv4_opts` in
`neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py` with
the following

```
options['domain_search_list'] = "\"foo.bar,baz.qux\""
```

** 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/2126923

Title:
  ovn_dhcp4_global_options doesn't support keys with a list of values

Status in neutron:
  New

Bug description:
  When using `ovn_dhcp4_global_options` under `[ovn]` in `ml2_conf.ini`
  it will cause `neutron server` to crash when attempting to parse the
  configuration if a key provided contains a list seperated by commas.

  For example if setting `domain_search_list` with more than one domain.

  ```
  [ovn]
  ovn_dhcp4_global_options = domain_search_list:foo.bar,baz.qux
  ```

  Expected output would be that `neutron server` doesn't crash when
  attempting to parse such configuration and correctly applies these
  options within `OVN`.

  Experienced within OpenStack Epoxy.

  Not currently blocking anything as it is possible to patch
  `_get_ovn_dhcpv4_opts` in
  `neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py` with
  the following

  ```
  options['domain_search_list'] = "\"foo.bar,baz.qux\""
  ```

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