<br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 7:05 PM, Chris Behrens <span dir="ltr"><<a href="mailto:cbehrens@codestud.com" target="_blank">cbehrens@codestud.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="auto"><div>I'm having a hard time understanding the original problem.  nova boot should return in milliseconds.  There's no blocking on provisioning.</div><span class="HOEnZb"><font color="#888888"><div>

<br></div></font></span></div></blockquote><div><br></div><div>The only thing that could block is DB access, as AFAIK the RPC to the scheduler is still pass by reference. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="auto"><span class="HOEnZb"><font color="#888888"><div></div><div>- Chris</div></font></span><div><div class="h5"><div><br>On Apr 3, 2013, at 8:32 PM, Rafael Rosa <<a href="mailto:rafaelrosafu@gmail.com" target="_blank">rafaelrosafu@gmail.com</a>> wrote:<br>

<br></div><blockquote type="cite"><div><div dir="ltr">API wise I was thinking about something like "nova boot --custom-instance-uuid ABC..." or something like that. To avoid problems with any current implementation I would set it to disabled by default and add a config option to enable it.<div>



<br></div><div>As for collisions, my take is that if you're passing a custom UUID you know what you're doing and is generating them in a way that won't be duplicated. Just by using standard UUID generators the possibility of collisions are really really small.</div>



<div><br></div><div>Thanks for the feeback :)</div><div class="gmail_extra"><br clear="all"><div>Rafael Rosa Fu<br></div>
<br><br><div class="gmail_quote">2013/4/3 Michael Still <span dir="ltr"><<a href="mailto:mikal@stillhq.com" target="_blank">mikal@stillhq.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>On Thu, Apr 4, 2013 at 9:16 AM, Rafael Rosa <<a href="mailto:rafaelrosafu@gmail.com" target="_blank">rafaelrosafu@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> In our OpenStack installation we have an issue when creating new instances,<br>
> we need to execute some long running processes before calling "nova boot"<br>
> and the call blocks for the end user for a while. We would like to return<br>
> "immediately" to the caller with a final instance UUID and do the work on<br>
> the background, but it's only generated when during actual instance<br>
> creation, which is a no go in our situation.<br>
<br>
</div>The instance_create database call already accepts an instance UUID as<br>
an argument, so that bit looks like it should work out well for you.<br>
So, I guess this is mostly a case of working out how you want the API<br>
to work.<br>
<br>
Personally, I would have no problem with something like this, so long<br>
as we could somehow "reserve" the instance UUID so that another caller<br>
doesn't try and create an instance with the same UUID while you're<br>
doing your slow thing.<br>
<br>
Cheers,<br>
Michael<br>
</blockquote></div><br></div></div>
</div></blockquote></div></div><div class="im"><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a></span><br>

<span>Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></span><br><span>Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a></span><br>

<span>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></span><br></div></blockquote></div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>