Open sejesnet opened 2 years ago
I have same error
root@k8s-master-27:~/seaweedfs-csi-driver-1.0.9# kubectl describe pods my-csi-app
Name: my-csi-app
Namespace: default
Priority: 0
Node: k8s-master-27/192.168.2.27
Start Time: Tue, 10 May 2022 16:09:07 +0800
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"name":"my-csi-app","namespace":"default"},"spec":{"containers":[{"command":[...
Status: Pending
IP:
IPs: <none>
Containers:
my-frontend:
Container ID:
Image: busybox
Image ID:
Port: <none>
Host Port: <none>
Command:
sleep
1000000
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
/data from seaweedfs-volume (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-hhsgv (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
seaweedfs-volume:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: seaweedfs-csi-pvc
ReadOnly: false
default-token-hhsgv:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-hhsgv
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 12m default-scheduler Successfully assigned default/my-csi-app to k8s-master-27
Warning FailedMount 4m4s (x4 over 10m) kubelet, k8s-master-27 Unable to attach or mount volumes: unmounted volumes=[seaweedfs-volume], unattached volumes=[seaweedfs-volume default-token-hhsgv]: timed out waiting for the condition
Warning FailedMount 108s kubelet, k8s-master-27 Unable to attach or mount volumes: unmounted volumes=[seaweedfs-volume], unattached volumes=[default-token-hhsgv seaweedfs-volume]: timed out waiting for the condition
Warning FailedAttachVolume 38s (x14 over 12m) attachdetach-controller AttachVolume.Attach failed for volume "pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131" : csinode.storage.k8s.io "k8s-master-27" not found
root@k8s-master-27:~/seaweedfs-csi-driver-1.0.9# kubectl get csinode.storage.k8s.io
NAME CREATED AT
k8s-master-27 2022-05-10T07:40:22Z
k8s-slave-28 2022-05-10T07:40:40Z
root@k8s-master-27:~/seaweedfs-csi-driver-1.0.9#
root@k8s-master-27:~/seaweedfs-csi-driver-1.0.9# kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
seaweedfs-csi-pvc Bound pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131 5Gi RWO seaweedfs-storage 14m
root@k8s-master-27:~/seaweedfs-csi-driver-1.0.9#
kubectl -n kube-system logs -f csi-seaweedfs-controller-0 -c csi-provisioner
I0510 08:08:46.032012 1 controller.go:753] successfully created PV {GCEPersistentDisk:nil AWSElasticBlockStore:nil HostPath:nil Glusterfs:nil NFS:nil RBD:nil ISCSI:nil Cinder:nil CephFS:nil FC:nil Flocker:nil FlexVolume:nil AzureFile:nil VsphereVolume:nil Quobyte:nil AzureDisk:nil PhotonPersistentDisk:nil PortworxVolume:nil ScaleIO:nil Local:nil StorageOS:nil CSI:&CSIPersistentVolumeSource{Driver:seaweedfs-csi-driver,VolumeHandle:pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131,ReadOnly:false,FSType:,VolumeAttributes:map[string]string{storage.kubernetes.io/csiProvisionerIdentity: 1652170105140-8081-seaweedfs-csi-driver,},ControllerPublishSecretRef:nil,NodeStageSecretRef:nil,NodePublishSecretRef:nil,ControllerExpandSecretRef:nil,}}
I0510 08:08:46.032453 1 controller.go:1420] provision "default/seaweedfs-csi-pvc" class "seaweedfs-storage": volume "pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131" provisioned
I0510 08:08:46.032602 1 controller.go:1437] provision "default/seaweedfs-csi-pvc" class "seaweedfs-storage": succeeded
I0510 08:08:46.032751 1 volume_store.go:154] Saving volume pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131
I0510 08:08:46.048391 1 volume_store.go:157] Volume pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131 saved
E0510 08:08:46.048666 1 controller.go:1443] couldn't create key for object pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131: object has no meta: object does not implement the Object interfaces
I0510 08:08:46.048844 1 controller.go:1078] Claim processing succeeded, removing PVC acd523c8-8c7e-4e0f-804f-57041ab9f131 from claims in progress
I0510 08:08:46.048949 1 event.go:282] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"default", Name:"seaweedfs-csi-pvc", UID:"acd523c8-8c7e-4e0f-804f-57041ab9f131", APIVersion:"v1", ResourceVersion:"3235773", FieldPath:""}): type: 'Normal' reason: 'ProvisioningSucceeded' Successfully provisioned volume pvc-acd523c8-8c7e-4e0f-804f-57041ab9f131
Maybe it will help you: check if you have DaemonSet seaweedfs-node created
Good morning. Having trouble with creating pods which have volume claime to seaweedfs-storage.
I reproduced same issues on Kubernetes cluster on 3 nodes and in minikube all latest versions.
Sorry for much text, i'm newbue in kubernetes. I show all steps, that I do for the same results all time :)
It sleep in ContainerCreating status infinetly:
Simpe describe for pod, at the end you see Unable to attach or mount volumes:
Logs from seaweedfs-filer (from logs you see that pvc volume was created in /bucket dir):
Logs from kuber node, where pod deployed:
If you ask for weed binary and fuse packegs, I installed it to all cluster nodes, and make symlink for
I can mount bucket by typing:
and I see here directory of bucket where placed empty pvc-84e08db8-2c99-42af-b72a-e1911a67ad1e dir.
Could you please help me solve problem deploying pods on seaweedfs volums thought seaweedfs-csi-driver. May be I something miss.