Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
libcloud seems to have issues when using an HTTP proxy. This bug is triggered by the StorageDriver _upload_object method's use of raw=True.
File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 448, in upload_object storage_class=ex_storage_class) File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 836, in _put_object headers = response.headers File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/common/base.py", line 253, in headers self._headers = lowercase_keys(dict(self.response.getheaders())) File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/common/base.py", line 241, in response self.parse_error() File "/home/nf/work/spotify-gceimage/.tox/py27/local/lib/python2.7/site-packages/libcloud/storage/drivers/s3.py", line 87, in parse_error driver=S3StorageDriver) libcloud.common.types.LibcloudError: <LibcloudError in <class 'libcloud.storage.drivers.s3.S3StorageDriver'> 'Unknown error. Status code: 503'>
Closer examination of the response reveals that the request is being sent with the host/port of the proxy server, not the destination:
{request}<p>The following error was encountered while trying to retrieve the URL: <a href="https://127.0.0.1:3128/spotify-gceimage-employeegameday/test-spotify-gceimage-trusty-20150713-1801-review-build-55.tar.gz">https://127.0.0.1:3128/spotify-gceimage-employeegameday/tes
t-spotify-gceimage-trusty-20150713-1801-review-build-55.tar.gz</a></p>{request}
Attachments
Issue Links
- links to