<div dir="ltr">@Duncan<div><br></div><div id="">Thanks for your reply and help, :) </div><div id=""><br></div><div id="">About "<span style="font-family:arial,sans-serif;font-size:14px">I expect </span><span style="font-family:arial,sans-serif;font-size:14px">that other than adding filtering on metadata to the API (if it isn't</span></div>
<span style="font-family:arial,sans-serif;font-size:14px" id="">already there - I can't remember) that it will stay this way." you mentioned, I am </span><div><font face="arial, sans-serif"><span style="font-size:14px">sorry that I am not quite understand what you men. </span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:14px"><br></span></font></div><div id=""><font face="arial, sans-serif"><span style="font-size:14px" id="">Did you mean using volume metadata was not the right way for the first situation I mentioned in ealier mail?<br>
</span></font><div id=""><br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-06 18:50 GMT+08:00 Duncan Thomas <span dir="ltr"><<a href="mailto:duncan.thomas@gmail.com" target="_blank">duncan.thomas@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
'metadata' is a free form key-value space for the tenant to use for<br>
their own purposes - it has no semantic meaning to cinder. I expect<br>
that other than adding filtering on metadata to the API (if it isn't<br>
already there - I can't remember) that it will stay this way.<br>
<br>
I take your point on the glance metadata. Glance has the concept to<br>
mutable and immutable metadata, maybe we can do something with that?<br>
I'll ask somebody who knows more about glance than me and get back to<br>
you...<br>
<div class=""><div class="h5" id=""><br>
On 4 May 2014 10:33, Zhangleiqiang (Trump) <<a href="mailto:zhangleiqiang@huawei.com">zhangleiqiang@huawei.com</a>> wrote:<br>
> Hi, stackers:<br>
><br>
> I have some confusion about the respective use cases for volume's admin_metadata, metadata and glance_image_metadata.<br>
><br>
> I know glance_image_metadata comes from image which is the volume created from, and it is immutable. Glance_image_metadata is used for many cases, such as billing, ram requirement, etc. And it also includes property which can effects the "use-pattern" of volume, such as volumes with "hw_scsi_mode=virtio-scsi" will be supposed that there is corresponding virtio-scsi driver installed and will be used as a device of "virtio-scsi" controller which has higher performance when booting from it with scsi bus type.<br>
><br>
> However, volume is constantly having blocks changed, which may result in situations as follows:<br>
><br>
> 1. A volume not created from image or created from image without "hw_scsi_mode" property at first but then has the virtio-scsi driver manually installed, there will be no method to make the volume used with virito-scsi controller when booting from it.<br>
><br>
> 2. If a volume was created from an image with "hw_scsi_mode" property at first, and then the "virtio-scsi" driver in the instance is uninstalled, there will be no method to make the volume not used with "virtio-scsi" controller when booting from it.<br>
><br>
> For the first situation, is it suitable to set corresponding metadata to volume? Should we use metadata or admin_metadata? I notice that volumes will have "attach_mode" and "readonly" admin_metadata and empty metadata after created, and I can't find the respective use cases for admin_metada and metadata.<br>
><br>
> For the second situation, what is the better way to handle it?<br>
><br>
> Any advice?<br>
><br>
><br>
> ----------<br>
> zhangleiqiang (Trump)<br>
><br>
> Best Regards<br>
><br>
><br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
<br>
</div></div><span class=""><font color="#888888">--<br>
Duncan Thomas<br>
</font></span><div class=""><div class="h5"><br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">-------------------<div>Best Regards</div><div><br></div><div>Trump.Zhang</div></div>
</div></div></div>