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

ceph-fuse should run with "systemd-run" in centos #77209

silenceshell opened this issue Apr 29, 2019 · 2 comments


None yet
2 participants
Copy link

commented Apr 29, 2019

What happened:

  1. create cephfs storage class with external-storage
  2. create pvc of cephfs
  3. mount this pvc to a pod
  4. restart the kubelet on the node where the pod is running
  5. run kubectl exec -it to login the pod, run df, will get an error 'Transport endpoint is not connected'

What you expected to happen:

restart kubelet should not affect the pod on the same node.

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

shown above.

Anything else we need to know?:

I believe this is a bug sililar to #49640 , the ceph-fuse command should run in its own systemd scope, so the kubelet restart will not shutdown the ceph-fuse daemon.

However the code just run with os.exec, which will cause this bug.

func (cephfsVolume *cephfs) execFuseMount(mountpoint string) error {
	klog.V(4).Infof("Mounting cmd ceph-fuse with arguments (%s)", mountArgs)
	command := exec.Command("ceph-fuse", mountArgs...)
	output, err := command.CombinedOutput()

I have fixed this bug in my env by adding systemd-run with the command.


  • Kubernetes version (use kubectl version): 1.11.1
  • Cloud provider or hardware configuration: no
  • OS (e.g: cat /etc/os-release): centos 7.3
  • Kernel (e.g. uname -a): 4.18
  • Install tools: na
  • Network plugin and version (if this is a network-related bug): na
  • Others:

@silenceshell silenceshell changed the title ceph-fuse should run with "system-run" in centos ceph-fuse should run with "systemd-run" in centos Apr 29, 2019


This comment has been minimized.

Copy link
Contributor Author

commented Apr 29, 2019

/sig storage

@k8s-ci-robot k8s-ci-robot added sig/storage and removed needs-sig labels Apr 29, 2019


This comment has been minimized.

Copy link
Contributor Author

commented May 9, 2019


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.