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

PVC using Bring Your Own share in a StorageClass throws error #1927

Open
david-garcia-garcia opened this issue Jun 19, 2024 · 3 comments
Open
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@david-garcia-garcia
Copy link

What happened:

I am trying to setup a storage class using this driver that mounts an existing File Share. Permissions are correctly set on both the share and the storage account for the cluster identity.

This is the definition of the StorageClass

allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  creationTimestamp: "2024-06-19T09:31:23Z"
  name: sc-shared-fileshare-dgarcia
  resourceVersion: "61194002"
  uid: 5a0075e1-426a-4074-bfaf-7518ec566f18
mountOptions:
- file_mode=0777
- mfsymlinks
- gid=0
- uid=0
- dir_mode=0777
- nosharesock
- cache=strict
parameters:
  resourceGroup: xx
  shareName: data
  storageAccount: xx
  subscriptionID: xx
provisioner: file.csi.azure.com
reclaimPolicy: Retain
volumeBindingMode: Immediate

When I create a PVC I get:

Warning  ProvisioningFailed    8m25s                   file.csi.azure.com_csi-azurefile-controller-7d9d494db4-mw8fp_b7e1aea6-2850-4aac-8259-4bf77d0dac82  failed to provision volume with StorageClass "sc- │
│ shared-fileshare-dgarcia": rpc error: code = Internal desc = failed to create file share(data) on account(mystorageaccount) type() subsID(xx) rg(rg-sandboxes-shared) loca │
│ tion() size(10), error: storage.FileSharesClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidHeaderValue" Mes │
│ sage="The value for one of the HTTP headers is not in the correct format.\nRequestId:8cefd430-501a-001f-342d-c256d9000000\nTime:2024-06-19T09:43:58.4428140Z" 

What you expected to happen:

No error is thrown.

How to reproduce it:

Create a storage class and then a PVC, the PVC fails.

Environment:

  • CSI Driver version: 1.28.10
  • Kubernetes version (use kubectl version): 1.27.7
@andyzhangx
Copy link
Member

andyzhangx commented Jun 20, 2024

what is the mystorageaccount sku? the minimum size of premium account is 100GB

@k8s-triage-robot
Copy link

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

This bot triages un-triaged issues 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:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 18, 2024
@k8s-triage-robot
Copy link

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

This bot triages un-triaged issues 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:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants