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

Open
skenderidis opened this issue Jan 11, 2025 · 0 comments
Open

StaticRoute CNI calico doesn't detect multiple blockaffinities #3717

skenderidis opened this issue Jan 11, 2025 · 0 comments
Labels
bug untriaged no JIRA created

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug untriaged no JIRA created
Projects
None yet
Development

No branches or pull requests

1 participant