Revision history [back]

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:

https://github.com/openstack/nova/blob/master/nova/utils.py#L631