profile
viewpoint

Ask questionsAppears when using ceph of roook: map failed: (30) Read-only file system

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!-->

What happened:

Binding error occurs in pvc using ceph(rook)

  Warning  FailedMount       33s (x11 over 6m47s)   kubelet, test-control-plane  MountVolume.SetUp failed for volume "pvc-6e0378c5-a995-4ad9-be05-9e99e4a01dbf" : mount command failed, status: Failure, reason: Rook: Mount volume failed: failed to attach volume replicapool/pvc-6e0378c5-a995-4ad9-be05-9e99e4a01dbf: failed to map image replicapool/pvc-6e0378c5-a995-4ad9-be05-9e99e4a01dbf cluster rook-ceph. failed to map image replicapool/pvc-6e0378c5-a995-4ad9-be05-9e99e4a01dbf: Failed to complete 'rbd': exit status 30. . output: rbd: sysfs write failed
In some cases useful info is found in syslog - try "dmesg | tail".
rbd: map failed: (30) Read-only file system
  Warning  FailedMount  13s (x3 over 4m44s)  kubelet, test-control-plane  Unable to mount volumes for pod "wordpress-mysql-6cc97b86fc-m9wc7_default(64067a46-f850-4802-bba7-d7ab7b32fd48)": timeout expired waiting for volumes to attach or mount for pod "default"/"wordpress-mysql-6cc97b86fc-m9wc7". list of unmounted volumes=[mysql-persistent-storage]. list of unattached volumes=[mysql-persistent-storage default-token-hshm5]

What you expected to happen:

Pod started successfully.

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

kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-1.0/cluster/examples/kubernetes/ceph/common.yaml
kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-1.0/cluster/examples/kubernetes/ceph/operator.yaml
kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-1.0/cluster/examples/kubernetes/ceph/cluster-test.yaml 
kubectl apply -f https://raw.githubusercontent.com/rook/rook/master/cluster/examples/kubernetes/ceph/storageclass-test.yaml
kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-1.0/cluster/examples/kubernetes/mysql.yaml

Anything else we need to know?:

Environment:

  • kind version: v0.4.0
  • Kubernetes version: v1.15.0
  • Docker version: 18.09.6
  • OS : CentOS Linux 7 (Core)
  • kernel: 5.1.11-1.el7.elrepo.x86_64
kubernetes-sigs/kind

Answer questions aojea

@lework ceph in block mode doesn't seem to work inside kind, however cephfs works https://github.com/rook/rook/blob/master/Documentation/ceph-filesystem.md

Seems that in ceph block needs the sysfs to be writable , need to investigate more

useful!

Related questions

Cluster not starting with DIND setup hot 1
Errors compile: version "go1.12.1" does not match go tool version "go1.10.2" hot 1
Installing Istio fails when trying to match resources hot 1
Helm: rabbitmq-ha deployment fails to discover k8s nodes hot 1
`kind` should be able to start the control plane when `/dev/kmsg` is not available hot 1
WSLv1: No DNS between pods or to the internet hot 1
source:https://uonfu.com/
Github User Rank List