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

Duplicate IP addresses can lead to orphan IPAddressCR #120

Open
2 tasks done
faebr opened this issue Nov 6, 2024 · 0 comments
Open
2 tasks done

Duplicate IP addresses can lead to orphan IPAddressCR #120

faebr opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@faebr
Copy link
Contributor

faebr commented Nov 6, 2024

Bug report criteria

  • This bug report is not security related, security issues should be disclosed privately via netbox operator maintainers.
  • Existing open issues have been checked and this is not a duplicate.

What happened?

  • Create 2 IpAddress CRs using the same IP and tenant but one with the preserveInNetbox flag set to true and one to false
  • Apply both CRs to the cluster. Both will be reconciled and point to the same IP address instance in Netbox
  • If you now delete the CR that has the preserveInNetbox flag set to false, Netbox Operator will delete the IP address in Netbox and we end up with an orphan IpAddress CR pointing to a non-existing IP

What did you expect to happen?

To either prevent the ability to create IP addresses with the same IP or make sure before deletion in the NetBox that no other CR is referencing this IP address.

How can we reproduce it (as minimally and precisely as possible)?

Described in what happened.

Netbox operator version

latest

Netbox operator configuration (command line flags or environment variables)

No response

Relevant log output

No response

Anything else we need to know?

No response

@faebr faebr added the bug Something isn't working label Nov 6, 2024
@henrybear327 henrybear327 changed the title duplicate-ip-addresses-can-lead-to-orphan Duplicate IP addresses can lead to orphan IPAddressCR Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant