← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1495388] Re: The instance hostname didn't match the RFC 952 and 1123's definition

 

** Changed in: nova/kilo
       Status: Fix Committed => Fix Released

-- 
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 Released

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