Skip to content

Instantly share code, notes, and snippets.

@skylerberg
Created December 18, 2014 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skylerberg/f952f24ce240cd5a04a8 to your computer and use it in GitHub Desktop.
Save skylerberg/f952f24ce240cd5a04a8 to your computer and use it in GitHub Desktop.
Swift module error
swift upload container-name bin.tar.gz
root@minion:/tmp# salt-call swift.put container-name bin.tar.gz local_file=./bin.tar.gz
[INFO ] Starting new HTTP connection (1): controller
[INFO ] Starting new HTTP connection (1): ceph-radosgw
[INFO ] REQ: curl -i (OMITTED BECAUSE TOKEN IS HUGE)
[INFO ] RESP STATUS: 411 Length Required
[INFO ] RESP HEADERS: [('date', 'Thu, 18 Dec 2014 21:08:23 GMT'), ('content-length', '238'), ('content-type', 'text/html; charset=iso-8859-1'), ('connection', 'close'), ('server', 'Apache/2.4.7 (Ubuntu)')]
[INFO ] RESP BODY: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>411 Length Required</title>
</head><body>
<h1>Length Required</h1>
<p>A request of the requested method PUT requires a valid Content-length.<br />
</p>
</body></html>
[ERROR ] Object PUT failed: http://internal-address/swift/v1/d-cloud/bin.tar.gz 411 Length Required [first 60 chars of response] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><he
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1189, in _retry
rv = func(self.url, self.token, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 960, in put_object
http_response_content=body)
ClientException: Object PUT failed: http://internal-address/swift/v1/d-cloud/bin.tar.gz 411 Length Required [first 60 chars of response] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><he
[ERROR ] There was an error::
[ERROR ] Content:
Object PUT failed: http://internal-address/swift/v1/d-cloud/bin.tar.gz 411 Length Required [first 60 chars of response] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><he
local:
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment