yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #38427
[Bug 1495388] [NEW] The instance hostname didn't match the RFC 952 and 1123's definition
Public bug reported:
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.
** Affects: nova
Importance: Undecided
Status: New
--
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):
New
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
Follow ups