lp:~kirkland/maas/1287224

Created by Dustin Kirkland  on 2014-08-05 and last modified on 2014-08-05
Get this branch:
bzr branch lp:~kirkland/maas/1287224
Only Dustin Kirkland  can upload to this branch. If you are Dustin Kirkland  please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Dustin Kirkland 
Project:
MAAS
Status:
Merged

Recent revisions

2652. By Dustin Kirkland  on 2014-08-05

Enable MAAS to produce friendly, pronounceable hostnames, LP: #1287224

Ship two culled word lists -- 1,315 adjectives, and 977 nouns. This gives
us a possible 1,284,755 combinations of adjective-noun, which is more than
enough to cover any Class B, /12 network (255.240.0.0) and its 1,048,576
unique IP addresses.

You might notice that this model is quite similar to Ubuntu's friendly
release naming scheme, such as "Warty Warthog".

These word lists are shipped and installed in /etc/maas/adjectives.txt
and /etc/maas/nouns.txt, such that they are easily customized, edited,
or overwritten by any MAAS administrator.

The modified code updates the generate_hostname() hostname function
to try and generate an 'adjective-noun' hostname, but if any exception
occurs (such as a wordlist read exception), it will fall back to the
legacy 5-random-non-ambiguous-character hostname.

A test is included to ensure that all randomly generated hostnames
fit the model of "word hyphen word". However, note that it's probably
not able to open and read the word lists, since they're installed on disk.

2651. By Graham Binns on 2014-08-05

[r=julian-edwards][bug=1351451][author=gmb] Make the API's release() method allow users to call release() on a node that's marked broken. Also, make sure that Node.release() won't move a BROKEN node back to READY.

2650. By Julian Edwards on 2014-08-04

[r=gmb][bug=][author=julian-edwards] Add functionality to the API to request specific IPs for STICKY addresses on nodes.

2649. By Julian Edwards on 2014-08-04

[r=gmb][bug=][author=julian-edwards] Add ability to request a specific static IP address.

2648. By Julian Edwards on 2014-08-04

[r=julian-edwards][bug=][author=julian-edwards] Change maaslog format for messages about nodes so that the hostname is the first thing and the system_id is no longer present.

2647. By Julian Edwards on 2014-08-01

[r=julian-edwards][bug=][author=julian-edwards] Wind down some INFO logs for periodic tasks to DEBUG as they swamp the log.

2646. By Raphaël Badin on 2014-08-01

[r=blake-rouse][bug=][author=rvb] Add node event log UI: the latest 5 events are displayed on the node view page along with a link to see the full node event log.

2645. By Raphaël Badin on 2014-08-01

[r=rvb][bug=][author=rvb] Fix typo in event description.

2644. By Gavin Panella on 2014-08-01

[r=rvb][bug=][author=allenap] Ensure that transactions always use the SERIALIZABLE isolation level.

Additionally, move from TransactionMiddleware to ATOMIC_REQUESTS; the former has been deprecated by the Django project.

2643. By Jason Hobbs on 2014-07-31

[r=andreserl][bug=1350948][author=jason-hobbs] Treat soft like a command not like an option for off.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:maas/trunk
This branch contains Public information 
Everyone can see this information.