<div dir="ltr">Thanks Belmiro. I think long term we may end up doing something similar. Though our network infrastructure is fairly complex, so it would be more like a call to a network API (maybe just a DNS check?) rather than querying a DB directly.<div>
<br></div><div>Aryeh, to your point, OpenStack effectively _is_, the provisioning system. Our current use case is providing engineers with a self service portal for spinning up VMs on which they can do development work. So, the workflow is user -> UI -> nova API. But when a VM is spun up, we still want to integrate with existing systems such as Active Directory (via PBIS/Likewise). Long term, we have grander plans for making OpenStack the provisioning system for our integration and production environments and we'll probably need to build more ellaborate smarts into it.</div>
<div><br></div><div>At any rate, we aren't integrated fuly with DNS and some other systems yet and in taking an iterative approach, we are thinking that if we can have a quick and dirty way to guarantee name uniqueness with a relatively simple piece of code, we can address deeper integration later.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 1, 2014 at 3:31 PM, Aryeh Friedman <span dir="ltr"><<a href="mailto:aryeh.friedman@gmail.com" target="_blank">aryeh.friedman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Aryeh Friedman</b> <span dir="ltr"><<a href="mailto:aryeh.friedman@gmail.com" target="_blank">aryeh.friedman@gmail.com</a>></span><br>

Date: Sat, Feb 1, 2014 at 5:09 PM<br>Subject: Re: [Openstack] nova unique name generator middleware<br>To: Belmiro Moreira <<a href="mailto:moreira.belmiro.email.lists@gmail.com" target="_blank">moreira.belmiro.email.lists@gmail.com</a>><br>

<br><br><div dir="ltr">Since I am relatively new to the guts of OpenStack this might be an off base suggestion but why is this even OpenStack's problem vs. something that can be queried by whatever provisioning solution you choose?  Namely check the name at the provisioning front end and not  as a OpenStack layer per se?<br>


</div><div class="gmail_extra"><div><div class="h5"><div><div><br><br><div class="gmail_quote">On Sat, Feb 1, 2014 at 4:44 PM, Belmiro Moreira <span dir="ltr"><<a href="mailto:moreira.belmiro.email.lists@gmail.com" target="_blank">moreira.belmiro.email.lists@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
in our case we have a network DB were all VMs are registered.<br>
We just check if the name provided by the user don’t conflict.<br>
<br>
Belmiro<br>
<div><div><br>
On Feb 1, 2014, at 20:19 , Craig J <<a href="mailto:craig.jellick@gmail.com" target="_blank">craig.jellick@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> In our OpenStack environment, we have the need to enforce unique names for each VM. Long story short, the names need to be unique because of some other systems that we are integrating with.<br>
><br>
> I think the best way to accomplish this is to write a custom piece of paste middleware and plug it into the nova api. I'm planning on basically overriding the name provide by the user with a name that we can guarantee to be unique.<br>



><br>
> So, two questions:<br>
> 1. Does anyone have a similar piece of middleware they'd care to share?<br>
> 2. Are there any reasons this approach won't work? Any better approaches?<br>
><br>
><br>
> Thanks in advance,<br>
> Craig<br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br><br clear="all"><br></div></div></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div dir="ltr">Aryeh M. Friedman, Lead Developer, <a href="http://www.PetiteCloud.org" target="_blank">http://www.PetiteCloud.org</a><br>

</div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Aryeh M. Friedman, Lead Developer, <a href="http://www.PetiteCloud.org" target="_blank">http://www.PetiteCloud.org</a><br>
</div>
</font></span></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>