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.
Running into this same bug - trying to delete via maasdb:
delete from maasserver_ staticipaddress where ip = '10.62.16.131'; staticipaddress " violates foreign key constraint "D366aaa1e05038 0f8f9eeec06a05e 6e6" on table "maasserver_ interface_ ip_addresses" interface_ ip_addresses" .
ERROR: update or delete on table "maasserver_
DETAIL: Key (id)=(17843) is still referenced from table "maasserver_
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.