Hi Guru,

Thanks for all the help!

One more question. We need the mac address to be permanent. So if the
vm/pod is down/rebooted, [1] no other vm/pod will get the mac and [2] when
the vm/pod will be up it will get the same mac as before.

To achieve [2], I guess we can use the 'dynamic' address only in the first
run and then provide a static mac address.
But if the ovn-cni removes the port when the pod is stopped (is it?),
another pod can take the address.
Is there a way to specify the cni to keep the port even if the pod is
stopped/rebooted?

Thanks,
Alona.

On Wed, Aug 29, 2018 at 3:49 PM, Mark Michelson <[email protected]> wrote:

> On 08/28/2018 04:43 PM, Dan Kenigsberg wrote:
>
>>
>>
>> On Tue, Aug 28, 2018 at 3:45 PM, Mark Michelson <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>     On 08/28/2018 08:42 AM, Dan Kenigsberg wrote:
>>
>>
>>
>>         On Tue, Aug 28, 2018 at 3:23 PM, Mark Michelson
>>         <[email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>> wrote:
>>
>>              See in-line below.
>>
>>              On 08/28/2018 03:21 AM, Yaniv Lavi wrote:
>>
>>                  Adding Franck.
>>
>>                  YANIV LAVI
>>
>>                  SENIOR TECHNICAL PRODUCT MANAGER
>>
>>                  Red Hat Israel Ltd. <https://www.redhat.com/>
>>
>>                  34 Jerusalem Road, Building A, 1st floor
>>
>>                  Ra'anana, Israel 4350109
>>
>>         [email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>
>>                  <mailto:[email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>>  T:
>>                  +972-9-7692306/8272306      F: +972-9-7692223    IM:
>> ylavi
>>
>>                  <https://red.ht/sig>    TRIED. TESTED. TRUSTED.
>>                  <https://redhat.com/trusted>
>>
>>                  @redhatnews <https://twitter.com/redhatnews
>>         <https://twitter.com/redhatnews>
>>                  <https://twitter.com/redhatnews
>>         <https://twitter.com/redhatnews>>> Red Hat
>>                  <https://www.linkedin.com/company/red-hat
>>         <https://www.linkedin.com/company/red-hat>
>>                  <https://www.linkedin.com/company/red-hat
>>         <https://www.linkedin.com/company/red-hat>>> Red Hat
>>                  <https://www.facebook.com/RedHatInc
>>         <https://www.facebook.com/RedHatInc>
>>                  <https://www.facebook.com/RedHatInc
>>         <https://www.facebook.com/RedHatInc>>>
>>
>>
>>
>>                  On Tue, Aug 28, 2018 at 12:27 AM Dan Kenigsberg
>>                  <[email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>
>>                  <mailto:[email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>>> wrote:
>>
>>                       On Mon, Aug 27, 2018 at 3:52 PM, Mark Michelson
>>                  <[email protected] <mailto:[email protected]>
>>         <mailto:[email protected] <mailto:[email protected]>>
>>                       <mailto:[email protected]
>>         <mailto:[email protected]> <mailto:[email protected]
>>         <mailto:[email protected]>>>>
>>
>>                  wrote:
>>                        > Hi Alona,
>>                        >
>>                        > Sorry for the slow reply but I was out of the
>>         office on
>>                  vacation
>>                       at the end
>>                        > of last week.
>>                        >
>>                        > One feature ovn currently has is dynamic address
>>                  allocation [1].
>>                       You can
>>                        > configure the logical switch to automatically
>>         assign a
>>                  specific
>>                       subnet for
>>                        > IPv4 addresses. Then you can specify the
>>         addresses for a
>>                  logical
>>                       switch port
>>                        > as "dynamic". By doing this, ovn-northd will
>>                  automatically assign
>>                       an IPv4
>>                        > address from your configured range to this
>> logical
>>                  switch port.
>>                       ovn-northd
>>                        > will also assign a MAC address to the switch port
>>                  automatically,
>>                       BUT the MAC
>>                        > address assignment is managed by ovn-northd. As
>>         Guru
>>                  mentioned,
>>                       there is
>>                        > currently no way to manage the range of MAC
>>         addresses
>>                  that are
>>                       assignable
>>                        > dynamically. One potential way to get what you
>> want
>>                  would be to
>>                       enhance
>>                        > configuration so that a range of MAC addresses
>>         for dynamic
>>                       allocation can be
>>                        > specified, too. The simplest version of this
>>         would be to
>>                  specify
>>                       a starting
>>                        > MAC address, and either a number of MAC
>>         addresses that
>>                  could be
>>                       assigned or
>>                        > an ending MAC address. Unlike with IPv4
>>         addresses, the
>>                  MAC range
>>                       would have
>>                        > to be configured at some higher level than the
>>         logical
>>                  switch
>>                       since MAC
>>                        > addresses cannot be duplicated.
>>
>>                       Alona is now on PTO herself so I'd step in. I
>>         think that it
>>                  would fine
>>                       to have OUI_start and OUI_end configurables to
>> northd,
>>                  defining the
>>                       allocatable MAC range.
>>                       BTW, if a user has set a static MAC address on his
>>         port,
>>                  would ovn be
>>                       aware of it, and smart enough not to re-allocate it?
>>
>>
>>              If this is implemented similarly to dynamic IP address
>>         assignment,
>>              then yes.
>>
>>
>>         I don't really know how dynamic/static MAC assignment is
>>         implemented in ovn (if I had known, I wouldn't bother you!)
>>         I just wonder out loud if you have to be all-static or you can
>>         intermix static in a dynamic range.
>>
>>         Anyway, would you need a bugzilla or another issue tracker to
>>         support configurable dynamic range?
>>
>>
>>     Please open a BZ. Thank you!
>>
>>
>> *Bug 1623260* <https://bugzilla.redhat.com/show_bug.cgi?id=1623260>
>> -OVN: configurable dynamic mac range
>>
>> Let us know when you can take a look at it.
>>
>>
> Thank you Dan. We'll keep updates on the BZ from here on.
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to