-
Notifications
You must be signed in to change notification settings - Fork 925
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
[LIBCLOUD-851] Fix azure_blobs driver with BlobStorage account #1294
Conversation
As per https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/create#kind, there are several types of storage accounts that can be created in Azure including: StorageV2 (default), Storage and BlobStorage. As per https://docs.microsoft.com/en-us/rest/api/storageservices/versioning-for-the-azure-storage-services, StorageV2 and Storage support API versions of `2009-09-19` or newer. BlobStorage only supports API versions of `2014-02-14` or newer. In order to ensure that libcloud works with all the types of storage accounts, this change raises the API version used by the storage driver to the earliest version supported by all the account types.
Codecov Report
@@ Coverage Diff @@
## trunk #1294 +/- ##
==========================================
- Coverage 85.95% 85.95% -0.01%
==========================================
Files 359 359
Lines 73911 73912 +1
Branches 6705 6705
==========================================
- Hits 63530 63529 -1
- Misses 7699 7700 +1
- Partials 2682 2683 +1
Continue to review full report at Codecov.
|
@cicorias @michaelperel @jmspring could one of you please review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@c-w I was hoping you will be able to merge this yourself :) |
I went ahead and merged this bug fix into trunk. Thanks @c-w and @daviskirk. |
Fix azure_blobs driver with BlobStorage account
Description
As discussed in LIBCLOUD-851, the Azure Storage driver currently doesn't work when used against a storage account that was created using
kind=BlobStorage
(see failed integration test). This is because BlobStorage accounts only work with API version2014-02-14
or newer (see docs). Updating the API version fixes the problem and doesn't affect the other types of storage accounts (see passed integration test).Note that this pull request is based on the work of @daviskirk in #1202.
Status
Checklist (tick everything that applies)