Comment 15 for bug 1630034

Revision history for this message
Alan McAlexander (five0va) wrote :

Running into this same bug - trying to delete via maasdb:

delete from maasserver_staticipaddress where ip = '10.62.16.131';
ERROR: update or delete on table "maasserver_staticipaddress" violates foreign key constraint "D366aaa1e050380f8f9eeec06a05e6e6" on table "maasserver_interface_ip_addresses"
DETAIL: Key (id)=(17843) is still referenced from table "maasserver_interface_ip_addresses".

I've deleted the Key from maasserver_interface_ip_addresses, but the error remains.

This is MaaS 2.2.0 rc3, but I was also having this issue in rc2. I had deleted the 10.62.16.131 server via the web ui when we were first standing up the environment, but I'm unable to add this static ip back. I'm also unable to remove the IP from the maas cli.