[Openstack] Instance Name in DB

Reza Bakhshayeshi reza.b2008 at gmail.com
Wed Apr 23 10:21:56 UTC 2014


Thanks Chris and Jay for your help.


On 23 April 2014 13:04, Jay Lau <jay.lau.513 at gmail.com> wrote:

> Chris is right, please take a look at
> [1]
> https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L177
> [2] https://github.com/openstack/nova/blob/master/nova/db/api.py#L43
>
>
> 2014-04-23 16:16 GMT+08:00 Chris Behrens <cbehrens at codestud.com>:
>
> 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).
>>
>> On Apr 23, 2014, at 1:10 AM, Reza Bakhshayeshi <reza.b2008 at gmail.com>
>> wrote:
>>
>> Thanks Chris for your reply,
>> but I meant the "OS-EXT-SRV-ATTR:instance_name" row in "nova show
>> <instance uuid>" result.
>>
>>
>> On 23 April 2014 12:20, Chris Behrens <cbehrens at codestud.com> wrote:
>>
>>> In the DB, that should be the display_name column of instances table.
>>>
>>> - Chris
>>>
>>> On Apr 22, 2014, at 11:56 PM, Reza Bakhshayeshi <reza.b2008 at gmail.com>
>>> wrote:
>>>
>>> Hi,
>>>
>>> How I can find the "instance_name" in database?
>>> (it appears in the result of nova show)
>>> I have checked the instances table in nova database but I couldn't find
>>> it.
>>>
>>> Thanks,
>>> Reza
>>>
>>> _______________________________________________
>>> Mailing list:
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>> Post to     : openstack at lists.openstack.org
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>>
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
>
> --
> Thanks,
>
> Jay
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140423/c198ff19/attachment.html>


More information about the Openstack mailing list