openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17849
Re: MAC address uniqueness in folsom
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.
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@xxxxxxxxxxx<mailto:unmesh.gurjar@xxxxxxxxxxx> | Learn more at nttdata.com/americas
From: openstack-bounces+unmesh.gurjar=nttdata.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+unmesh.gurjar=nttdata.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Neelakantam Gaddam
Sent: Friday, October 26, 2012 11:37 AM
To: mthode@xxxxxxxxxx
Cc: openstack@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxx<mailto:mthode@xxxxxxxxxx>> 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@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
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
Follow ups
References