Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Use maas devices api for address allocation #2750
Conversation
and others
added some commits
Jun 3, 2015
jujubot
merged commit 9a6137f
into
juju:master
Jul 9, 2015
|
This proposal was landed as it is actually identical to #2749 which was instead intended to be a merge the other way. |
voidspace
deleted the
voidspace:merge-devices-api-maas
branch
Oct 6, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
voidspace commentedJul 9, 2015
Where address allocation is enabled, along with MAAS > 1.8, the new devices API will be used for container address allocation and deallocation. This allows MAAS to track that IP addresses for containers are associated with their host, and if the host goes away (for example with "destroy-environment --force" then the associated devices should be deleted and their IP addresses released. This prevents IP addresses leaking when "destroy-environment --force" is used.
The devices API requires a MAC address, and the device must be created before the address can be allocated which we need to do before the container is started (as the address is used in the container template to configure networking). This means we need to generate MAC addresses, and use them in the container templates (both lxc and kvm).
This PR includes generating MAC addresses on the API server and storing them with IP addresses in state, to be used for both IP address allocation and releasing.