API needed to allocate and return an extra IP for a container
Bug #1316627 reported by
Dimiter Naydenov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Julian Edwards |
Bug Description
We need an explicit MAAS API call that juju can use to request an additional IP address on a MAAS DHCP managed network, so we can use the address returned by the call to assign it to a new container. I know this happens automatically now, but in order to support both EC2 and MAAS (and other clouds) in the same juju networking model, we need an explicit API call.
In juju, there will be a method like instance.
Related branches
lp:~julian-edwards/maas/api-reserve-user-ip
- Raphaël Badin (community): Approve
-
Diff: 318 lines (+256/-2)4 files modifiedsrc/maasserver/api.py (+76/-0)
src/maasserver/testing/factory.py (+2/-2)
src/maasserver/tests/test_api_ipaddresses.py (+174/-0)
src/maasserver/urls_api.py (+4/-0)
Changed in maas: | |
status: | Triaged → In Progress |
importance: | Wishlist → High |
milestone: | none → 1.6.0 |
assignee: | nobody → Julian Edwards (julian-edwards) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The way that containers are sprung up inside nodes will have to significantly change I think, because juju is expecting them to behave like maas-controller nodes, but maas doesn't know anything about them.