<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto;"><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><span style="-webkit-text-size-adjust: auto;">One quick question, do you think there is a potential backward-capability breaking issue for end user or ISV if we remove existing </span><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">standardizing/normalizing logic? I'd like to know the gains/advantages on this "fix".</span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">thanks,</span></div><div><span style="-webkit-text-size-adjust: auto;">zhiyan<br></span><br><span style="-webkit-text-size-adjust: auto;">Sent from my iPad</span></div><div style="-webkit-text-size-adjust: auto;"><br>On 2014年1月26日, at 23:49, Fei Long Wang <<a href="mailto:flwang@cn.ibm.com">flwang@cn.ibm.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div>
<p><font size="2" face="sans-serif">Hey Jay, thanks for calling my name correctly :) </font><br>
<br>
<font size="2" face="sans-serif">Wang Hong, feel free to open a bug to track this. And we can get more info/comments when the patch is reviewed. Thanks.</font><br>
<br>
<br>
<font size="2" face="sans-serif">Thanks & Best regards,<br>
Fei Long Wang (王飞龙)<br>
---------------------------------------------------------------------<br>
Tech Lead of Nitrogen (SME team)<br>
Cloud Solutions and OpenStack Development<br>
Tel: 8610-82450513 | T/L: 905-0513 <br>
Email: <a href="mailto:flwang@cn.ibm.com">flwang@cn.ibm.com</a><br>
China Systems & Technology Laboratory in Beijing<br>
---------------------------------------------------------------------<br>
</font><br>
<br>
<graycol.gif><font size="2" color="#424282" face="sans-serif">Jay Pipes ---01/26/2014 11:20:40 PM---On Sun, 2014-01-26 at 18:48 +0800, Fei Long Wang wrote: > Hi Wang Hong,</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Jay Pipes <<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">Fei Long Wang/China/IBM@IBMCN, </font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">01/26/2014 11:20 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [openstack-dev] [glance]A question abount the x-image-meta-property parameter.</font><br>
</p><hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">On Sun, 2014-01-26 at 18:48 +0800, Fei Long Wang wrote:<br>
> Hi Wang Hong,<br>
> <br>
> Good catch. I think the issue is caused by line 244-246, see<br>
> </font></tt><tt><font size="2"><a href="https://github.com/openstack/glance/blob/master/glance/common/utils.py#L244">https://github.com/openstack/glance/blob/master/glance/common/utils.py#L244</a></font></tt><tt><font size="2"> For the case-matter issue, I think it's a bug. But as for the - to _, I would like to listen Jay's opinion since who is the original author. And obviously, it's intentional change.<br>
<br>
Hi Wang Hong adnd Fei Long,<br>
<br>
It's been a long time since I wrote that :) To be honest, I'm not sure<br>
why -- other than just standardizing/normalizing the input, we did that.<br>
Perhaps it had something to do with vendor-specific properties that had<br>
a prefix that used hyphens, but I'm really not sure... perhaps I am<br>
getting too old :)<br>
<br>
Best,<br>
-jay<br>
<br>
> Inactive hide details for 王宏 ---01/26/2014 05:14:02 PM---Hi all. If<br>
> I use the following command to create an image:王宏 ---01/26/2014<br>
> 05:14:02 PM---Hi all. If I use the following command to create an<br>
> image:<br>
> <br>
> From: 王宏 <<a href="mailto:w.wanghong1@gmail.com">w.wanghong1@gmail.com</a>><br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>, <br>
> Date: 01/26/2014 05:14 PM<br>
> Subject: [openstack-dev] [glance]A question abount the<br>
> x-image-meta-property parameter.<br>
> <br>
> <br>
> <br>
> ______________________________________________________________________<br>
> <br>
> <br>
> <br>
> Hi all.<br>
> <br>
> If I use the following command to create an image: <br>
> curl -i -H "X-Auth-Token:268c536db05b435bb6e631158744e3f6" -H<br>
> "x-image-meta-property-IMAGE-TYPE:xxx" -H "x-image-meta-name:test" -X<br>
> POST </font></tt><tt><font size="2"><a href="http://127.0.0.1:9292/v1/images">http://127.0.0.1:9292/v1/images</a></font></tt><tt><font size="2"><br>
> <br>
> I will get the following results:<br>
> {"image": {"status": "queued", "deleted": false, "container_format":<br>
> null, "min_ram": 0, "updated_at": "2014-01-26T08:51:54", "owner":<br>
> "9a38c1cda5344dd288331b988739c834", "min_disk": 0, "is_public": false,<br>
> "deleted_at": null, "id": "696ab97d-0e6f-46f1-8570-b6db707a748b",<br>
> "size": 0, "name": "test", "checksum": null, "created_at":<br>
> "2014-01-26T08:51:54", "disk_format": null, "properties":<br>
> {"image_type": "xxx"}, "protected": false}}<br>
> <br>
> The capital letters in the property will be converted to lowercase<br>
> letters and "-" will be converted to "_"("IMAGE-TYPE"=>"image_type").<br>
> <br>
> Is it a bug? Thanks.<br>
> <br>
> Best regards.<br>
> wanghong_______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> </font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
> <br>
<br>
<br>
</font></tt><br>
</div></blockquote><blockquote type="cite" style="-webkit-text-size-adjust: auto;"><div><span>_______________________________________________</span><br><span>OpenStack-dev mailing list</span><br><span><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a></span><br><span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></span><br></div></blockquote></div></body></html>