前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >部署 cinder-csi-plugin 遇到的几个问题

部署 cinder-csi-plugin 遇到的几个问题

作者头像
后端云
发布2022-06-09 20:16:53
1K0
发布2022-06-09 20:16:53
举报
文章被收录于专栏:后端云

Kubernetes集群的Pod使用Openstack Cinder作为后端存储,需要部署cinder-csi-plugin

https://github.com/kubernetes/cloud-provider-openstack

连不上 Keystone: 为部分 Pod 添加自定义域名解析

Keystone url用了域名,需要在/etc/hosts添加域名解析

以下仅用于举例说明如何为 Pod 添加自定义域名解析

如果有部分 Pod 对特定的域名解析有依赖,在不希望配置 dns 解析的情况下,可以使用 K8S 提供的 hostAliases 来为部分工作负载添加 hosts:

代码语言:javascript
复制
spec:
  hostAliases:
  - hostnames: [ "harbor.example.com" ]
    ip: "10.10.10.10"
复制代码

添加后在容器内可以看到 hosts 被添加到了 /etc/hosts 中:

代码语言:javascript
复制
$ cat /etc/hosts
...
# Entries added by HostAliases.
10.10.10.10    harboar.example.com
复制代码

metadata服务没起来

代码语言:javascript
复制
[developer@localhost ~]$ kubectl logs csi-cinder-nodeplugin-t8hcx -nkube-system -c cinder-csi-plugin
I0424 11:10:56.531843       1 driver.go:73] Driver: cinder.csi.openstack.org
I0424 11:10:56.531889       1 driver.go:74] Driver version: 1.3.2@latest
I0424 11:10:56.531892       1 driver.go:75] CSI Spec version: 1.3.0
I0424 11:10:56.531898       1 driver.go:104] Enabling controller service capability: LIST_VOLUMES
I0424 11:10:56.531900       1 driver.go:104] Enabling controller service capability: CREATE_DELETE_VOLUME
I0424 11:10:56.531907       1 driver.go:104] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I0424 11:10:56.531909       1 driver.go:104] Enabling controller service capability: CREATE_DELETE_SNAPSHOT
I0424 11:10:56.531911       1 driver.go:104] Enabling controller service capability: LIST_SNAPSHOTS
I0424 11:10:56.531913       1 driver.go:104] Enabling controller service capability: EXPAND_VOLUME
I0424 11:10:56.531915       1 driver.go:104] Enabling controller service capability: CLONE_VOLUME
I0424 11:10:56.531917       1 driver.go:104] Enabling controller service capability: LIST_VOLUMES_PUBLISHED_NODES
I0424 11:10:56.531919       1 driver.go:116] Enabling volume access mode: SINGLE_NODE_WRITER
I0424 11:10:56.531920       1 driver.go:126] Enabling node service capability: STAGE_UNSTAGE_VOLUME
I0424 11:10:56.531923       1 driver.go:126] Enabling node service capability: EXPAND_VOLUME
I0424 11:10:56.531928       1 driver.go:126] Enabling node service capability: GET_VOLUME_STATS
I0424 11:10:56.532069       1 openstack.go:90] Block storage opts: {0 false false}
I0424 11:10:57.181982       1 server.go:108] Listening for connections on address: &net.UnixAddr{Name:"/csi/csi.sock", Net:"unix"}
E0424 11:10:58.771149       1 utils.go:85] GRPC error: rpc error: code = Internal desc = [NodeGetInfo] unable to retrieve instance id of node error fetching http://169.254.169.254/openstack/latest/meta_data.json: Get "http://169.254.169.254/openstack/latest/meta_data.json": dial tcp 169.254.169.254:80: connect: connection refused
E0424 11:11:00.768432       1 utils.go:85] GRPC error: rpc error: code = Internal desc = [NodeGetInfo] unable to retrieve instance id of node error fetching http://169.254.169.254/openstack/latest/meta_data.json: Get "http://169.254.169.254/openstack/latest/meta_data.json": dial tcp 169.254.169.254:80: connect: connection refused
E0424 11:11:13.787632       1 utils.go:85] GRPC error: rpc error: code = Internal desc = [NodeGetInfo] unable to retrieve instance id of node error fetching http://169.254.169.254/openstack/latest/meta_data.json: Get "http://169.254.169.254/openstack/latest/meta_data.json": dial tcp 169.254.169.254:80: connect: connection refusedlanguage-bash复制代码

https://github.com/kubernetes/cloud-provider-openstack/issues/1127

devstack重启后,cinder创建卷报错

https://www.codetd.com/en/article/13087314

cinder-csi-plugin node服务没起来

代码语言:javascript
复制
Normal   Provisioning          3m32s (x9 over 7m47s)  cinder.csi.openstack.org_csi-cinder-controllerplugin-667d467bf6-qfsnn_90ee191a-788a-4cda-82f2-eb61f37b20f5  External provisioner is provisioning volume for claim "default/csi-pvc-cinderplugin"
Warning  ProvisioningFailed    3m32s (x9 over 7m47s)  cinder.csi.openstack.org_csi-cinder-controllerplugin-667d467bf6-qfsnn_90ee191a-788a-4cda-82f2-eb61f37b20f5  failed to provision volume with StorageClass "csi-sc-cinderplugin": error generating accessibility requirements: no available topology found
Normal   ExternalProvisioning  97s (x26 over 7m47s)   persistentvolume-controller        waiting for a volume to be created, either by external provisioner "cinder.csi.openstack.org" or manually created by system administratorlanguage-bash复制代码

https://github.com/kubernetes-sigs/aws-ebs-csi-driver/issues/848 https://github.com/hetznercloud/csi-driver/issues/92

minikube - http: server gave HTTP response to HTTPS client

https://minikube.sigs.k8s.io/docs/handbook/registry/

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2022-05-07,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 后端云 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 连不上 Keystone: 为部分 Pod 添加自定义域名解析
  • metadata服务没起来
  • devstack重启后,cinder创建卷报错
  • cinder-csi-plugin node服务没起来
  • minikube - http: server gave HTTP response to HTTPS client
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档