From notifications-return-15370-archive-asf-public=cust-asf.ponee.io@libcloud.apache.org Thu May 30 18:36:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C020B180638 for ; Thu, 30 May 2019 20:36:01 +0200 (CEST) Received: (qmail 67740 invoked by uid 500); 30 May 2019 18:36:01 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 67730 invoked by uid 99); 30 May 2019 18:36:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2019 18:36:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 59D68E0A4B for ; Thu, 30 May 2019 18:36:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0E73524599 for ; Thu, 30 May 2019 18:36:00 +0000 (UTC) Date: Thu, 30 May 2019 18:36:00 +0000 (UTC) From: "Clemens Wolff (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LIBCLOUD-968) Creating containers with azure fails with InvalidCredsError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 "", line 1, in > 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 "", line 1, in > 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)