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

StaticRoute CNI calico doesn't detect multiple blockaffinities #3717

Closed
skenderidis opened this issue Jan 11, 2025 · 4 comments · Fixed by #3715
Closed

StaticRoute CNI calico doesn't detect multiple blockaffinities #3717

skenderidis opened this issue Jan 11, 2025 · 4 comments · Fixed by #3715

Comments

@skenderidis
Copy link

Setup Details

CIS Version : 2.18.1

Description

I am working on a rancher environment that is using calico and CIS is configured with static routes.
Everything works fine until an additional blockaffinities is created for a specific host.
CIS doesn't create an additional routing entry for the second blockaffinity

kubectl get blockaffinities

NAME                        AGE
rancher1-10-221-23-128-26   20m
rancher1-10-221-23-64-26    506d


kubectl get blockaffinities rancher1-10-221-23-64-26 -o yaml

apiVersion: crd.projectcalico.org/v1
kind: BlockAffinity
metadata:
  annotations:
    projectcalico.org/metadata: '{"creationTimestamp":null}'
  creationTimestamp: "2023-08-24T11:34:50Z"
  generation: 4
  name: rancher1-10-221-23-64-26
  resourceVersion: "682601"
  uid: 3ccfd695-4391-434d-983d-701a312e53d8
spec:
  cidr: 10.221.23.64/26
  deleted: "false"
  node: rancher1

kubectl get blockaffinities rancher1-10-221-23-128-26 -o yaml

apiVersion: crd.projectcalico.org/v1
kind: BlockAffinity
metadata:
  annotations:
    projectcalico.org/metadata: '{"creationTimestamp":null}'
  creationTimestamp: "2025-01-11T14:38:26Z"
  generation: 2
  name: rancher1-10-221-23-128-26
  resourceVersion: "681184"
  uid: 41699a09-c73c-4e42-9afe-eba49d0d58de
spec:
  cidr: 10.221.23.128/26
  deleted: "false"
  node: rancher1
  state: confirmed

Expected Result

CIS should populate multiple blockaffinities per node

@skenderidis skenderidis added bug untriaged no JIRA created labels Jan 11, 2025
@trinaths
Copy link
Contributor

Created [CONTCNTR-5132] for internal tracking.

@lavanya-f5
Copy link
Contributor

@skenderidis dev build quay.io/f5networks/k8s-bigip-ctlr-devel:974b12e6735b39b63929e772659f57efbf007d1c.

@lavanya-f5 lavanya-f5 linked a pull request Jan 22, 2025 that will close this issue
2 tasks
@skenderidis
Copy link
Author

skenderidis commented Jan 22, 2025 via email

@skenderidis
Copy link
Author

The fix provided by the team is working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants