<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)">Yes, currently Nova support that for show/update/delete server APIs etc (both v2 and v2.1) and python-novaclient too. But I think that was old behaviour and for ec2 API mainly?</div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)"><br></div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)">I searched on ec2 repo [1] and they get the instance from nova using UUID, i did not find any place they are fetching using id. Hut not sure if external interface directly fetch that on nova by 'id'.</div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)"><br></div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)">But apart from that, may be some users using 'id' instead of 'uuid' but that was not recommended or documented anywhere So in that case can we remove this old behaviour without version bump?</div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)"><br></div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)"><br></div><div class="gmail_default" style="font-family:monospace,monospace;color:rgb(39,78,19)">[1].. <a href="https://github.com/openstack/ec2-api">https://github.com/openstack/ec2-api</a></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Regards<br>Ghanshyam Mann<br></div></div>
<br><div class="gmail_quote">On Tue, Feb 16, 2016 at 11:24 AM, Anne Gentle <span dir="ltr"><<a href="mailto:annegentle@justwriteclick.com" target="_blank">annegentle@justwriteclick.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 15, 2016 at 6:03 PM, 少合冯 <span dir="ltr"><<a href="mailto:lvmxhster@gmail.com" target="_blank">lvmxhster@gmail.com</a>></span> wrote:<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"><div dir="ltr"><div>I guess others may ask the same questions. </div><div><br></div><div>I read the nova API doc: </div><div>such as this API: </div><div><a href="http://developer.openstack.org/api-ref-compute-v2.1.html#showServer" target="_blank">http://developer.openstack.org/api-ref-compute-v2.1.html#showServer</a><br></div><div><br></div><div><div style="min-height:1px;padding-right:15px;padding-left:15px;float:left;width:365.625px;color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px">GET /v2.1/​{tenant_id}​/servers/​{server_id}​</div><div style="min-height:1px;padding-right:15px;padding-left:15px;float:left;width:365.625px;color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px"><strong>Show server details</strong></div></div><div><br></div><div><br></div><div><b style="color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px">Request parameters</b><br></div><div><table style="border-collapse:collapse;border-spacing:0px;max-width:100%;width:847.273px;margin-bottom:20px;border:1px solid rgb(221,221,221);color:rgb(83,83,83);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:18.1818px"><thead><tr><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Parameter</th><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Style</th><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Type</th><th style="padding:8px;line-height:1.42857;vertical-align:bottom;border-width:0px 1px 2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-right-style:solid;border-left-style:solid;border-right-color:rgb(221,221,221);border-left-color:rgb(221,221,221)">Description</th></tr></thead><tbody><tr><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">tenant_id</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">URI</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)">csapi:UUID</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221);background-color:rgb(249,249,249)"><p style="margin:0px 0px 10px">The UUID of the tenant in a multi-tenancy cloud.</p></td></tr><tr><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)">server_id</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)">URI</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)">csapi:UUID</td><td style="padding:8px;line-height:1.42857;vertical-align:top;border:1px solid rgb(221,221,221)"><p style="margin:0px 0px 10px">The UUID of the server.</p></td></tr></tbody></table></div><div><br></div><div>But I can get the server by DB index: </div><div><br></div><div>curl -s -H X-Auth-Token:6b8968eb38df47c6a09ac9aee81ea0c6 <a href="http://192.168.2.103:8774/v2.1/f5a8829cc14c4825a2728b273aa91aa1/servers/2" target="_blank">http://192.168.2.103:8774/v2.1/f5a8829cc14c4825a2728b273aa91aa1/servers/2</a><br></div><div><div>{</div><div>    "server": {</div><div>        "OS-DCF:diskConfig": "MANUAL",</div><div>        "OS-EXT-AZ:availability_zone": "nova",</div><div>        "OS-EXT-SRV-ATTR:host": "shaohe1",</div><div>        "OS-EXT-SRV-ATTR:hypervisor_hostname": "shaohe1",</div><div>        "OS-EXT-SRV-ATTR:instance_name": "instance-00000002",</div><div>        "OS-EXT-STS:power_state": 1,</div><div>        "OS-EXT-STS:task_state": "migrating",</div><div>        "OS-EXT-STS:vm_state": "error",</div><div>        "OS-SRV-USG:launched_at": "2015-12-18T07:41:00.000000",</div><div>        "OS-SRV-USG:terminated_at": null,</div></div><div>        ......</div><div>    }</div><div>}</div><div><br></div><div>and the code really allow it use  DB index</div><div><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1939" target="_blank">https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1939</a><br></div></div>
<br></blockquote><div><br></div><div>Nice find. Can you log this as an API bug and we'll triage it -- can even help you fix it on the site if you like. </div><div><br></div><div><a href="https://bugs.launchpad.net/openstack-api-site/+filebug" target="_blank">https://bugs.launchpad.net/openstack-api-site/+filebug</a><br></div><div><br></div><div>Basically, click that link, write a short summary, then copy and paste in this email's contents, it has lots of good info.</div><div><br></div><div>Let me know if you'd also like to fix the bug on the site.</div><div><br></div><div>And hey nova team, if you think it's actually an API bug, we'll move it over to you.</div><div><br></div><div>Thanks for reporting it!</div><div>Anne</div><div><br></div><div> </div><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">__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div>Anne Gentle</div><div>Rackspace</div><div>Principal Engineer</div><div><a href="http://www.justwriteclick.com" target="_blank">www.justwriteclick.com</a></div></div></div>
</font></span></div></div>
<br>__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>