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

CNI symlink creation failed #11137

Closed
muicoder opened this issue Oct 21, 2024 · 4 comments
Closed

CNI symlink creation failed #11137

muicoder opened this issue Oct 21, 2024 · 4 comments

Comments

@muicoder
Copy link
Contributor

Environmental Info:
K3s Version: Manual build

Node(s) CPU architecture, OS, and Version:

Cluster Configuration:

Describe the bug:

Steps To Reproduce:

  • Installed K3s:

Expected behavior:

Actual behavior:

Additional context / logs:

@muicoder muicoder changed the title CNI symlink creation failed CNI symlink creation failed #11136 Oct 21, 2024
@muicoder muicoder changed the title CNI symlink creation failed #11136 CNI symlink creation failed Oct 21, 2024
@muicoder
Copy link
Contributor Author

The path is generated according to the data packet hash
The symbolic link is abnormal when it is started after the build (new hash).

INFO[0000] Acquiring lock file /var/lib/rancher/k3s/data/.lock 
INFO[0000] Preparing data dir /var/lib/rancher/k3s/data/1267d53c640fd1e129004e75aead56683efc73b6a8f1b3dcff655119e1341690 
FATA[0002] extracting data: symlink /var/lib/rancher/k3s/data/1267d53c640fd1e129004e75aead56683efc73b6a8f1b3dcff655119e1341690/bin/cni /var/lib/rancher/k3s/data/cni/bandwidth: file exists 
root@localhost:/var/lib/rancher/k3s/data# ls -l
drwxr-xr-x 4 root root 4096 Oct 17 10:46 0066b3fa7f03231460cd8a197d00d0247c06cd43b2cb8ac1aa8fd747e2eaa6e3
drwxr-xr-x 4 root root 4096 Oct 21 10:57 1267d53c640fd1e129004e75aead56683efc73b6a8f1b3dcff655119e1341690
drwxr-xr-x 4 root root 4096 Oct 17 10:46 cni
drwxr-xr-x 4 root root 4096 Oct 21 10:57 current -> /var/lib/rancher/k3s/data/1267d53c640fd1e129004e75aead56683efc73b6a8f1b3dcff655119e1341690
drwxr-xr-x 4 root root 4096 Oct 17 10:46 previous -> /var/lib/rancher/k3s/data/0066b3fa7f03231460cd8a197d00d0247c06cd43b2cb8ac1aa8fd747e2eaa6e3

@muicoder
Copy link
Contributor Author

Is the following fix possible?
#11136

@muicoder
Copy link
Contributor Author

#11125

@brandond
Copy link
Member

It appears you're using an unreleased version of K3s. This will be fixed prior to release by the PR you linked: #11123

@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

2 participants