Non-DHCP VLAN Network ARP Problem with OVN

Lazuardi Nasution mrxlazuardin at gmail.com
Mon Feb 15 13:34:18 UTC 2021


Hi Daniel,

What is the relationship between DHCP port and metadata port? Since some of
networks use DHCP and the others don't, how can disable it granularly? I'm
not sure that disabling metadata port on neutron conf file can do that.

Best regards.


On Mon, Feb 15, 2021, 17:03 Daniel Alvarez Sanchez <dalvarez at redhat.com>
wrote:

> Hi,
>
> Traditionally, the metadata port has been created with the DHCP owner
> until Ussuri release [0].
> We changed in Victoria to use a new type of port which is 'distributed'
> [1].
>
> This port is used for metadata and since OVN implements metadata in a
> similar way as 'isolated metadata' in ML2/OVS, we push a host route to the
> metadata IP through this port, reason why we consume one IP address per
> subnet. To avoid this, you will need to force config drive in Nova and
> disable metadata port in the Neutron config [2].
>
> Thanks,
> daniel
>
> [0]
> https://github.com/openstack/neutron/blob/stable/ussuri/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py#L2075
> [1]
> https://github.com/openstack/neutron/blob/b2389a31a0871e22244232e0db9aba395cb35b49/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py#L2050
> [2]
> https://github.com/openstack/neutron/blob/a9fc746249cd34cb7cc594c0b4d74d8ddf65bd46/neutron/conf/plugins/ml2/drivers/ovn/ovn_conf.py#L149
>
> On Mon, Feb 15, 2021 at 2:03 AM Tony Liu <tonyliu0592 at hotmail.com> wrote:
>
>> I use openstack cli.
>> "openstack subnet create" with "--no-dhcp" option.
>>
>>
>> Tony
>> ________________________________________
>> From: Lazuardi Nasution <mrxlazuardin at gmail.com>
>> Sent: February 14, 2021 04:48 PM
>> To: Tony Liu
>> Cc: openstack-discuss
>> Subject: Re: Non-DHCP VLAN Network ARP Problem with OVN
>>
>> Hi Tony,
>>
>> On my case, the DHCP port has IP address even I'm not using (disabling)
>> DHCP on such network/subnet.
>>
>> Best regards.
>>
>> On Mon, Feb 15, 2021, 07:45 Tony Liu <tonyliu0592 at hotmail.com<mailto:
>> tonyliu0592 at hotmail.com>> wrote:
>> +1
>> I asked the same a while ago, didn't get answer.
>> When disable DHCP, a port is still created without IP address.
>> Not sure what this port is for?
>>
>> Thanks!
>> Tony
>> ________________________________________
>> From: Lazuardi Nasution <mrxlazuardin at gmail.com<mailto:
>> mrxlazuardin at gmail.com>>
>> Sent: February 14, 2021 07:37 AM
>> To: openstack-discuss
>> Subject: Non-DHCP VLAN Network ARP Problem with OVN
>>
>> Hi,
>>
>> One of our OpenStack clusters has a VLAN based network without DHCP
>> enabled. The cluster uses OVN for SDN.That network has to be like it since
>> it will be used for migrating the VMs from other platforms. I have untick
>> the DHCP enable feature on creating that network at Horizon. After the
>> network and subnet are created, I find that the DHCP port is still created
>> even though it is in a down state. I try to delete that port but after some
>> time, that port is back again.
>>
>> When that DHCP port exists, we find that some VMs inside this OpenStack
>> cluster resolve the MAC address of the IP of that disabled DHCP port to the
>> MAC address of the DHCP port. The problem is coming since that IP is used
>> to an existing VM/server outside this OpenStack cluster at the same VLAN,
>> but it only happens for some VMs. Before this finding, I really disregard
>> the existence of the DHCP port since it is down and I don't enable the DHCP
>> feature. After that, I realize that it is a serious problem.
>>
>> My questions are how to completely disable the DHCP feature for such a
>> network, including its DHCP port? How can DHCP disabled networks with a
>> down DHCP port still respond to the ARP request and why does it happen only
>> for some VMs?
>>
>> Best regards,
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210215/adc5bb63/attachment.html>


More information about the openstack-discuss mailing list