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

When syncing multiple CIS controllers, shared static routes override each other #3719

Open
skenderidis opened this issue Jan 13, 2025 · 1 comment

Comments

@skenderidis
Copy link

Setup Details

CIS Version : 2.18.1 (and 2.19.0)

Description

A customer has multiple CIS deployed on the same cluster. they are using the staticroutes (with Flannel) and they are using --shared-static-routes=true.
When we deploy CIS-1 we see the first route being created in the Common partition

k8s-rancher1-10.1.20.21 |   10.222.1.0 | 255.255.255.0 10.221.1.0 255.255.255.0

When we deploy CIS-2 we see the first route getting delete and being replaced by CIS-2 route
k8s-rancher2-10.1.20.22 |   10.222.1.0 | 255.255.255.0 10.222.1.0 255.255.255.0

When we are NOT using --shared-static-routes=true then both routes are getting created on their respective partition

I have attached logs when the second CIS gets created. You can see that it detects the route from the first CIS


2025/01/13 14:42:09 [DEBUG] [2025-01-13 14:42:09,951 __main__ DEBUG] NET Config: {"routes": [{"name": "k8s-rancher2-10.1.20.22", "network": "10.222.1.0/24", "gw": "10.1.20.22"}]}



2025/01/13 14:42:09 [DEBUG] [2025-01-13 14:42:09,797 icontrol.session DEBUG] RESPONSE::STATUS: 200 Content-Type: application/json;charset=utf-8 Content-Encoding: None Text: '{"kind":"tm:net:route:routecollectionstate","selfLink":"https://localhost/mgmt/tm/net/route?$filter=partition+eq+Common&ver=16.1.4.2","items":[{"kind":"tm:net:route:routestate","name":"default","partition":"Common","fullPath":"/Common/default","generation":1,"selfLink":"https://localhost/mgmt/tm/net/route/~Common~default?ver=16.1.4.2","gw":"10.1.10.1","mtu":0,"network":"default"},{"kind":"tm:net:route:routestate","name":"k8s-rancher1-10.1.20.21","partition":"Common","fullPath":"/Common/k8s-rancher1-10.1.20.21","generation":4021,"selfLink":"https://localhost/mgmt/tm/net/route/~Common~k8s-rancher1-10.1.20.21?ver=16.1.4.2","gw":"10.1.20.21","mtu":0,"network":"10.221.0.0/24"}]}'


2025/01/13 14:42:09 [INFO] [2025-01-13 14:42:09,897 f5_cccl.resource.resource INFO] Deleting IcrRoute: /Common/k8s-rancher1-10.1.20.21

2025/01/13 14:42:09 [DEBUG] [2025-01-13 14:42:09,949 f5_cccl.service.manager DEBUG] Deleted k8s-rancher1-10.1.20.21 in 0.05214 seconds.

Expected behaviour

Both routes need to exist on Common partition
problem.txt

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

Created [CONTCNTR-5134] for internal tracking.

@trinaths trinaths added JIRA and removed untriaged no JIRA created labels Jan 15, 2025
@skenderidis skenderidis changed the title When sing multiple CIS shared static routes override each other When syncing multiple CIS controllers, shared static routes override each other Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants