Cannot re-use static IP address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
I have an IP address, 10.192.154.118, which I need to assign to a node. I think (not 100% sure) that it was previously manually assigned to a node which was deleted earlier today. I know it is part of a reserved range, i.e. MAAS would not DHCP-assign or statically auto-assign a conflicting address.
It appears that MAAS did not forget/delete the earlier assignment. When I try to statically assign it to a node's interface, I see "IP address is already in use", and the form field reverts to the default static auto-assigned address.
When I browse to http://
How do I get MAAS to release/forget about this IP address so I can re-use it? I do not see any option in the web UI or the CLI.
Thank you,
Chris
(Attached: contents of /var/log/maas/* as maas-logs.tgz)
root@nika:
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 2.0.0+bzr5189-
ii maas-cli 2.0.0+bzr5189-
un maas-cluster-
ii maas-common 2.0.0+bzr5189-
ii maas-dhcp 2.0.0+bzr5189-
ii maas-dns 2.0.0+bzr5189-
ii maas-proxy 2.0.0+bzr5189-
ii maas-rack-
ii maas-region-api 2.0.0+bzr5189-
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.0.0+bzr5189-
ii python3-maas-client 2.0.0+bzr5189-
ii python3-
Changed in maas: | |
milestone: | 2.1.0 → 2.1.1 |
Changed in maas: | |
milestone: | 2.1.1 → 2.1.2 |
Changed in maas: | |
milestone: | 2.1.2 → 2.1.3 |
Changed in maas: | |
milestone: | 2.2.1 → 2.2.x |
Changed in maas: | |
status: | Incomplete → Triaged |
status: | Triaged → Incomplete |
Did some digging in the database.
maasdb=# select * from maasserver_ staticipaddress where ip = '10.192.154.118'; -+----- ------- ------- ------- -----+- ------- ------- ------- ------- --+---- ------- -----+- ------- ----+-- ------- --+---- -----+- ------- ----
id | created | updated | ip | alloc_type | subnet_id | user_id | lease_time
-------
346035 | 2016-10-03 11:30:36.706452-07 | 2016-10-03 11:30:36.706452-07 | 10.192.154.118 | 1 | 1 | | 0
So, it's not associated with any user and its lease time is 0 (forever?).
maasdb=# select * from maasserver_ interface_ ip_addresses where staticipaddress_id = 346035; ------- -----+- ------- ------- -----
id | interface_id | staticipaddress_id
----+--
(0 rows)
No interfaces are associated with the IP address, at least in this table.
I'm inclined to just delete that row in maasserver_ staticipaddress and try again. Is this likely to cause side effects? I'm certain that no node or device is currently using that IP address.