-
Notifications
You must be signed in to change notification settings - Fork 459
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
[BUG] Orphaned subnets which reference a non-existent VPC cause new namespaces to never get correct annotations. #5028
Comments
Hey @andrewlee1089! I'm here to help you out with any bugs, questions, or contributions you have in mind. Let's tackle this together! The issue you're experiencing is related to how the In the Kube-OVN codebase, the To address this issue, you can consider the following steps:
By ensuring that your environment is free of orphaned subnets and using a version of Kube-OVN that includes the necessary fixes, you should be able to avoid the issue of incorrect namespace annotations. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@zbb88888 can you take a look at this? |
the pr is for making sure deleting vpc after all its subnet is deleted In creation process:
In Deletion process:
In your cloud you please post more details about the pre-exist subnet( before the vpc) ? |
Kube-OVN Version
v1.13.2
Kubernetes Version
v1.28.6
Operation-system/Kernel Version
Ubuntu 24.04.1 LTS
6.8.0-44-generic
Description
I am seeing log span of the form:
malc-tlgs-z5llx is a new namespace
rg-a7d345adb29d43401c2dcb9ca30a6a7d-default-sto-1-a is an existing subnet that references a non-existence VPC rg-a7d345adb29d43401c2dcb9ca30a6a7d-default-sto-1.
It seems odd to me that a non-default VPC which is in a 'bad state' can affect default VPCs. I'm OK with 'broken' VPCs having undefined behaviour but I feel uncomfortable that a broken VPC is causing new namespaces which are unrelated to be affected.
Steps To Reproduce
Current Behavior
Namespace never gets correct annotations (e.g. LogicalSwitchAnnotation , CidrAnnotation, ExcludeIpsAnnotation) because
handleAddNamespace
function lists all subnets, and checks to find the VPCs that are referenced by the subnet.Expected Behavior
Newly created namespace should get correct annotations (e.g. LogicalSwitchAnnotation , CidrAnnotation, ExcludeIpsAnnotation) because
handleAddNamespace
function lists all subnets, and checks to find the VPCs that are referenced by the subnet.The text was updated successfully, but these errors were encountered: