<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 1:40 AM, Abbass MAROUNI <span dir="ltr"><<a href="mailto:abbass.marouni@virtualscale.fr" target="_blank">abbass.marouni@virtualscale.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello Joe,<br>
<br>
Thanks for your quick reply, here's what we're trying to do :<br>
<br>
In the scheduling process of a virtual machine we need to be able to<br>
choose the best Host (which is a cinder-volume and nova-compute host at<br>
the same time) that has enough volume space so that we can launch the VM<br>
then create and attach some cinder volumes locally (on the same host).<br>
We get the part where we check the available cinder space on each host<br>
(in a filter) and choose the best host (that has the most free space in<br>
a Weigher). Now we need to tell cinder to create and attach the volumes.<br>
We need to be able to do it from Heat.<br>
<br>
So I was thinking that if I can tag the virtual machine with the name of<br>
the chosen host (in the Weigher) then I can extract the tag (somehow !)<br>
and use it in heat as a dependency in the volume element (At least<br>
that's what I'm thinking :  the virtual machine will be launched and<br>
Heat will extract the tag then use it to create/attach the volumes).<br>
<br>
I'm sure that there are other means to achieve this, so any help will be<br>
greatly appreciated.<br></blockquote><div><br></div><div>You have just touched on a long outstanding issue in OpenStack, how to do cross service scheduling. I don't think the tag model you proposed is sufficient, as there is no guarantee that a volume on node x will be available in a second from now. While a good solution to this issue is a ways off I think there may be an easier short term ugly hack. As an administrator, you can already find out what host an instance is on (AFAIK 'nova show UUID' should give you the information).</div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<div class="im HOEnZb"><br>
<br>
On 06/24/2014 11:38 PM, <a href="mailto:openstack-dev-request@lists.openstack.org" target="_blank">openstack-dev-request@lists.<u></u>openstack.org</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>Hi,<br>
><br>
>I was wondering if there's a way to set a tag (key/value) of a Virtual<br>
</blockquote>
Machine from within a scheduler filter ?<br>
<br>
The scheduler today is just for placement. And since we are in the process<br>
of trying to split it out, I don't think we want to make the scheduler do<br>
something like this (at least for now).<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
><br>
>I want to be able to tag a machine with a specific key/value after<br>
</blockquote>
passing my custom filter<br>
<br>
What is your use case? Perhaps we have another way of solving it today.<br>
<br>
</blockquote>
<br></div><div class="HOEnZb"><div class="h5">
-- <br>
--<br>
Abbass MAROUNI<br>
VirtualScale<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>