← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2033401] Re: sanitize_hostname is not alligned with idna2 specification

 

Nova does not support internationalised hostnames so it does not support
https://www.rfc-editor.org/rfc/rfc5891

the conversion of the display name to a hostname is the best effort and
we make no guarantee of its validity for DNS.

the conversion utility is intended to produce a valid hostname name but
it not intended to ba a domain name

nova could be enhanced to provide that functionality but  i would be
more inclined to remove the defautlign of the host name by converting
the displayname and instead use the other fallback we already have which
is to default to server-<uuid> in a new API microversion.


** Changed in: nova
       Status: In Progress => Opinion

-- 
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/2033401

Title:
  sanitize_hostname is not alligned with idna2 specification

Status in OpenStack Compute (nova):
  Opinion

Bug description:
  DNSmask was switched to IDN2 specification more than 4 year ago Debian package [0]
  According to specification name with -- in 3rd and 4th characters is not allowed. See RFC 5891 [1]
  As result hostnames for example (rf--xx), generates error on DNSmasq side, and no longer works

  Aug 29 10:55:32 dnsmasq[243]: bad DHCP host name at line 2 of
  /var/lib/neutron/dhcp/6531ba54-0aa1-4b3b-b098-49bb0cfd586b/host

  cat /var/lib/neutron/dhcp/6531ba54-0aa1-4b3b-b098-49bb0cfd586b/host
  fa:16:3e:d9:ba:17,amphora-ccee6c76-e565-496d-b841-f485a99dc865.openstack.internal.,10.10.10.142
  fa:16:3e:c8:93:56,re--test-database-7ezitojxojun-server-01-lrdygbkrxkho.openstack.internal.,10.10.10.209
  fa:16:3e:29:dc:fc,host-10-10-10-45.openstack.internal.,10.10.10.45
  fa:16:3e:1a:be:3f,host-10-10-10-103.openstack.internal.,10.10.10.103
  fa:16:3e:bd:ab:2a,host-10-10-10-1.openstack.internal.,10.10.10.1
  fa:16:3e:df:b7:c1,host-10-10-10-118.openstack.internal.,10.10.10.118

  [0] https://github.com/imp/dnsmasq/commit/5a9133498562a0b69b287ad675ed3946803ea90c
  [1] https://www.rfc-editor.org/rfc/rfc5891#section-4.2.3.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2033401/+subscriptions



References