summaryrefslogtreecommitdiff
path: root/swiftclient
Commit message (Collapse)AuthorAgeFilesLines
* Static large object support.David Goetz2013-04-031-10/+27
| | | | | | | | Also fixed bug with current large objects with segment listing prefixes. Allow retry for object PUTs when possible. Change-Id: I0edff127fd5d5c53da33aa7cb76a4f4dc85bf6e6
* Enhance put_object to inform when chunk is ignoredjola-mirecka2013-03-061-3/+12
| | | | | | | | | | | | | | Changed documentation for chunk_size parameter to indicate that it can be used only with file like objects. Also added a UserWarning when using a string contents to inform that chunk_size will be ignored. Added a unit test to check whether the warning is working correctly. Fixes: bug #1147232 Change-Id: I618ec45520ba81905ce2ead4d61f192d21ae3489
* Print useful message when keystoneclient is not installedFlaper Fesp2013-02-051-2/+10
| | | | | | | | | client.py now prints a useful message when trying to use Auth version 2.0 and keystoneclient is not installed. Fixes bug 1102322 Change-Id: I6ed83610fd6e8c79c2dc5cf05db377a843cab1d5
* Merge "Update to latest oslo version/setup."1.3.0Jenkins2013-01-214-217/+88
|\
| * Update to latest oslo version/setup.Monty Taylor2013-01-144-217/+88
| | | | | | | | Change-Id: I7bd38b950ef9fea8b6eaa1df599085a1c64d8b61
* | Merge "Add env[SWIFTCLIENT_INSECURE]"Jenkins2013-01-101-0/+28
|\ \
| * | Add env[SWIFTCLIENT_INSECURE]You Yamagata2013-01-101-0/+28
| |/ | | | | | | | | | | | | | | Add env[SWIFTCLIENT_INSECURE] as default of --insecure option. If set to 'true', allow to access insecure keystone server. The name follows 'NOVACLIENT_INSECURE' in novaclient. Change-Id: I322674eba9c07e6def97bce339815fa15191a92d
* | Fix debug feature and add --debug to swift.Chmouel Boudjnah2013-01-071-20/+20
|/ | | | | | | | | | | - Remove PYTHON_SWIFTCLIENT and use --debug making it more consistents with other openstack clients libraries. - Fix printing the curl command. - Don't show the body of the GET objects it could get bad on large objects and it's an iterator anyway. - Use -I for showing HEADs (and not -X HEAD). Change-Id: I954e7d3d795401fc3679725440dec36cdc80af87
* Add --os-cacertDean Troyer2012-12-201-1/+6
| | | | | | | | | Add support to specify a ca certificate bundle to verify keystone TLS (https) certificates. This only verifies certificates on the keystone connection, swift https connections are unchanged. Change-Id: I14351b405af4fd3d1970ba6656c1282a5d0a1082
* Add --insecure option to fix bug #1077869You Yamagata2012-12-051-5/+14
| | | | | | | If enable this option , swift CLI is allowed to access a keystone server with self signed certificate. Change-Id: I5e219fe875b246b68ac51a077e7ff15e95463adf
* Merge "Remove unused json_request."Jenkins2012-11-161-26/+0
|\
| * Remove unused json_request.Chmouel Boudjnah2012-11-161-26/+0
| | | | | | | | | | | | - This has been long delegated to python-keystoneclient for auth 2.0. Change-Id: I92b1fc2db68192cfeefd623c59882f65a4e4405c
* | Merge "Force utf-8 encode of HTTPConnection params"Jenkins2012-11-161-1/+30
|\ \ | |/ |/|
| * Force utf-8 encode of HTTPConnection paramsTihomir Trifonov2012-11-021-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch forces swiftclient to encode to utf-8 all url and headers arguments, to avoid the UnicodeDecodeError which is raised by '\r\n'.join([]) invoked in htplib.py. Currently the affected projects are Horizon(upload file with unicode name) and swiftclient CLI('swift post' with unicode filename as header) This is also a follow-up of this review: https://review.openstack.org/#/c/14216/ I'd still want to hear what the Swift core devs think of it. Is it better to create a new AutoEncodingHTTPConnection? Or to handle the connection creation and make sure there are no unicode and utf-8 string at the same time. If these unicode checks have to be added in the calling code(Dashboard, CLI), there are so many places to be added, and also in all new commands that might be exposed from the API. Fixes bug 1008940 Change-Id: Ice2aa29024429d3e6f569a88d5cf8b4202537827
* | Fixes setup compatibility issue on WindowsAlessandro Pilotti2012-11-062-47/+61
|/ | | | | | | | | | | Fixes Bug #1052161 "python setup.py build" fails on Windows due to a hardcoded shell path: /bin/sh setup.py updated using openstack-common/update.py Change-Id: I763dd5613d91a2523087173b196500648c477fa6
* swiftclient Connection : default optional arguments to NoneSteven Hardy2012-10-241-4/+6
| | | | | | | | Default the authurl/user/key constructor arguments for the Connection class to None, as these are not required in the preauthurl/preauthtoken case Change-Id: I445a5d365212c365ecc691c0a670a226e2b7954a
* Merge "Resolves issue with empty os_options for swift-bench & ↵Jenkins2012-09-211-8/+9
|\ | | | | | | swift-dispersion-report"
| * Resolves issue with empty os_options for swift-bench & swift-dispersion-reportAndy McCrae2012-09-201-8/+9
| | | | | | | | | | | | Fixes Bug 1044204 Change-Id: I5f0863776bc4e2953548bc7a3958141378a032a0
* | Catch authorization failuresDonagh McCabe2012-09-181-5/+11
|/ | | | | | | | Catch the most common authorization exceptions. Fixes bug 1048560 Change-Id: I81c562d6093e94e827e6583dcb31db8408980476
* Do not use dictionaries as default parametersMark Washenberger2012-09-131-3/+3
| | | | Change-Id: I1e2b7065a7cfad2511fbcee669f666257ef291d0
* Add region_name support1.2.0Donagh McCabe2012-09-111-4/+11
| | | | | | | | | Add --os-region-name (and OS_REGION_NAME env) to bin/swift Add region_name to the os_options in Connection class. bug 1019832 Change-Id: Id8515d97e5351638dce10581c7368f61518e1fa7
* Allow endpoint type to be specified.David Kranz2012-09-041-3/+4
| | | | | | Fixes bug 1037690. Change-Id: I36b3807b2f3234c778316f1e743d27304755aed8
* Ensure Content-Length header when PUT/POST a containerSam Morrison2012-08-151-0/+4
| | | | | | Fixes bug #951155 Change-Id: Ib1455ddb142137cc0946d50a66540eae6402f598
* Merge "Use keystoneclient for authentication."Jenkins2012-08-021-59/+71
|\
| * Use keystoneclient for authentication.Chmouel Boudjnah2012-07-061-59/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This allows us to delegate all 2.0 authentication directly to the library without reimplementing ourselves. - Support reusing a token / storage-url without re-authenticating every time via the switch os_storage_url os_auth_token. - Allow auth via tenant_id instead of just tenant_name via the switch os_tenant_id. - Refactor a bit to make it easier in the future to add new OS features (i.e: region). - Implements blueprint use-keystoneclient-for-swiftclient. - Fixes bug 1016641. Change-Id: I532f38a68af884de25326aaac05a2050f5ffa1c7
* | Consume version info from pkg_resources.Clark Boylan2012-07-114-20/+202
|/ | | | | | | | | | | | | | Documenation builds specify a version in doc/source/conf.py that is used in appropriate places through out the documentation. Previously this value had not been defined properly and documentation builds failed. Retrieve the version info using pkg_resources and set it properly. Use openstack.common.version to consume the generated version information for documentation. Additional, add a swiftclient.__version__ member which will return the version of swiftclient being used. Change-Id: I14f3abdf00da3f9ea7d0651efe76b08f69ddabae
* Merge "Add post-tag versioning."1.1.1Jenkins2012-07-012-29/+166
|\
| * Add post-tag versioning.Monty Taylor2012-06-262-29/+166
| | | | | | | | Change-Id: Id921105dd2fa818cac7c66dc620b266fd5639d72
* | Allow specify tenant:user in user.Chmouel Boudjnah2012-06-271-0/+2
|/ | | | | | | | | | | We allow having the syntax tenant:user in user since this would make things easier when switching from auth 1.0 to auth 2.0 and not having to specify a tenant_name. In the feature we should use the auth functions from keystoneclient and be done with those changes, we could then auth by user/tenant-ID. Change-Id: Ie49748105a678fb9369494e77d41d934d57a39a7
* Fix pep8 errors w/pep8==1.3.Samuel Merritt2012-06-151-51/+65
| | | | | | | | | | Also lock down the version of pep8 in tools/test-requires. python-swiftclient had a passing test suite yesterday, but today a new and stricter version of pep8 came out, and the test suite started to fail. Specifying a particular version of pep8 will prevent that. Change-Id: I9092d2225c01b99158229918c86b185cdac9d362
* Add doc and version in swiftclient.__init__.pyChmouel Boudjnah2012-06-071-0/+8
| | | | | | | - Add parseable version in swiftclient.__init.py - Generate rst doc like done for swift. Change-Id: I408fbc36693772d2ef6f4823757dd1f4c830193f
* Raise ClientException for invalid auth version.Dan Prince2012-06-062-5/+25
| | | | | | | | | - Fixes LP Bug #1008667. - Fix a pep8 error along the way to pass jenkins. - Update openstack.swift.common to get jenkins passing for 1.2 pep8 error. Change-Id: I4ce86a94e1c799807a2ad8e7e1c502b1eb8a51c7
* Add openstack project infrastructure.Monty Taylor2012-05-163-0/+183
|
* Add logging.Chmouel Boudjnah2012-05-091-18/+101
| | | | - If SWIFTCLIENT_DEBUG env is defined then print the full query with curl.
* Make sure we get a header StorageURL with 1.0Chmouel Boudjnah2012-05-081-3/+7
| | | | - Since RAX auth always come back with 200 we can't check with status code.
* First commit.Chmouel Boudjnah2012-05-082-0/+952