Creation of DNSRecord marks an IP address as "User reserved" leading to impossibility to use this IP later
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned |
Bug Description
tl;dr I want to pre-create the hostname for my service which is going to be deployed later with Juju; but it's IP address is marked as "User reserved" in MAAS - so this addr will never be picked up by Juju.
$ maas admin dnsresources create name='ns1-devci' domain='maas' ip_addresses=
Success.
Machine-readable output follows:
{
"address_ttl": null,
"id": 12,
"fqdn": "ns1-devci.maas",
"ip_addresses": [
{
"ip": "172.27.86.220",
},
},
},
}
],
"resource_
"resource_uri": "/MAAS/
}
Moreover, it will not be unblocked even after I will delete the RR above.
tl;dr I want to pre-create the hostname for my service which is going to be deployed later with Juju; but it's IP address is marked as "User reserved" in MAAS - so this addr will never be picked up by Juju.
$ maas admin dnsresources create name='ns1-devci' domain='maas' ip_addresses=
Success.
Machine-readable output follows:
{
"address_ttl": null,
"id": 12,
"fqdn": "ns1-devci.maas",
"ip_addresses": [
{
"ip": "172.27.86.220",
},
},
},
}
],
"resource_
"resource_uri": "/MAAS/
}
Moreover, it will not be unblocked even after I will delete the RR above.
MAAS 2.8.2 (8577-g.
Since the IP is reserved in MAAS, it's not deleted automatically after removing the DNS record.
You can release it with:
maas admin ipaddresses release ip=172.27.86.220
Currently, you can't use reserved address to assign it to a machine. Reserving them is mostly meant as a way to ensure MAAS doesn't hand those out.