<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-01-17 10:26 GMT+08:00 Matt Riedemann <span dir="ltr"><<a href="mailto:mriedem@linux.vnet.ibm.com" target="_blank">mriedem@linux.vnet.ibm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 1/16/2017 7:12 PM, Zhenyu Zheng wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi Nova,<br>
<br>
I just discovered something interesting, the tag has a limited length,<br>
and in the current implementation, it is 60 in the tag object definition:<br>
<a href="http://git.openstack.org/cgit/openstack/nova/tree/nova/objects/tag.py#n18" rel="noreferrer" target="_blank">http://git.openstack.org/cgit/<wbr>openstack/nova/tree/nova/objec<wbr>ts/tag.py#n18</a><br>
<br>
but 80 in the db model:<br>
<a href="http://git.openstack.org/cgit/openstack/nova/tree/nova/db/sqlalchemy/models.py#n1464" rel="noreferrer" target="_blank">http://git.openstack.org/cgit/<wbr>openstack/nova/tree/nova/db/sq<wbr>lalchemy/models.py#n1464</a><br>
<br>
As asked in the IRC and some of the cores responded(thanks to Matt and<br>
Jay), it seems to be an<br>
oversight and has no particular reason to do it this way.<br>
<br>
Since we have already created a 80 long space in DB and the current<br>
implementation might be confusing,  maybe we should expand the<br>
limitation in tag object definition to 80. Besides, users can enjoy<br>
longer tags.<br>
<br>
And the question could be, does anyone know why it is 60 in object but<br>
80 in DB model? is it an oversight or we have some particular reason?<br>
<br>
If we could expand it to be the same as DB model (80 for both), it is ok<br>
to do this tiny change without microversion?<br>
<br>
Thanks,<br>
<br>
Kevin Zheng<br>
<br>
<br></div></div>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br>
</blockquote>
<br>
As I said in IRC, the tags feature took a long time to land (several releases) so between the time that the spec was written and then the data model patch and finally the REST API change, we might have just totally missed that the length of the column in the DB was different than what was allowed in the REST API.<br>
<br>
I'm not aware of any technical reason why they are different. I'm hoping that Sergey Nikitin might remember something about this. But even looking at the spec:<br>
<br>
<a href="https://specs.openstack.org/openstack/nova-specs/specs/liberty/approved/tag-instances.html" rel="noreferrer" target="_blank">https://specs.openstack.org/op<wbr>enstack/nova-specs/specs/liber<wbr>ty/approved/tag-instances.html</a><br>
<br>
The column was meant to be 60 so my guess is someone noticed that in the REST API review but missed it in the data model review.<br></blockquote><div><br></div><div>I can't remember the detail also. Hoping Sergey can remember something also.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
As for needing a microversion of changing this, I tend to think we don't need a microversion because we're not restricting the schema in the REST API, we're just increasing it to match the length in the data model. But I'd like opinions from the API subteam about that.<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>We still need microversion for the user to discover the max length between different cloud deployments.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
-- <br>
<br>
Thanks,<br>
<br>
Matt Riedemann<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</font></span></blockquote></div><br></div></div>