yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #39870
[Bug 1495388] Re: The instance hostname didn't match the RFC 952 and 1123's definition
** Also affects: nova/kilo
Importance: Undecided
Status: New
** Changed in: nova/kilo
Milestone: None => 2015.1.2
** Changed in: nova/kilo
Status: New => Incomplete
** Changed in: nova/kilo
Status: Incomplete => Fix Committed
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1495388
Title:
The instance hostname didn't match the RFC 952 and 1123's definition
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) kilo series:
Fix Committed
Bug description:
The instance hostname is convert from instance's name. There is method
used to do that
https://github.com/openstack/nova/blob/master/nova/utils.py#L774
But looks like this method didn't match all the cases described in the
RFC
For example, if the host name just one character, like 'A', this
method return 'A‘ also, this isn't allowed by RFC.
And the hostname was updated at wrong place: https://github.com/openstack/nova/blob/master/nova/compute/api.py#L641
It just update the instance db entry again after instance entry creation. We can populate the hostname before instance creation, then we can save one db operation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1495388/+subscriptions
References