Skip to content

Ephemeral volumes should generate more uniqness. #11

Description

@datamattsson

I'm unable to create ephemeral volumes with the same inline stanza for each volume.

  volumes:
  - csi:
      driver: csi.vastdata.com
      volumeAttributes:
        csi.storage.k8s.io/ephemeral: "true"
        eph_volume_name_fmt: csi:{namespace}:{name}:{id}
        root_export: /export
        view_policy: my-view
        vip_pool_name: my-pool
        volume_name_fmt: csi:{namespace}:{name}:{id}
    name: my-volume-0
  - csi:
      driver: csi.vastdata.com
      volumeAttributes:
        csi.storage.k8s.io/ephemeral: "true"
        eph_volume_name_fmt: csi:{namespace}:{name}:{id}
        root_export: /export
        view_policy: my-view
        vip_pool_name: my-pool
        volume_name_fmt: csi:{namespace}:{name}:{id}
    name: my-volume-1

Rightfully, the controller complains:

  Warning  FailedMount  109s (x2 over 3m51s)  kubelet  (combined from similar events): MountVolume.SetUp failed for volume "my-volume-0" : rpc error: code = Unknown desc = [NodePublishVolume]. HTTP 400: {"detail":"Quota name must be unique per tenant. Pair quota_name='csi:ephemeral-2118:inline-volume-tester-qp6cz:6720e968-aa60-485e' tenant=<Tenant: default> violates uniqueness."}
    response = <Response [400]>
    timestamp = 2024-09-17T19:11:24.706357

This violates a Kubernetes CSI e2e test case:

External Storage [Driver: csi.vastdata.com] [Testpattern: CSI Ephemeral-volume (default fs)] ephemeral should support multiple inline ephemeral volumes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions