kubernetes在Openstack上创建cinder pvc失败并显示错误消息:由于语法错误或缺少必需参数而导致请求无效

时间:2018-11-29 02:53:14

标签: kubernetes cinder

[root @ vm-10-75-145-71〜]#kubectl描述pvc datadir-belk-efkc-belk-elasticsearch-data-1 -nheema

Name:          datadir-belk-efkc-belk-elasticsearch-data-1
Namespace:     heema
StorageClass:  cinder-az-nova
Status:        Pending
Volume:
Labels:        component=elasticsearch
               release=belk-efkc
               role=data
Annotations:   volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/cinder
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
Events:
  Type     Reason              Age                  From                         Message
  ----     ------              ----                 ----                         -------

>Warning  ProvisioningFailed  4m (x3261 over 13h)  persistentvolume-controller  Failed to provision volume with StorageClass "cinder-az-nova": failed to create a 50 GB volume: Invalid request due to incorrect syntax or missing required parameters.

yml文件如下:

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: pvc001
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 2Gi
  storageClassName: cinder-az-nova

此yml文件将创建具有相同异常的待处理pvc。

1 个答案:

答案 0 :(得分:0)

这可能是完全不同的原因,但请尝试检查“可用性”参数。通过kubespray安装,您将获得使用Availability = nova的默认存储模板。您的openstack提供商可能对区域进行了不同的命名。在我的情况下,区域为“ eu-de-01 / 2”