DescriptionDaniel Alvarez Sanchez
2020-02-10 14:32:47 UTC
Right now, any operation on the extra_dhcp_options [0] of a Neutron ports seem successful from an API standpoint but it takes no effect in the OVN backend:
(overcloud) [stack@undercloud-0 ~]$ neutron port-update --extra-dhcp-opt opt_name='interface-mtu',opt_value='1200' test_port
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Updated port: test_port
(overcloud) [stack@undercloud-0 ~]$ openstack port show test_port | grep -i dhcp
| extra_dhcp_opts | ip_version='4', opt_name='interface-mtu', opt_value='1200'
()[root@controller-2 /]# ovn-nbctl list dhcp_options a825bbdb-3de2-4cd2-aa75-11951894c087
_uuid : a825bbdb-3de2-4cd2-aa75-11951894c087
cidr : "192.168.30.0/24"
external_ids : {"neutron:revision_number"="0", subnet_id="c35226d1-0984-4887-ad38-750c04fba350"}
options : {classless_static_route="{169.254.169.254/32,192.168.30.2, 0.0.0.0/0,192.168.30.1}", dns_server="{172.16.0.1, 10.0.0.1}", lease_time="43200", mtu="1442", router="192.168.30.1", server_id="192.168.30.1", server_mac="fa:16:3e:95:ec:6f"}
As OVN supports DHCP options per port, this RFE seems to be scoped just to networking-ovn.
[0] https://specs.openstack.org/openstack/neutron-specs/specs/api/extra_dhcp_options__extra-dhcp-opt_.html
Right now, any operation on the extra_dhcp_options [0] of a Neutron ports seem successful from an API standpoint but it takes no effect in the OVN backend: (overcloud) [stack@undercloud-0 ~]$ neutron port-update --extra-dhcp-opt opt_name='interface-mtu',opt_value='1200' test_port neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. Updated port: test_port (overcloud) [stack@undercloud-0 ~]$ openstack port show test_port | grep -i dhcp | extra_dhcp_opts | ip_version='4', opt_name='interface-mtu', opt_value='1200' ()[root@controller-2 /]# ovn-nbctl list dhcp_options a825bbdb-3de2-4cd2-aa75-11951894c087 _uuid : a825bbdb-3de2-4cd2-aa75-11951894c087 cidr : "192.168.30.0/24" external_ids : {"neutron:revision_number"="0", subnet_id="c35226d1-0984-4887-ad38-750c04fba350"} options : {classless_static_route="{169.254.169.254/32,192.168.30.2, 0.0.0.0/0,192.168.30.1}", dns_server="{172.16.0.1, 10.0.0.1}", lease_time="43200", mtu="1442", router="192.168.30.1", server_id="192.168.30.1", server_mac="fa:16:3e:95:ec:6f"} As OVN supports DHCP options per port, this RFE seems to be scoped just to networking-ovn. [0] https://specs.openstack.org/openstack/neutron-specs/specs/api/extra_dhcp_options__extra-dhcp-opt_.html