cannot unlink subnet after commission
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
High
|
Jacopo Rota |
Bug Description
I try to use the API call op-unlink_subnet but its not working for the primary (PXE) interface. An unexpected link ID also appears which I cannot read directly but its in the database:
```
HQ-A root@maas-
{"id": ["'1' is not a valid id. It should be one of: '5691', '5692'."]}
HQ-A root@maas-
HQ-A root@maas-
```
Here the ID 5691 is not valid.
```
maasdb=# select * from maasserver_
id | created | updated | ip | alloc_type | subnet_id | user_id | lease_time | temp_expires_on
------+
5691 | 2023-09-15 18:07:59.054702+02 | 2023-09-15 18:16:52.066979+02 | | 6 | 1 | | 0 |
(1 row)
maasdb=# select * from maasserver_
id | created | updated | ip | alloc_type | subnet_id | user_id | lease_time | temp_expires_on
------+
5692 | 2023-09-15 18:07:59.270894+02 | 2023-09-15 18:07:59.270894+02 | | 0 | 1 | | 0 |
(1 row)
```
I suppose this link is a remnant of a commission which is preventing me to unlink and then reconfigure the link properly with my own settings.
If I unlink this "hidden" link too then unlink_subnet functions starts behaving normally.
Hi Robert,
Could you include in the bug report the version of MAAS that you are using as well as the installation type (deb/snap)?
Could you add the steps to reproduce your issue as well?