<div dir="auto">Hello, do you mean there is not any workaround?<div dir="auto">Ignazio</div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno Gio 7 Feb 2019 14:47 Sean Mooney <<a href="mailto:smooney@redhat.com">smooney@redhat.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2019-02-07 at 14:16 +0100, Ignazio Cassano wrote:<br>
> Hello, <br>
> I also tryed to unprotect "libvirt driver options for images" and "instance config data" metadata definitions Then I<br>
> associated them to flavors.<br>
> With the above configuration I can define . os_require_quiesce='yes' and hw_qemu_guest_agent='yes' in a flavor bu<br>
> starting an instance from a volume using that flavor did not solved the issue:<br>
you can add the key to the flavor extra_spces  but nova does not support that<br>
this is only supported in the image metadata.<br>
if you boot form volume unless you have this set in the image_metatada section of the volume<br>
nova will not use it. it may not use it even in that case.<br>
<br>
> qemu-guest agent did not work.<br>
> It works only when an instance is created from an image with the above metadata.<br>
> <br>
> Ignazio<br>
> <br>
> Il giorno gio 7 feb 2019 alle ore 12:53 Sean Mooney <<a href="mailto:smooney@redhat.com" target="_blank" rel="noreferrer">smooney@redhat.com</a>> ha scritto:<br>
> > On Thu, 2019-02-07 at 12:22 +0100, Ignazio Cassano wrote:<br>
> > > Hello, is it possible to force metadata for instances like the following ?<br>
> > > hw_qemu_guest_agent='yes'<br>
> > > os_require_quiesce='yes'<br>
> > > <br>
> > > <br>
> > > I know if an instance is created from an image with the above metadata the quemu-guest-agent works, but sometimes<br>
> > > instances can start from volumes ( for example after a cnder backup).<br>
> > if you are using a recent version of cinder/nova the image metadata is copied to the volume.<br>
> > i don't know if that is in queens or not but the only other way to force it that i can think of would be via the<br>
> > flavor.<br>
> > unfortunately the guest agnet is not supported in the flavor <br>
> > <a href="https://github.com/openstack/glance/blob/master/etc/metadefs/compute-libvirt-image.json#L7-L11" rel="noreferrer noreferrer" target="_blank">https://github.com/openstack/glance/blob/master/etc/metadefs/compute-libvirt-image.json#L7-L11</a><br>
> > <br>
> > > <br>
> > > Regards<br>
> > > Ignazio<br>
> > <br>
<br>
</blockquote></div>