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

[BUG] yurtadm tries to set the incorrect permission, which leads to unexpected failure #1573

Closed
fujitatomoya opened this issue Jun 28, 2023 · 3 comments · Fixed by #1576
Closed
Labels
kind/bug kind/bug

Comments

@fujitatomoya
Copy link
Contributor

fujitatomoya commented Jun 28, 2023

What happened:

When using OpenYurt with Cilium CNI, cilium-agent (DaemonSets) initialization cannot be completed since it does not have the access permission to /opt/cni/bin.

see more details for cilium/cilium#22933

What you expected to happen:

OpenYurt can enable Cilium w/o any problems.

How to reproduce it (as minimally and precisely as possible):

  1. yurtadm join from edge device. (kubelet should not be installed, so that yurtadm creates the /opt/cni/bin with 0600 permission)
  2. enable cilium with cilium install.
  3. the edge node cannot be READY since cilium-agent will fail to initialize.

Anything else we need to know?:

In general directory permission 0600 does not make sense to me, since the owner cannot change the directory in it.
In addition, OpenYurt should not put the different access permission in default, since this could lead the unexpected problems like this. saying, /opt/cni/bin is not dedicated directory for OpenYurt but anyone could read and execute.

Environment:

  • OpenYurt version: v1.1.0
  • Kubernetes version (use kubectl version): 1.22.13
  • OS (e.g: cat /etc/os-release): Ubuntu 20.04
  • Kernel (e.g. uname -a): 5.4.0-126-generic
  • Install tools:
  • Others:

others

/kind bug

@fujitatomoya
Copy link
Contributor Author

#1574 addresses this problems.

@rambohe-ch @YTGhost what do you think?

@YTGhost
Copy link
Member

YTGhost commented Jun 29, 2023

#1574 addresses this problems.

@rambohe-ch @YTGhost what do you think?

Yes, I agree with you that the permissions of /opt/cni/bin should be changed to 0755.

@rambohe-ch
Copy link
Member

#1574 addresses this problems.

@rambohe-ch @YTGhost what do you think?

@fujitatomoya agree +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug kind/bug
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants