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

pkg/allocator: do not fail to allocate identity in CRD mode #10785

Merged
merged 1 commit into from Mar 31, 2020

Conversation

aanm
Copy link
Member

@aanm aanm commented Mar 31, 2020

In case 2 allocations with the same key are being allocated at the
same time one of them might retrieve the ID while the other will
try to allocate the ID in the CRD store. The issue occurs when the
localKeys map will ignore the 2nd key allocation since it won't accept 2
IDs for the same key. Having this failure might cause endpoints from
being restored in CRD mode.

Signed-off-by: André Martins andre@cilium.io

Fix #10774

Fix possible endpoint restore failure in CRD mode.

In case 2 allocations with the same key are being allocated at the
same time one of them might retrieve the ID while the other will
try to allocate the ID in the CRD store. The issue occurs when the
localKeys map will ignore the 2nd key allocation since it won't accept 2
IDs for the same key. Having this failure might cause endpoints from
being restored in CRD mode.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added pending-review priority/high This is considered vital to an upcoming release. labels Mar 31, 2020
@aanm aanm requested a review from a team as a code owner March 31, 2020 14:18
@maintainer-s-little-helper
Copy link

Please set the appropriate release note label.

4 similar comments
@maintainer-s-little-helper
Copy link

Please set the appropriate release note label.

@maintainer-s-little-helper
Copy link

Please set the appropriate release note label.

@maintainer-s-little-helper
Copy link

Please set the appropriate release note label.

@maintainer-s-little-helper
Copy link

Please set the appropriate release note label.

@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Mar 31, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.7.2 Mar 31, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.6.9 Mar 31, 2020
@aanm aanm added the release-note/bug This PR fixes an issue in a previous release of Cilium. label Mar 31, 2020
@aanm
Copy link
Member Author

aanm commented Mar 31, 2020

test-me-please

@coveralls
Copy link

coveralls commented Mar 31, 2020

Coverage Status

Coverage decreased (-0.04%) to 45.471% when pulling bc44823 on pr/fix-issue-10774 into 60bd7f5 on master.

@aanm aanm merged commit 912eb46 into master Mar 31, 2020
1.8.0 automation moved this from In progress to Merged Mar 31, 2020
@aanm aanm deleted the pr/fix-issue-10774 branch March 31, 2020 21:19
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.7 in 1.7.2 Apr 1, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.7 in 1.7.2 Apr 1, 2020
@joestringer joestringer moved this from Backport pending to v1.7 to Backport done to v1.7 in 1.7.2 Apr 7, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.6 in 1.6.9 Apr 30, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.6 to Backport done to v1.6 in 1.6.9 May 13, 2020
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.6 to Backport done to v1.6 in 1.6.9 May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/high This is considered vital to an upcoming release. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.6.9
Backport done to v1.6
1.7.2
Backport done to v1.7
1.8.0
  
Merged
5 participants