<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">Thanks Chris and Jay for your help.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 April 2014 13:04, Jay Lau <span dir="ltr"><<a href="mailto:jay.lau.513@gmail.com" target="_blank">jay.lau.513@gmail.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">Chris is right, please take a look at <br>[1] <a href="https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L177" target="_blank">https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L177</a><br>


[2] <a href="https://github.com/openstack/nova/blob/master/nova/db/api.py#L43" target="_blank">https://github.com/openstack/nova/blob/master/nova/db/api.py#L43</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2014-04-23 16:16 GMT+08:00 Chris Behrens <span dir="ltr"><<a href="mailto:cbehrens@codestud.com" target="_blank">cbehrens@codestud.com</a>></span>:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Without looking at code, that's probably the magic name generated on the fly based on the instance_name_template config setting. It's not stored in the DB. It's built based on other attributes of the instance (by default I believe it's still the primary key (id) of that row in the DB).</div>


<div><div><div><br>On Apr 23, 2014, at 1:10 AM, Reza Bakhshayeshi <<a href="mailto:reza.b2008@gmail.com" target="_blank">reza.b2008@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">Thanks Chris for your reply, </div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">but I meant the "OS-EXT-SRV-ATTR:instance_name" row in "nova show <instance uuid>" result.</div>




</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 April 2014 12:20, Chris Behrens <span dir="ltr"><<a href="mailto:cbehrens@codestud.com" target="_blank">cbehrens@codestud.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="auto"><div>In the DB, that should be the display_name column of instances table.</div><div><br></div><div>- Chris</div>




<div><div><div><br>On Apr 22, 2014, at 11:56 PM, Reza Bakhshayeshi <<a href="mailto:reza.b2008@gmail.com" target="_blank">reza.b2008@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">

<div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">






How I can find the "instance_name" in database?</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">(it appears in the result of nova show)</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">






I have checked the instances table in nova database but I couldn't find it.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">






Thanks,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000066">Reza</div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span><br>




<span>Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a></span><br><span>Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></span><br>




</div></blockquote></div></blockquote></div><br></div>
</div></blockquote></div></div></div><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div>
</font></span></div>
</blockquote></div><br></div>