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

Improve calico CNI detection #2769

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

sridhargaddam
Copy link
Member

A K8s cluster can be installed with Calico CNI in multiple ways. It was seen that in some deployments the calico-config map is not created but we can find calico-node cni pods running as daemonSet. This PR enhances the code to look for calico-node pods when the config map is not found.

A K8s cluster can be installed with Calico CNI in multiple ways.
It was seen that in some deployments the calico-config map is not
created but we can find calico-node cni pods running as daemonSet.
This PR enhances the code to look for calico-node pods when the config
map is not found.

Signed-off-by: Sridhar Gaddam <[email protected]>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr2769/sridhargaddam/calico-detection
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@sridhargaddam
Copy link
Member Author

Verified this PR by manually deploying a KIND Calico cluster using the following instructions.
https://docs.tigera.io/calico/latest/getting-started/kubernetes/kind

@sridhargaddam
Copy link
Member Author

I'm seeing the following errors in the CI jobs.

[18:52:54.574] [dir=submariner-operator; cl=cluster1; fn=verify_subm_deployed]$ verify_network_plugin_syncer
[18:52:54.578] [dir=submariner-operator; cl=cluster1; fn=verify_network_plugin_syncer]$ kubectl get sa --namespace=submariner-operator submariner-networkplugin-syncer
[18:52:54.582] [dir=submariner-operator; cl=cluster1; fn=kubectl]$ command kubectl --context=cluster1 get sa --namespace=submariner-operator submariner-networkplugin-syncer
[cluster1] Error from server (NotFound): serviceaccounts "submariner-networkplugin-syncer" not found
make: *** [Makefile:124: system-test] Error 1
make: *** [Makefile.dapper:58: system-test] Error 2

@tpantelis do we already have some fix for this error?

@tpantelis
Copy link
Contributor

@tpantelis do we already have some fix for this error?

#2768

@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Aug 28, 2023
@sridhargaddam sridhargaddam merged commit 091b7d7 into submariner-io:devel Aug 29, 2023
37 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr2769/sridhargaddam/calico-detection]

@sridhargaddam sridhargaddam self-assigned this Aug 29, 2023
@dfarrell07 dfarrell07 added backport This change requires a backport to eligible release branches release-note-needed Should be mentioned in the release notes labels Aug 29, 2023
sridhargaddam added a commit to sridhargaddam/submariner-website that referenced this pull request Sep 11, 2023
@sridhargaddam
Copy link
Member Author

Release note PR: submariner-io/submariner-website#1011

skitt pushed a commit to submariner-io/submariner-website that referenced this pull request Sep 12, 2023
dfarrell07 pushed a commit to dfarrell07/submariner-website that referenced this pull request Oct 18, 2023
dfarrell07 pushed a commit to dfarrell07/submariner-website that referenced this pull request Oct 18, 2023
dfarrell07 pushed a commit to dfarrell07/submariner-website that referenced this pull request Oct 19, 2023
tpantelis pushed a commit to submariner-io/submariner-website that referenced this pull request Oct 22, 2023
tpantelis pushed a commit to tpantelis/submariner-website that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This change requires a backport to eligible release branches backport-handled Calico ready-to-test When a PR is ready for full E2E testing release-note-handled release-note-needed Should be mentioned in the release notes
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants