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

Fix nerdctl create multi-node cluster fail by do not create container concurrently #3567

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

yankay
Copy link
Member

@yankay yankay commented Apr 3, 2024

Fix: #3533

The issue is caused by creating a concurrent container with the network.
Because there is no lock for the container creation, there is some conflict with the CNI creation.

And there are no test cases of nerdctl for creating containers concurrently.

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 3, 2024
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 3, 2024
@yankay yankay changed the title using no concrrent create container with nerdctl nerdctl: do not create container concrrently Apr 3, 2024
@yankay yankay changed the title nerdctl: do not create container concrrently fix nerdctl: do not create container concrrently Apr 3, 2024
@yankay yankay changed the title fix nerdctl: do not create container concrrently fix nerdctl create multi node cluster fail by do not create container concrrently Apr 3, 2024
@yankay yankay changed the title fix nerdctl create multi node cluster fail by do not create container concrrently Fix nerdctl create multi-node cluster fail by do not create container concurrently Apr 3, 2024
@aojea
Copy link
Contributor

aojea commented Apr 3, 2024

And there are no test cases of nerdctl for creating containers concurrently.

This seems an important and missing feature, can we track this in the nerdctl project add a TODO in the code to reference it?

@aojea
Copy link
Contributor

aojea commented Apr 5, 2024

ping @yankay can you please add the comment so we can merge?

@yankay
Copy link
Member Author

yankay commented Apr 7, 2024

ping @yankay can you please add the comment so we can merge?

Thanks @aojea
It's great

Add todo nerdctl handles concurrency better

Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
@yankay yankay force-pushed the fix-concurrent-crate-node branch from 6401fe9 to 724ea1a Compare April 7, 2024 08:24
@aojea
Copy link
Contributor

aojea commented Apr 7, 2024

/lgtm
/approve

Thanks

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 7, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, yankay

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 7, 2024
@k8s-ci-robot k8s-ci-robot merged commit 915b13a into kubernetes-sigs:main Apr 7, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky test: Create multi node cluster error with nerdctl
3 participants