libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Grisel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-390) driver.create_container get a 411 error with Azure Blobs driver
Date Tue, 03 Sep 2013 22:55:51 GMT

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

Olivier Grisel commented on LIBCLOUD-390:
-----------------------------------------

Sorry this was with my fixed applied. Let me redo it from the trunk:

{code}
# -------- begin 4467220776 request ----------
curl -i -X PUT -H 'x-ms-version: 2012-02-12' -H 'Accept-Encoding: gzip,deflate' -H 'X-LC-Request-ID:
4467220776' -H 'User-Agent: libcloud/0.14.0-dev (Microsoft Azure (blobs)) ' -H 'Authorization:
SharedKey XXXXXXX:YYYYY=' -H 'x-ms-date: Tue, 03 Sep 2013 22:53:35 GMT' --compress 'https://XXXXXXX.blob.core.windows.net:443/container4?restype=container'
# -------- begin 4467220776:4467221712 response ----------
HTTP/1.1 411 Length Required
Date: Tue, 03 Sep 2013 22:53:32 GMT
Connection: close
Content-Type: text/html; charset=us-ascii
Content-Length: 344
Server: Microsoft-HTTPAPI/2.0

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Length Required</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>

# -------- end 4467220776:4467221712 response ----------

Traceback (most recent call last):
  File "/tmp/create_container.py", line 9, in <module>
    driver.create_container('container4')
  File "/Users/ogrisel/code/libcloud/libcloud/storage/drivers/azure_blobs.py", line 497, in
create_container
    method='PUT')
  File "/Users/ogrisel/code/libcloud/libcloud/common/base.py", line 617, in request
    connection=self)
  File "/Users/ogrisel/code/libcloud/libcloud/common/base.py", line 93, in __init__
    raise Exception(self.parse_error())
  File "/Users/ogrisel/code/libcloud/libcloud/common/azure.py", line 74, in parse_error
    driver=self)
libcloud.common.types.LibcloudError: <LibcloudError in <libcloud.common.azure.AzureResponse
object at 0x10a43ad50> 'Unknown error Status code: 411.'>
{code}
                
> driver.create_container get a 411 error with Azure Blobs driver
> ---------------------------------------------------------------
>
>                 Key: LIBCLOUD-390
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-390
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>    Affects Versions: 0.12.3
>            Reporter: Olivier Grisel
>
> On current Windows Azure, the Content-Length header is required for container creation
requests. Currently we get the following error:
> {code}
>  [...]
>   File "/Users/ogrisel/code/libcloud/libcloud/storage/drivers/azure_blobs.py", line 499,
in create_container
>     method='PUT', headers=headers)
>   File "/Users/ogrisel/code/libcloud/libcloud/common/base.py", line 617, in request
>     connection=self)
>   File "/Users/ogrisel/code/libcloud/libcloud/common/base.py", line 93, in __init__
>     raise Exception(self.parse_error())
>   File "/Users/ogrisel/code/libcloud/libcloud/common/azure.py", line 74, in parse_error
>     driver=self)
> LibcloudError: <LibcloudError in <libcloud.common.azure.AzureResponse object at
0x10cf8dc90> 'Unknown error Status code: 411.'>
> {code}
> I will soon push a fix in a branch on my github fork.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message