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

[Bug]: Cannot create file share in storage account #869

Open
1 task done
hobbesuk opened this issue Nov 6, 2024 · 1 comment
Open
1 task done

[Bug]: Cannot create file share in storage account #869

hobbesuk opened this issue Nov 6, 2024 · 1 comment
Labels
bug Something isn't working needs:triage

Comments

@hobbesuk
Copy link

hobbesuk commented Nov 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

storage.azure.upbound.io/v1beta1 - Share

Resource MRs required to reproduce the bug

Using these manifests (some details redacted):

apiVersion: storage.azure.upbound.io/v1beta1
kind: Share
metadata:
  name: test
spec:
  forProvider:
    quota: 50
    storageAccountName: redactedstr

---
apiVersion: storage.azure.upbound.io/v1beta2
kind: Account
metadata:
  name: redactedstr
spec:
  forProvider:
    accountKind: FileStorage
    accountReplicationType: LRS
    accountTier: Premium
    enableHttpsTrafficOnly: true
    location: North Europe
    minTlsVersion: TLS1_2
    resourceGroupName: storage
  writeConnectionSecretToRef:
    name:storage-file
    namespace: test

Steps to Reproduce

Apply the above manifests

What happened?

This error is returned:

async create failed: failed to create the resource: [{0 creating File
        Share "test" (Account "Account \"redactedstr\" (IsEdgeZone false /
        ZoneName \"\" / Subdomain Type \"file\" / DomainSuffix
        \"core.windows.net\")"): creating share: executing request: unexpected
        status 400 (400 The value for one of the HTTP headers is not in the
        correct format.) with InvalidHeaderValue: The value for one of the HTTP
        headers is not in the correct format.

        RequestId:xxxx

        Time:2024-11-06T16:48:14.6649628Z  []}]

Relevant Error Output Snippet

No response

Crossplane Version

1.16.0

Provider Version

1.7.0

Kubernetes Version

1.28.9

Kubernetes Distribution

AKS

Additional Info

No response

@hobbesuk hobbesuk added bug Something isn't working needs:triage labels Nov 6, 2024
@hobbesuk
Copy link
Author

hobbesuk commented Nov 7, 2024

I found the problem, it looks like azure only supports file shares on a premium tier that are over 100Gb in size, I was setting it to 50Gb.

Would be useful if the error could have exposed this restriction somehow. Is that possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

1 participant