allocator: fix out-of-valid-range identities being allocated#18151
allocator: fix out-of-valid-range identities being allocated#18151jibi merged 1 commit intocilium:masterfrom
Conversation
8c436a1 to
7bd54d7
Compare
|
@ArthurChiao FYI I'm converting this to draft since it's still WIP :) |
7bd54d7 to
d141907
Compare
|
Hi @nbusseneau just rebased to the latest master, and ready for reviewing now. Noticed that the "Code scanning results / CodeQL" failed, but the failed code is not introduced in this patch. Should I fix them in this PR as well? Thanks! |
d141907 to
c943f9b
Compare
No, please ignore this. It's actually a false positive from CodeQL. |
nbusseneau
left a comment
There was a problem hiding this comment.
Code changes LGTM, thanks.
|
/test Job 'Cilium-PR-K8s-1.23-kernel-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment Job 'Cilium-PR-K8s-GKE' hit: #17270 (94.25% similarity) |
|
Closing and re-opening PR since GH Actions seem stuck (this happens sometimes). |
|
/test |
|
/test Job 'Cilium-PR-K8s-GKE' failed and has not been observed before, so may be related to your PR: Click to show.Test NameFailure OutputIf it is a flake, comment |
|
The GKE CI job failed with known flake #17307. Other required tests are passing. Reviews are in. Merging. Oh, wait! There are merge conflicts :-( |
384f94b to
e89dcff
Compare
|
@ArthurChiao You will need to rebase again to catch #18443. It fixes a CI infrastructure issue that "appeared" yesterday. Sorry for the trouble. |
When multiple cilium clusters share the same KVStore ("<clustername>" prefix
prevents them from being overlapped), the identity allocator inside each
cilium agent may allocate out identities that are out of the cluster's
valid range.
This patch fixed the problem by validating the identity at two places:
1. the place where an identity is just allocated out
2. the place before an identity is enqueued into available idpool
Adapted from Jaff Cheng's internal patch at trip.com.
Signed-off-by: ArthurChiao <arthurchiao@hotmail.com>
e89dcff to
c9b5f5f
Compare
|
@pchaigno it's ok, just rebased, thanks :) |
|
/test |
|
This pull request has been automatically marked as stale because it |
|
This pull request broke the multicluster workflow. I'll send a revert PR. EDIT: PR is at #18808. |
When multiple cilium clusters share the same KVStore ("" prefix
prevents them from being overlapped), the identity allocator inside each
cilium agent may allocate out identities that are out of the cluster's
valid range.
This patch fixed the problem by validating the identity at two places:
Adapted from Jaff Cheng's internal patch at trip.com.
Signed-off-by: ArthurChiao arthurchiao@hotmail.com