kubernetes-sigs / alibaba-cloud-csi-driver

CSI Plugin for Kubernetes, Support Alibaba Cloud EBS/NAS/OSS/CPFS
Apache License 2.0
536 stars 239 forks source link

云盘无法挂载 Unable to attach or mount volumes: unmounted volumes=[data], unattached volumes=[kube-api-access-qb2bl data]: timed out waiting for the condition #582

Closed huangzx3 closed 2 years ago

huangzx3 commented 2 years ago
mowangdk commented 2 years ago

你这个是flexvolume转csi? kubelet的参数改了吗?

mowangdk commented 2 years ago

参考: https://github.com/kubernetes-sigs/alibaba-cloud-csi-driver/blob/master/docs/migrate/flexvolume-to-csi-disk.md

huangzx3 commented 2 years ago

你这个是flexvolume转csi? kubelet的参数改了吗?

您好,也不算是flexvolume转csi,之前参考过其他教程装过flexvolume,发现无法使用,后来才装的 alibaba-cloud-csi-driver,算是直接使用的csi,集群也是刚搭建的

lc-1203 commented 2 years ago

我用k8s 1.22(安装方法:https://github.com/lizhenliang/ansible-install-k8s)也报这个错,可能安装的时候哪里没配置好吧,1.20没问题

huangzx3 commented 2 years ago

我用k8s 1.22(安装方法:https://github.com/lizhenliang/ansible-install-k8s)也报这个错,可能安装的时候哪里没配置好吧,1.20没问题。

是的,我也是用1.22不行

@mowangdk 请问是否跟1.22有关呢

mowangdk commented 2 years ago

我们更新一下sidecar image version, 目前这个版本的应该不支持1.22

mowangdk commented 2 years ago

@huangzx3 @lc-1203

mowangdk commented 2 years ago

https://github.com/kubernetes-sigs/alibaba-cloud-csi-driver/tree/master/deploy/ack

重新部署一下csi-provisioner & csi-plugin

huangzx3 commented 2 years ago

回退 1.20 之后 挂载成功了

mowangdk commented 2 years ago

回退 1.20 之后 挂载成功了

好的

lc-1203 commented 2 years ago

@mowangdk 1.22.4,重新部署了还是不行。自动创建云盘了,但是无法挂载。 csi-provisioner:external-disk-attacher:pod1日志 E1223 09:23:25.273955 8 reflector.go:156] pkg/mod/k8s.io/client-go@v0.17.0/tools/cache/reflector.go:108: Failed to list *v1beta1.CSINode: the server could not find the requested resource pod2日志 I1223 09:24:10.257338 8 leaderelection.go:352] lock is held by node01 and has not yet expired I1223 09:24:10.257364 8 leaderelection.go:247] failed to acquire lease kube-system/external-attacher-leader-diskplugin-csi-alibabacloud-com

mowangdk commented 2 years ago

@mowangdk 1.22.4,重新部署了还是不行。自动创建云盘了,但是无法挂载。 csi-provisioner:external-disk-attacher:pod1日志 E1223 09:23:25.273955 8 reflector.go:156] pkg/mod/k8s.io/client-go@v0.17.0/tools/cache/reflector.go:108: Failed to list *v1beta1.CSINode: the server could not find the requested resource pod2日志 I1223 09:24:10.257338 8 leaderelection.go:352] lock is held by node01 and has not yet expired I1223 09:24:10.257364 8 leaderelection.go:247] failed to acquire lease kube-system/external-attacher-leader-diskplugin-csi-alibabacloud-com

external-attacher & external-resizer的版本还需要更新下,我这边随后提pr 更新模板

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-ci-robot commented 2 years ago

@k8s-triage-robot: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/alibaba-cloud-csi-driver/issues/582#issuecomment-1133908235): >The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. > >This bot triages issues and PRs according to the following rules: >- After 90d of inactivity, `lifecycle/stale` is applied >- After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied >- After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed > >You can: >- Reopen this issue or PR with `/reopen` >- Mark this issue or PR as fresh with `/remove-lifecycle rotten` >- Offer to help out with [Issue Triage][1] > >Please send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). > >/close > >[1]: https://www.kubernetes.dev/docs/guide/issue-triage/ Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.