Give instance default hostname if hostname is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Low
|
KATO Tomoyuki |
Bug Description
https:/
commit db45b1eca8a3db8
Author: Eli Qiao <email address hidden>
Date: Thu Sep 17 13:57:24 2015 +0800
Give instance default hostname if hostname is empty
Instance hostname is generated by displayname, currently, displayname
can be '----', and other Non-ASCII character such as Chinese characters,
sanitize_
This patch adds a helper function _default_host_name to give an instance
default name if sanitize_hostname returns empty hostname. And,
sanitize_
Also Window, Linux, and Dnsmasq have different limitation:
Windows: 255 (net_bios limit to 15, but window will truncate it)
Linux: 64
Dnsmasq: 63
Due to nova-network will leverage dnsmasq to set hostname, so we chose
63.
Besides, added more test cases to cover sanitize_hostname.
DocImpact
Closes-Bug: #1495388
Co-authored-by: Alex Xu <email address hidden>
(cherry picked from commit bc6f30de9533036
Conflicts:
nova/
nova/
nova/utils.py
Change-Id: I443b51e0576cf6
Changed in openstack-manuals: | |
assignee: | nobody → Jaiveek Shah (jaiveek-shah) |
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/336965
Review: https:/