Ask Your Question

instance hostname vs display_name [closed]

asked 2014-12-31 01:08:49 -0500

Eric Xie gravatar image

hi stackers, I use stable icehouse branch. For instances table in nova-db, there are hostname and display_name. Check the source and find hostname same as display_name. Can anyone explain the differents between them? Thanks~

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Eric Xie
close date 2016-09-27 19:25:23.136105

2 answers

Sort by ยป oldest newest most voted

answered 2015-01-04 19:57:10 -0500

The display name is always the name that is specified by the client/tenant user. The hostname is always the sanitized version of the display name which conforms to RFC-952 and RFC 1123 specs.

Here is the Python code that does the sanitation work:

edit flag offensive delete link more


Thanks. And why hostname exist?

Eric Xie gravatar imageEric Xie ( 2015-01-05 00:15:59 -0500 )edit

answered 2015-01-05 00:24:55 -0500

trung-t-trinh gravatar image

In Nova source code, "hostname" or "host" is the name of the computing node on which the VM instance is launched. It's stored in this one: instance['host']

edit flag offensive delete link more


"hostname" for instance, "host" for the name of computing node.

Eric Xie gravatar imageEric Xie ( 2015-02-09 17:09:13 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-31 01:08:49 -0500

Seen: 743 times

Last updated: Jan 05 '15