Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver allows volumeMode: Block when it shouldn't. #19

Open
datamattsson opened this issue Dec 12, 2024 · 0 comments
Open

Driver allows volumeMode: Block when it shouldn't. #19

datamattsson opened this issue Dec 12, 2024 · 0 comments

Comments

@datamattsson
Copy link

CSI e2e tests failures:

External Storage [Driver: csi.vastdata.com] [Testpattern: Dynamic PV (block volmode)] volumeMode should fail in binding dynamic provisioned PV to PVC [Slow] [LinuxOnly]

Attached are the e2e files.

driver.yaml

ShortName: vastdata
StorageClass:
  FromFile: "storage-class-vastdata.yaml"
SnapshotClass:
  FromFile: "volume-snapshot-class-vastdata.yaml"
DriverInfo:
  Name: csi.vastdata.com
  RequiredAccessModes:
    - ReadWriteMany
  Capabilities:
    nodeExpansion: true
    pvcDataSource: true
    controllerExpansion: true
    singleNodeVolume: true
    fsGroup: false
    persistence: true
    block: false
    exec: true
    snapshotDataSource: true
    multipods: true
    volumeLimits: false
    topology: false
    RWX: true
    FSResizeFromSourceNotSupported: true
    readWriteOncePod: false
  SupportedSizeRange: 
    Min: 4Gi 
    Max: 32Gi

storage-class-vastdata.yaml

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    storageclass.kubernetes.io/is-default-class: "false"
  name: vast-e2e
parameters:
  csi.storage.k8s.io/provisioner-secret-name: vast-file-backend
  csi.storage.k8s.io/provisioner-secret-namespace: vast-storage
  csi.storage.k8s.io/controller-publish-secret-name: vast-file-backend
  csi.storage.k8s.io/controller-publish-secret-namespace: vast-storage
  csi.storage.k8s.io/node-publish-secret-name: vast-file-backend
  csi.storage.k8s.io/node-publish-secret-namespace: vast-storage
  csi.storage.k8s.io/controller-expand-secret-name: vast-file-backend
  csi.storage.k8s.io/controller-expand-secret-namespace: vast-storage
  root_export: /mmattsson
  view_policy: mmattsson
  vip_pool_name: mmattsson
provisioner: csi.vastdata.com
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
mountOptions:
  - nfsvers=3

volume-snapshot-class-vastdata.yaml

apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: csi.vastdata.com
kind: VolumeSnapshotClass
metadata:
  name: vastdata-e2e
parameters:
  csi.storage.k8s.io/snapshotter-secret-name: vast-file-backend
  csi.storage.k8s.io/snapshotter-secret-namespace: vast-storage
  csi.storage.k8s.io/snapshotter-list-secret-name: vast-file-backend
  csi.storage.k8s.io/snapshotter-list-secret-namespace: vast-storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant