<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 10/26/2012 03:56 PM, Gurjar, Unmesh wrote:
    <blockquote
      cite="mid:C2F1FD20FE83284AA0E9E36639ECDAEBED5B26@MAIL703.KDS.KEANE.COM"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:921528493;
        mso-list-type:hybrid;
        mso-list-template-ids:-751111780 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif][if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
            can think of two alternative  solutions for maintaining
            uniqueness:<o:p></o:p></span></p>
        <p class="MsoListParagraph" style="text-indent: -0.25in;"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><span
              style="mso-list:Ignore">1.<span style="font:7.0pt
                "Times New Roman"">      
              </span></span></span><!--[endif]--><span style="font-size:
            11pt; font-family:
            "Calibri","sans-serif"; color: rgb(31,
            73, 125);">DB look up: After generating a new MAC address,
            checking uniqueness by doing  a DB look up.</span></p>
      </div>
    </blockquote>
    <br>
    The Quantum code ensure that the MAC address generated is unqiue.
    This is done by checking against MAC addresses already allocated.<br>
    <br>
    <blockquote
      cite="mid:C2F1FD20FE83284AA0E9E36639ECDAEBED5B26@MAIL703.KDS.KEANE.COM"
      type="cite">
      <div class="WordSection1">
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoListParagraph"
          style="text-indent:-.25in;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><span
              style="mso-list:Ignore">2.<span style="font:7.0pt
                "Times New Roman"">      
              </span></span></span><!--[endif]--><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Having
            a ‘unique’ constraint on the ‘mac_address’ column and handle
            the DB IntegrityError and retry generating a new MAC
            address.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
            think either of the above solutions could be used for fixing
            LP bug #1050924.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Thanks
            & Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Unmesh
              Gurjar</span></b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">
            | Lead Engineer |
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">NTT
            DATA Global Technology Services Private Limited |
            <b>w.</b> +91.20.6604.1500 x 379 | <b>m.</b>
            +91.982.324.7631 | </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><a
              moz-do-not-send="true"
              href="mailto:unmesh.gurjar@nttdata.com"><span
                style="color:blue">unmesh.gurjar@nttdata.com</span></a>
            |
          </span><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Learn
            more at nttdata.com/americas<b><o:p></o:p></b></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
            <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+unmesh.gurjar=nttdata.com@lists.launchpad.net">openstack-bounces+unmesh.gurjar=nttdata.com@lists.launchpad.net</a>
[<a class="moz-txt-link-freetext" href="mailto:openstack-bounces+unmesh.gurjar=nttdata.com@lists.launchpad.net">mailto:openstack-bounces+unmesh.gurjar=nttdata.com@lists.launchpad.net</a>]
            <b>On Behalf Of </b>Neelakantam Gaddam<br>
            <b>Sent:</b> Friday, October 26, 2012 11:37 AM<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:mthode@mthode.org">mthode@mthode.org</a><br>
            <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
            <b>Subject:</b> Re: [Openstack] MAC address uniqueness in
            folsom<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
          <br>
          We want unique MAC addresses in our environment only but
          across multiple tenants.<br>
          <br>
          Thanks for quick reply.<br>
          <br>
          ---<br>
          Neelakantam<o:p></o:p></p>
        <div>
          <p class="MsoNormal">On Fri, Oct 26, 2012 at 9:38 AM, Matthew
            Thode <<a moz-do-not-send="true"
              href="mailto:mthode@mthode.org" target="_blank">mthode@mthode.org</a>>
            wrote:<o:p></o:p></p>
          <div>
            <p class="MsoNormal">On 10/25/2012 11:02 PM, Neelakantam
              Gaddam wrote:<br>
              > Hi All,<br>
              ><br>
              > Does the MAC address generated in quantum is unique
              across tenants in<br>
              > folsom?<br>
              > I am developing an application that requires unique
              MAC address. If not<br>
              > unique, is there any way to make MAC address unique?<br>
              ><br>
              > Please help me. Thanks in advance.<br>
              ><br>
              ><br>
              ><br>
              ><o:p></o:p></p>
          </div>
          <p class="MsoNormal" style="margin-bottom:12.0pt">>
            _______________________________________________<br>
            > Mailing list: <a moz-do-not-send="true"
              href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
            > Post to     : <a moz-do-not-send="true"
              href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
            > Unsubscribe : <a moz-do-not-send="true"
              href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
            > More help   : <a moz-do-not-send="true"
              href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
            ><br>
            Do you need it to be globally unique (amongst all macs on
            earth) or<br>
            simply unique in your environment?<br>
            <span style="color:#888888"><br>
              <span class="hoenzb">--</span><br>
              <span class="hoenzb">-- Matthew Thode</span><br>
              <br>
            </span><br>
            _______________________________________________<br>
            Mailing list: <a moz-do-not-send="true"
              href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
            Post to     : <a moz-do-not-send="true"
              href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
            Unsubscribe : <a moz-do-not-send="true"
              href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
            More help   : <a moz-do-not-send="true"
              href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><o:p></o:p></p>
        </div>
        <p class="MsoNormal"><br>
          <br clear="all">
          <br>
          -- <br>
          Thanks & Regards<br>
          Neelakantam Gaddam<o:p></o:p></p>
      </div>
      <br clear="all">
______________________________________________________________________<br>
      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<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help   : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>