Comment 2 for bug 1898122

Revision history for this message
Adam Dyess (addyess) wrote :

Following the logic of this code. It was possible to update the sql database and then delete the ip addresses as a workaround:

$sudo -iu postgres psql
\c maasdb \\ -- switch to maasdb
UPDATE maasserver_staticipaddress SET alloc_type = 5 where ip = '<ip-address>' AND alloc_type = 6;
^D
$ maas root ipaddresses release ip='<ip-address>' force=true