Skip to content

Conversation

@tallquist10
Copy link

@tallquist10 tallquist10 commented Oct 8, 2025

Pull Request

What type of this PR

Examples of user facing changes:

  • Bug fixes

Which issue(s) this PR fixes

Fixes #(issue-number)

Additional details

When a Subnet CR is created with one or more IP CRs, and then the resources are eventually deleted, instances where the subnet is deleted before the finalizers are removed from the IPs cause a failure, and the IPs are left unable to be deleted due to the absence of the corresponding Subnet. With kube-ovn being heavily reliant on the ability for these resources to be able to be deleted simultaneously, this seems to be counterintuitive to that philosophy.

metav1.DeleteOptions{PropagationPolicy: &deletePolicy},
); err != nil && !k8serrors.IsNotFound(err) {
klog.Errorf("failed to delete ip %s: %v", ip.Name, err)
return err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about just logging error and continue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry about this confusion. I will put together a more thorough PR description today. Basically, the issue is that IPs aren't getting deleted before their subnets, so when the controller goes to remove the finalizer, and the subnet doesn't exist, it fails and doesn't remove the finalizer, and it never proceeds. I forgot I made a draft PR with my changes, and this will not be the final version.

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 this pull request may close these issues.

2 participants