MAAS does not provide an API for reserving a static IP for a given MAC address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Graham Binns |
Bug Description
We have an SDN charm that is creating a VM on-the-fly which only DHCPs on the virtual nic to obtain an IP address. While they're currently arp'ing to "find" the IP that was obtained, this is very unreliable and racy.
the ipaddress API only allocates IPs but does not associate them with a MAC.
sticky ip only associates with MACs on a registered node, but the VM cannot be registered since it's a block box OS.
Neither of these fit the use case.
With the give_me_
This gives the deployer enough control to configure the charms before deployment with MAC and IP addresses used in charm relations.
Related branches
- Gavin Panella (community): Approve
- Raphaël Badin: Pending requested
- Andres Rodriguez: Pending requested
-
Diff: 479 lines (+270/-21)6 files modifiedsrc/maasserver/api/ip_addresses.py (+90/-10)
src/maasserver/api/tests/test_ipaddresses.py (+151/-3)
src/maasserver/exceptions.py (+6/-0)
src/maasserver/models/macaddress.py (+13/-6)
src/maasserver/models/tests/test_macaddress.py (+10/-0)
src/maasserver/testing/factory.py (+0/-2)
- Graham Binns (community): Approve
-
Diff: 1797 lines (+781/-129)25 files modifiedsrc/maasserver/api/ip_addresses.py (+89/-10)
src/maasserver/api/tests/test_enlistment.py (+1/-1)
src/maasserver/api/tests/test_ipaddresses.py (+151/-3)
src/maasserver/api/tests/test_network.py (+16/-12)
src/maasserver/api/tests/test_networks.py (+5/-4)
src/maasserver/api/tests/test_nodes.py (+6/-6)
src/maasserver/api/tests/test_pxeconfig.py (+1/-1)
src/maasserver/exceptions.py (+6/-0)
src/maasserver/migrations/0120_make_macaddress_node_nullable.py (+371/-0)
src/maasserver/models/macaddress.py (+14/-7)
src/maasserver/models/tests/test_dhcplease.py (+1/-1)
src/maasserver/models/tests/test_macaddress.py (+28/-16)
src/maasserver/models/tests/test_network.py (+6/-4)
src/maasserver/models/tests/test_node.py (+1/-1)
src/maasserver/rpc/tests/test_nodes.py (+1/-1)
src/maasserver/rpc/tests/test_regionservice.py (+2/-2)
src/maasserver/testing/factory.py (+10/-2)
src/maasserver/tests/test_fields.py (+2/-2)
src/maasserver/tests/test_forms_macaddress.py (+1/-1)
src/maasserver/tests/test_forms_network.py (+15/-10)
src/maasserver/tests/test_networking_preseed.py (+13/-13)
src/maasserver/tests/test_node_constraint_filter_forms.py (+28/-21)
src/maasserver/views/tests/test_networks.py (+6/-4)
src/maasserver/views/tests/test_nodes.py (+3/-3)
src/metadataserver/tests/test_api.py (+4/-4)
summary: |
- MAAS does not provide an IP for reserving a static IP for a given MAC + MAAS does not provide an API for reserving a static IP for a given MAC address |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Graham Binns (gmb) |
Changed in maas: | |
milestone: | next → 1.7.1 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Marking High since this affects OIL.