Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.15.1
-
None
-
None
Description
I have a continuous integration bot that uploads build artifacts to a Rackspace cloud container on a regular basis using Apache Libcloud via wheelhouse-uploader [1]. However I get rare random failures from time to time that I could never reproduce from my workstation. Unfortunately the error message reported by libcloud is not informative. See the following traceback:
[20:24:13] Traceback (most recent call last): [20:24:13] File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main [20:24:13] "__main__", fname, loader, pkg_name) [20:24:13] File "C:\Python27\lib\runpy.py", line 72, in _run_code [20:24:13] exec code in run_globals [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\__main__.py", line 3, in <module> [20:24:13] main() [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\commandline.py", line 104, in main [20:24:13] return handle_upload(options) [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\commandline.py", line 87, in handle_upload [20:24:13] uploader.upload(options.local_folder, options.container_name) [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\upload.py", line 50, in upload [20:24:13] retry_on_error=retry_on_error - 1) [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\upload.py", line 50, in upload [20:24:13] retry_on_error=retry_on_error - 1) [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\upload.py", line 50, in upload [20:24:13] retry_on_error=retry_on_error - 1) [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\upload.py", line 41, in upload [20:24:13] self._upload(local_folder, container) [20:24:13] File "C:\Python27\lib\site-packages\wheelhouse_uploader\upload.py", line 56, in _upload [20:24:13] container = driver.get_container(container_name) [20:24:13] File "C:\Python27\lib\site-packages\libcloud\storage\drivers\cloudfiles.py", line 281, in get_container [20:24:13] method='HEAD') [20:24:13] File "C:\Python27\lib\site-packages\libcloud\storage\drivers\cloudfiles.py", line 235, in request [20:24:13] raw=raw, cdn_request=cdn_request) [20:24:13] File "C:\Python27\lib\site-packages\libcloud\storage\drivers\cloudfiles.py", line 163, in request [20:24:13] raw=raw) [20:24:13] File "C:\Python27\lib\site-packages\libcloud\common\openstack.py", line 200, in request [20:24:13] raw=raw) [20:24:13] File "C:\Python27\lib\site-packages\libcloud\common\base.py", line 736, in request [20:24:13] response = responseCls(**kwargs) [20:24:13] File "C:\Python27\lib\site-packages\libcloud\common\base.py", line 117, in __init__ [20:24:13] raise Exception(self.parse_error()) [20:24:13] Exception
In particular the self.parse_error() call does not report anything.
I cannot use the `LIBCLOUD_DEBUG` reporting as this CI platform is public. Would it be possible to get the raw body and HTTP headers of the response that caused the exception to as to be able to report it to Rackspace?