Skip to content

Truncate Wasb storage account name if it's more than 24 characters#33851

Merged
eladkal merged 3 commits into
apache:mainfrom
astronomer:wasb-url-fix
Aug 29, 2023
Merged

Truncate Wasb storage account name if it's more than 24 characters#33851
eladkal merged 3 commits into
apache:mainfrom
astronomer:wasb-url-fix

Conversation

@ephraimbuddy

Copy link
Copy Markdown
Contributor

Storage account names must be between 3 and 24 characters in length but for some reasons that I can't explain, we saw a situation where the storage name is more than 24 characters and had to be truncated before it could work. Maybe it was possible in the past to have more than 24 characters or it could come from cluster but whichever way, the solution that worked was truncating the account name to 24 characters.

https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview#storage-account-name

Comment thread airflow/providers/microsoft/azure/hooks/wasb.py Outdated
ephraimbuddy and others added 3 commits August 28, 2023 22:47
Storage account names must be between 3 and 24 characters in length but for some
reasons that I can't explain, we saw a situation where the storage name is more than 24 characters
and had to be truncated before it could work. Maybe it was possible in the past to have more than 24 characters or
it could come from cluster but whichever way, the solution that worked was truncating the account name to
24 characters.
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@eladkal eladkal merged commit 9e2d607 into apache:main Aug 29, 2023
@ephraimbuddy ephraimbuddy deleted the wasb-url-fix branch August 29, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants