2.0 beta 14 + openstack: generated hostnames exceed 255 byte limit

Bug #1615601 reported by James Page
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Andrew Wilkins

Bug Description

I'm using juju 2.0 beta 14 with the openstack provider; the hostnames generated for instances are quite long, which when combined with the domain (openstacklocal), push the total hostname over the limit that most OS's can deal with:

  juju-fd943864-df2e-4da1-8e7d-5116a87d4e7c-machine-14.openstacklocal

In my context (testing OpenStack ontop of OpenStack), this causes live-migration to fail as qemu attempts to parse the hostname string, but will only read the first 63 characters (the example above is 67).

The 'juju-fd943864-df2e-4da1-8e7d-5116a87d4e7c-machine-14' should be more efficient in its use of the total permitted length.

Reference:

http://stackoverflow.com/questions/8724954/what-is-the-maximum-number-of-characters-for-a-host-name-in-unix

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Changed in juju:
assignee: nobody → Alexis Bruemmer (alexis-bruemmer)
Ryan Beisner (1chb1n)
tags: added: openstack-provider uosci
Changed in juju:
milestone: 2.0.0 → 2.0.1
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Please be aware that this is a 2.0 adoption blocker for OpenStack CI to go all-in with Juju 2, as we do the majority of our charm testing on top of OpenStack using Juju.

Revision history for this message
Ryan Beisner (1chb1n) wrote :

With "juju-fd943864-df2e-4da1-8e7d-5116a87d4e7c-machine-14" being 53 characters, that doesn't give enterprises much to work with for FQDNs including their domain name: 10 characters aiui.

Revision history for this message
Ryan Beisner (1chb1n) wrote :
tags: added: ateam
Changed in juju:
milestone: 2.0.1 → 2.0.0
Andrew Wilkins (axwalk)
Changed in juju:
status: Triaged → In Progress
assignee: Alexis Bruemmer (alexis-bruemmer) → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :

I've got a change that I'll propose soon that names the instances like:

    juju-<uuid-suffix>-<model-name>-N

where uuid-suffix is the last 6 characters of the model UUID.

e.g. juju-df7591-controller-0.

The model name is really there just for informational purposes, so an operator can tell at a glance what model the instance belongs to. If it's more useful to have super short names, we could remove that.

Andrew Wilkins (axwalk)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.