Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with IP POOLS #2174

Closed
lvaro22 opened this issue Oct 6, 2022 · 1 comment
Closed

Problem with IP POOLS #2174

lvaro22 opened this issue Oct 6, 2022 · 1 comment
Labels

Comments

@lvaro22
Copy link

lvaro22 commented Oct 6, 2022

Good morning, I'm having a problem deleting an ip pool.

When I go to the section "IP POOLS" on the up right side of the screen, and I want to delete an ip pool previously configurated, the next message appears; "IP pool can not be removed because it is still assigned to server/rules", but I have already removed all assigned rules from the servers.

Previouly, doing tests, I removed all servers and organizations, but the error message was still appearing.

For now, I have to remove it from the database to resolve the problem.

Is this a bug, or am I doing something wrong ?

thanks for your attention.

@lvaro22 lvaro22 added the bug label Oct 6, 2022
@catphish
Copy link
Contributor

I think the error message here is a little misleading. According to the code, there are two things that will prevent an IP pool being deleted:

  has_many :ip_addresses, :dependent => :restrict_with_exception
  has_many :servers, :dependent => :restrict_with_exception

From your description, I suspect the problem was likely that the pool still contained IP addresses. The error is not clear that IP addresses need to be removed before the pool can be removed, so I will fix that at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants