MAAS random generated hostnames are not pronounceable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Dustin Kirkland |
Bug Description
I understand that sabdfl specifically requested 5-character machine names in MAAS (rather than MAC or IP based names like AWS).
I'd like to make an additional request from a usability perspective... Can we please make the MAAS machine names pronounceable? It's really, really difficult to talk about machines in a cluster when the name is "kslnw" or "xpxrqm".
Here's a suggestion:
$ sudo apt-get install wamerican
$ shuf -n 1 /usr/share/
That gives much more readable, though still random, machine names. That dictionary has 100K words in it. There's also wbritish, wcanadian. See the scowl source package or http://
Related branches
- Julian Edwards (community): Approve
-
Diff: 1331 lines (+1152/-62)8 files modifiedsrc/maasserver/migrations/0102_candidate_name.py (+382/-0)
src/maasserver/migrations/0103_candidate_names.py (+630/-0)
src/maasserver/models/__init__.py (+6/-5)
src/maasserver/models/candidatename.py (+87/-0)
src/maasserver/models/node.py (+7/-26)
src/maasserver/models/tests/test_candidatename.py (+32/-0)
src/maasserver/models/tests/test_node.py (+7/-30)
src/maasserver/tests/test_api_enlistment.py (+1/-1)
tags: | added: micro-cluster |
summary: |
- MAAS does not have pronounceable machine names + MAAS random generated hostnames are not pronounceable |
Changed in maas: | |
status: | Opinion → In Progress |
assignee: | nobody → Dustin Kirkland (kirkland) |
no longer affects: | maas (Ubuntu) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
$ sdw=(...) # The "Seven Dirty Words" 0]}|${sdw[ 1]}|... )" /usr/share/ dict/american- english | wc -l
$ egrep -i "(${sdw[
38
I assume we'd want to use a wordlist without profanity?
There are also only 72945 words without punctuation in that list, but MAAS has bigger ambitions! :)
To solve both these problems we could select, say, 500 words that are safe and memorable along with a numeric suffix.
Another option is to use subdomains for clusters. Clusters are only meant to contain a few hundred machines, so a 500-long word list would probably suffice if it were combined with a subdomain (selected from another word list?).