[Openstack] MAC address uniqueness in folsom

Gary Kotton gkotton at redhat.com
Sun Oct 28 12:24:25 UTC 2012


On 10/26/2012 03:56 PM, Gurjar, Unmesh wrote:
>
> Hi,
>
> I can think of two alternative  solutions for maintaining uniqueness:
>
> 1.DB look up: After generating a new MAC address, checking uniqueness 
> by doing  a DB look up.
>

The Quantum code ensure that the MAC address generated is unqiue. This 
is done by checking against MAC addresses already allocated.

> 2.Having a 'unique' constraint on the 'mac_address' column and handle 
> the DB IntegrityError and retry generating a new MAC address.
>
> I also think, initializing the 'random.seed' in start-up process of 
> Quantum server (with a different value -- configurable one; on each 
> server) could help in reducing conflicts.
>
> I think either of the above solutions could be used for fixing LP bug 
> #1050924.
>
> Thanks & Regards,
>
> *Unmesh Gurjar*| Lead Engineer | NTT DATA Global Technology Services 
> Private Limited | *w.* +91.20.6604.1500 x 379 | *m.* +91.982.324.7631 
> | unmesh.gurjar at nttdata.com <mailto:unmesh.gurjar at nttdata.com> | Learn 
> more at nttdata.com/americas**
>
> *From:*openstack-bounces+unmesh.gurjar=nttdata.com at lists.launchpad.net 
> [mailto:openstack-bounces+unmesh.gurjar=nttdata.com at lists.launchpad.net] 
> *On Behalf Of *Neelakantam Gaddam
> *Sent:* Friday, October 26, 2012 11:37 AM
> *To:* mthode at mthode.org
> *Cc:* openstack at lists.launchpad.net
> *Subject:* Re: [Openstack] MAC address uniqueness in folsom
>
> Hi,
>
> We want unique MAC addresses in our environment only but across 
> multiple tenants.
>
> Thanks for quick reply.
>
> ---
> Neelakantam
>
> On Fri, Oct 26, 2012 at 9:38 AM, Matthew Thode <mthode at mthode.org 
> <mailto:mthode at mthode.org>> wrote:
>
> On 10/25/2012 11:02 PM, Neelakantam Gaddam wrote:
> > Hi All,
> >
> > Does the MAC address generated in quantum is unique across tenants in
> > folsom?
> > I am developing an application that requires unique MAC address. If not
> > unique, is there any way to make MAC address unique?
> >
> > Please help me. Thanks in advance.
> >
> >
> >
> >
>
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack 
> <https://launchpad.net/%7Eopenstack>
> > Post to     : openstack at lists.launchpad.net 
> <mailto:openstack at lists.launchpad.net>
> > Unsubscribe : https://launchpad.net/~openstack 
> <https://launchpad.net/%7Eopenstack>
> > More help   : https://help.launchpad.net/ListHelp
> >
> Do you need it to be globally unique (amongst all macs on earth) or
> simply unique in your environment?
>
> --
> -- Matthew Thode
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack 
> <https://launchpad.net/%7Eopenstack>
> Post to     : openstack at lists.launchpad.net 
> <mailto:openstack at lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~openstack 
> <https://launchpad.net/%7Eopenstack>
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> -- 
> Thanks & Regards
> Neelakantam Gaddam
>
>
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest 
> confidence for the sole use of the addressee and may contain legally 
> privileged, confidential, and proprietary data. If you are not the 
> intended recipient, please advise the sender by replying promptly to 
> this email and then delete and destroy this email and any attachments 
> without any further use, copying or forwarding
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121028/e4755174/attachment.html>


More information about the Openstack mailing list