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

IP pools: disallow deleting fleet-wide default pool? #4003

Closed
david-crespo opened this issue Aug 31, 2023 · 0 comments · Fixed by #4261
Closed

IP pools: disallow deleting fleet-wide default pool? #4003

david-crespo opened this issue Aug 31, 2023 · 0 comments · Fixed by #4261

Comments

@david-crespo
Copy link
Contributor

We create a default pool at the fleet level at rack init. In #3985 (comment) and the comment below I mentioned the possibility that you could delete the default fleet-wide pool and therefore have nothing to fall back to if there is no silo default.

/// Look up the default IP pool for the current silo. If there is no default
/// at silo scope, fall back to the next level up, namely the fleet default.
/// There should always be a default pool at the fleet level, though this
/// query can theoretically fail if someone is able to delete that pool or
/// make another one the default and delete that.
pub async fn ip_pools_fetch_default(

A simple way to prevent this is to require there to always be a fleet-wide default pool by:

However, it may be that we actually want to allow operators to remove the default fleet-level pool, thereby forcing end users to either use a silo default (if one is configured) or always explicitly specify a pool at instance create. We will have to listen to customers on this based on their experience with IP pools as currently implemented.

@david-crespo david-crespo changed the title IP pools: disallow deleting fleet-wide default pool IP pools: disallow deleting fleet-wide default pool? Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant