<div dir="ltr">@Tripp, Thanks for your reply and info.<div><br></div><div>I am also thinking if it is proper to add support for updating the volume's glance_image_metadta to reflect the "newest status" of volume.</div>
<div><br></div><div id="">However, there may be alternative ways to achieve it:</div><div id="">1. Using the volume's metatadata</div><div id="">2. Using the volume's admin_metadata</div><div id=""><br></div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">
So I am wondering which is the most proper method.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-07 12:32 GMT+08:00 Tripp, Travis S <span dir="ltr"><<a href="mailto:travis.tripp@hp.com" target="_blank">travis.tripp@hp.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A few days ago I entered a client blueprint on the same topic [1], but maybe it has a server side dependency as well?<br>
<br>
When it comes to scheduling, as far as I have been able to tell from looking at Nova code, the scheduler is only getting volume_image_metadata and not the regular cinder_metadata. So, if you want to add some volume_image_metadata for scheduler filtering or for passing compute driver options through after creating a volume, there doesn't seem to be a way to do this from the python-cinderclient. If I'm wrong, please correct me.<br>
<br>
[1] <a href="https://blueprints.launchpad.net/python-cinderclient/+spec/support-volume-image-metadata" target="_blank">https://blueprints.launchpad.net/python-cinderclient/+spec/support-volume-image-metadata</a><br>
<div class="im HOEnZb"><br>
> -----Original Message-----<br>
> From: Mike Perez [mailto:<a href="mailto:thingee@gmail.com">thingee@gmail.com</a>]<br>
> Sent: Tuesday, May 06, 2014 9:10 PM<br>
> To: OpenStack Development Mailing List (not for usage questions)<br>
> Subject: Re: [openstack-dev] [Cinder] Confusion about the respective use cases<br>
> for volume's admin_metadata, metadata and glance_image_metadata<br>
><br>
</div><div class="HOEnZb"><div class="h5">> On 06:31 Wed 07 May , Trump.Zhang wrote:<br>
> > Thanks for your further instructions.<br>
> ><br>
> > I think the situations I mentioned are the reasonable use cases. They<br>
> > are similar to the "bootable" volume use cases, user can create an<br>
> > empty volume and install os in it from an image or create bootable<br>
> > volume from instance ([1]).<br>
> ><br>
> > If volume metadata is not intended to be interpreted by cinder or nova<br>
> > as meaning anything, maybe Cinder needs to add support for updating<br>
> > some of glance_image_metadata of volume or introduce new property for<br>
> > volume like "bootable" ? I don't think these two methods are good either.<br>
> ><br>
> > [1] <a href="https://blueprints.launchpad.net/cinder/+spec/add-bootable-option" target="_blank">https://blueprints.launchpad.net/cinder/+spec/add-bootable-option</a><br>
><br>
> Volume already has a bootable field:<br>
><br>
> <a href="https://github.com/openstack/cinder/blob/master/cinder/db/sqlalchemy/model" target="_blank">https://github.com/openstack/cinder/blob/master/cinder/db/sqlalchemy/model</a><br>
> s.py#L122<br>
><br>
> --<br>
> Mike Perez<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>
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>