libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clemens Wolff (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-968) Creating containers with azure fails with InvalidCredsError
Date Thu, 30 May 2019 18:36:00 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16852176#comment-16852176
] 

Clemens Wolff commented on LIBCLOUD-968:
----------------------------------------

As of libcloud 2.4.0 the Azure Blobs driver should work fine with MacOS. I have set up a [CI
job|https://clewolff.visualstudio.com/libcloud-tests/_build/latest?definitionId=4&branchName=master]
that runs tests every day on Linux, MacOS and Windows against a live Azure Storage account
to ensure that this keep working.

> Creating containers with azure fails with InvalidCredsError
> -----------------------------------------------------------
>
>                 Key: LIBCLOUD-968
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-968
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>    Affects Versions: 0.13.3
>         Environment: Mac OS X. Python 2.7 virtual environment running.
>            Reporter: Jesse Brennan
>            Priority: Major
>
> I'm trying to use the storage API to connect to Azure blob storage.
> Trying to create a bucket fails. Trying to list buckets fails. I copied my credentials
directly from the Azure portal. 
> Hopefully this is just a configuration error on my end. Is anyone else experiencing this?
> {{PyDev console: using IPython 5.5.0
> Python 2.7.13 (default, Jul 18 2017, 09:17:00) 
> Type "copyright", "credits" or "license" for more information.
> IPython 5.5.0 -- An enhanced Interactive Python.
> ?         -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help      -> Python's own help system.
> object?   -> Details about 'object', use 'object??' for extra details.
> Python 2.7.13 (default, Jul 18 2017, 09:17:00) 
> [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
> from libcloud.storage.types import Provider
> from libcloud.storage.providers import get_driver
> driver = get_driver(Provider.AZURE_BLOBS)(key='MY_ACCOUNT_NAME', secret='MY_SECRET_KEY_1')
> driver.create_container('test-container123')
> Traceback (most recent call last):
>   File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/interactiveshell.py",
line 2882, in run_code
>     exec(code_obj, self.user_global_ns, self.user_ns)
>   File "<ipython-input-4-c40d0dcc5541>", line 1, in <module>
>     driver.create_container('test-container123')
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/storage/drivers/azure_blobs.py",
line 495, in create_container
>     method='PUT')
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/common/base.py",
line 637, in request
>     response = responseCls(**kwargs)
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/common/base.py",
line 157, in __init__
>     message=self.parse_error())
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/common/azure.py",
line 84, in parse_error
>     raise InvalidCredsError(error_msg)
> InvalidCredsError: 'AuthenticationFailed: Server failed to authenticate the request.
Make sure the value of Authorization header is formed correctly including the signature.'
> for c in driver.iterate_containers():
>     print c
>     
> Traceback (most recent call last):
>   File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/interactiveshell.py",
line 2882, in run_code
>     exec(code_obj, self.user_global_ns, self.user_ns)
>   File "<ipython-input-5-3936d68a1d1c>", line 1, in <module>
>     for c in driver.iterate_containers():
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/storage/drivers/azure_blobs.py",
line 368, in iterate_containers
>     response = self.connection.request('/', params)
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/common/base.py",
line 637, in request
>     response = responseCls(**kwargs)
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/common/base.py",
line 157, in __init__
>     message=self.parse_error())
>   File "/Users/jesse/Documents/genomics/toil/gcs/lib/python2.7/site-packages/libcloud/common/azure.py",
line 84, in parse_error
>     raise InvalidCredsError(error_msg)
> InvalidCredsError: 'AuthenticationFailed: Server failed to authenticate the request.
Make sure the value of Authorization header is formed correctly including the signature.'}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message