<div dir="ltr">Now the HPcloud provide Tag feature, now can tag the vm.<div><br></div><div>maybe we study how to achieve the feature in HPcloud.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 10:02 AM, Huangtianhua <span dir="ltr"><<a href="mailto:huangtianhua@huawei.com" target="_blank">huangtianhua@huawei.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ZH-CN" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks very much.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">I have register the blueprints for nova.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="https://blueprints.launchpad.net/nova/+spec/add-tags-for-os-resources" target="_blank">https://blueprints.launchpad.net/nova/+spec/add-tags-for-os-resources</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">The simple plan is:<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Add the tags api (create tags/delete tags/describe tags) for v3 api<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Change the implement for instance from “metadata” to “tags”<u></u><u></u></span></p>
<p style="margin-left:18.0pt;text-indent:0cm"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Your suggestions?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks
<u></u><u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"></p><div class=""><b><span style="font-size:10.0pt">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt"> Jay Pipes [mailto:<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>]
<br>
</span></div><b><span style="font-size:10.0pt">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt"> 2014</span><span style="font-size:10.0pt">年<span lang="EN-US">4</span>月<span lang="EN-US">22</span>日<span lang="EN-US"> 3:46<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> OpenStack Development Mailing List (not for usage questions)<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [openstack-dev]
</span>答复<span lang="EN-US">: [Nova][Neutron][Cinder][Heat]Should we support tags for os resources?<u></u><u></u></span></span><p></p>
</div><div><div class="h5">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Absolutely. Feel free.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Mon, Apr 21, 2014 at 4:48 AM, Huangtianhua <<a href="mailto:huangtianhua@huawei.com" target="_blank">huangtianhua@huawei.com</a>> wrote:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I plan to register a blueprints in nova for record this. Can I?<br>
<br>
<br>
-----</span>邮件原件<span lang="EN-US">-----<br>
</span>发件人<span lang="EN-US">: Jay Pipes [mailto:<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>]<br>
</span>发送时间<span lang="EN-US">: 2014</span>年<span lang="EN-US">4</span>月<span lang="EN-US">20</span>日<span lang="EN-US"> 21:06<br>
</span>收件人<span lang="EN-US">: <a href="mailto:openstack-dev@lists.openstack.org" target="_blank">
openstack-dev@lists.openstack.org</a><br>
</span>主题<span lang="EN-US">: Re: [openstack-dev] [Nova][Neutron][Cinder][Heat]Should we support tags for os resources?<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
On Sun, 2014-04-20 at 08:35 +0000, Huangtianhua wrote:<br>
> Hi all:<br>
><br>
> Currently, the EC2 API of OpenStack only has tags support (metadata)<br>
> for instances. And there has already a blueprint about to add support<br>
> for volumes and volume snapshots using “metadata”.<br>
><br>
> There are a lot of resources such as<br>
> image/subnet/securityGroup/networkInterface(port) are supported add<br>
> tags for AWS.<br>
><br>
> I think we should support tags for these resources. There may be no<br>
> property “metadata" for these resources, so we should to add<br>
> “metadata” to support the resource tags, the change related API.<br>
<br>
Hi Tianhua,<br>
<br>
In OpenStack, generally, the choice was made to use maps of key/value pairs instead of lists of strings (tags) to annotate objects exposed in the REST APIs. OpenStack REST APIs inconsistently call these maps of key/value pairs:<br>
<br>
* "properties" (Glance, Cinder Image, Volume respectively)<br>
* "extra_specs" (Nova InstanceType)<br>
* "metadata" (Nova Instance, Aggregate and InstanceGroup, Neutron)<br>
* "metadetails" (Nova Aggregate and InstanceGroup)<br>
* "system_metadata" (Nova Instance -- differs from "normal" metadata in that the key/value pairs are 'owned' by Nova, not a user...)<br>
<br>
Personally, I think tags are a cleaner way of annotating objects when the annotation is coming from a normal user. Tags represent by far the most common way for REST APIs to enable user-facing annotation of objects in a way that is easy to search on. I'd love
to see support for tags added to any searchable/queryable object in all of the OpenStack APIs.<br>
<br>
I'd also like to see cleanup of the aforementioned inconsistencies in how maps of key/value pairs are both implemented and named throughout the OpenStack APIs. Specifically, I'd like to see this implemented in the next major version of the Compute API:<br>
<br>
* Removal of the "metadetails" term<br>
* All key/value pairs can only be changed by users with elevated privileged system-controlled (normal users should use tags)<br>
* Call all these key/value pair combinations "properties" -- technically, "metadata" is "data about data", like the size of an integer. These key/value pairs are just data, not data about data.<br>
* Identify key/value pairs that are relied on by all of Nova to be a specific key and value combination, and make these things actual real attributes on some object model -- since that is a much greater guard for the schema of an object and enables greater
performance by allowing both type safety of the underlying data and removes the need to search by both a key and a value.<br>
<br>
Best,<br>
-jay<br>
<br>
<br>
<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US">_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">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>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">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><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div></div></div>
</div>
<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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Shake Chen<br><br>
</div>