summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add region_name support1.2.0Donagh McCabe2012-09-114-5/+41
| | | | | | | | | 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-044-15/+38
| | | | | | Fixes bug 1037690. Change-Id: I36b3807b2f3234c778316f1e743d27304755aed8
* Merge "PEP8 issues fixed"Jenkins2012-08-291-3/+5
|\
| * PEP8 issues fixedRay Chen2012-08-291-3/+5
| | | | | | | | | | | | | | 1. Have a better indent in doc/source/conf.py 2. Fix an import issue Change-Id: I5811c195157706d2a85c0fd47666e67f94b2c558
* | PEP8 cleanup.Chmouel Boudjnah2012-08-291-6/+6
|/ | | | | | Some trivial pep8 cleanup. Change-Id: I0f02c0730bf889b2b89063bef6bcc8b71d36505c
* Add ability to download without writing to disk.Darrell Bishop2012-08-281-10/+18
| | | | | | | | | | | | | This patch adds a "--no-download" option to the "download" command. When given, all writing to disk is bypassed, while still actually downloading the data and validating etags. This can be handy when you're using the swift command-line client to test out a swift cluster and don't want client-side disk writing to be a bottle-neck (but you still want to know about any etag validation failures). Change-Id: I0a511f473a64820161d1eb529b995900742794f2
* Fix PEP8 issues.lrqrun2012-08-281-1/+2
| | | | | | Fix some pep8 issues in doc/source/conf.py make the code looks pretty. Change-Id: Icc5ce260aaae8a2c436f5146840ffde4e6ef2839
* Merge "Add nosehtmloutput as a test dependency."Jenkins2012-08-281-0/+1
|\
| * Add nosehtmloutput as a test dependency.Clark Boylan2012-08-211-0/+1
| | | | | | | | | | | | | | | | Adding nosehtmloutput as a test dependency allows nose to output its results to an html file. This will be used by Jenkins to save logs on a different server. Change-Id: I4292ba27db9371d5a8dae4b901a46165b9ee6721
* | Change '_' to '-' in optionsDean Troyer2012-08-231-13/+35
| | | | | | | | | | | | | | | | | | | | This changes every command-line option with a '_' in its name and changes them to '-'. The old option names are maintained for backward compatibility but are no longer in the help text. BP command-options Change-Id: I79b3c03f59ce8e253aa0dcbf0c2ed5a56d71cd0c
* | Merge "Ensure Content-Length header when PUT/POST a container"Jenkins2012-08-221-0/+4
|\ \ | |/ |/|
| * Ensure Content-Length header when PUT/POST a containerSam Morrison2012-08-151-0/+4
| | | | | | | | | | | | Fixes bug #951155 Change-Id: Ib1455ddb142137cc0946d50a66540eae6402f598
* | Merge "Shuffle download order (of containers and objects)"Jenkins2012-08-171-2/+5
|\ \
| * | Shuffle download order (of containers and objects)Darrell Bishop2012-08-161-2/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | When downloading the same containers or objects with multiple invocations of the swift command-line client, you'll get better throughput and avoid "hot spots" if each client randomizes its download order. Note that the marker must be picked *before* shuffling the containers or objects. Change-Id: I7240eda57a80e1708c2483827c6329fd57d5fc51
* | Add timing stats to verbose download output.Darrell Bishop2012-08-161-4/+10
|/ | | | | | | | | | | | | When using the swift command-line tool to evaluate a Swift cluster, it can be very handy to get some insight into the download timing. This patch adds timing data to verbose output for the download command. For each downloaded file, the printed line will also contain: - The time it took to send the request and receive the header - The total time the request took (including writing the file out locally) - The average throughput of the download Change-Id: Ib4a995623af973bb1eed4fb52c8c0e5da935964d
* Make python-keystoneclient optionalgholt2012-08-142-1/+1
| | | | | | A lot of us don't use Keystone. Change-Id: Ifcd5fe609efbe950e935c0e0cfee200687b69eda
* Fix container delete throughput and 409 retries.Darrell Bishop2012-08-031-2/+6
| | | | | | | | | | | | | Fix race condition in _delete_container() where all elements of object_queue have been removed, but the last one (per thread) may not have actually been deleted yet when the container deletion thread calls conn.delete_container(container). Fixes bug 1032879. Improves container deletion throughput by immediately deleting containers with no objects instead of waiting for all pending object deletes to complete. Fixes bug 1032878. Change-Id: I404229a4c608995294e0ada77724ac8afe8d6f3c
* Merge "Use keystoneclient for authentication."Jenkins2012-08-025-104/+135
|\
| * Use keystoneclient for authentication.Chmouel Boudjnah2012-07-065-104/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Merge "Removes the title "Swift Web" from landing page."Jenkins2012-07-161-1/+1
|\ \
| * | Removes the title "Swift Web" from landing page.annegentle2012-07-051-1/+1
| |/ | | | | | | | | | | Also want to test the DocImpact flag for notifications. Change-Id: I4e12d76050720bec5126db3c87391dbbe54773a2
* | Consume version info from pkg_resources.Clark Boylan2012-07-117-25/+208
|/ | | | | | | | | | | | | | 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 "Now url encodes/decodes x-object-manifest values"Jenkins2012-07-041-2/+7
|\
| * Now url encodes/decodes x-object-manifest valuesgholt2012-06-281-2/+7
| | | | | | | | Change-Id: I8ce7fa1cb0aba3aca622c7a793ee5d330fe4e265
* | Merge "Add post-tag versioning."1.1.1Jenkins2012-07-015-34/+169
|\ \ | |/ |/|
| * Add post-tag versioning.Monty Taylor2012-06-265-34/+169
| | | | | | | | Change-Id: Id921105dd2fa818cac7c66dc620b266fd5639d72
* | Merge "Make swift exit on ctrl-c."Jenkins2012-06-271-2/+28
|\ \
| * | Make swift exit on ctrl-c.Samuel Merritt2012-06-271-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first time the user presses ctrl-c, all QueueFunctionThreads will have abort=True set on them. This will cause them to finish the work they're doing (e.g. finish uploading the current file) but then ignore any further work and let the process exit. Also, a notification of this is written to stderr so the user understands why the process didn't exit immediately. The second time the user presses ctrl-c, the process will exit immediately. Any in-progress operations are abandoned. Change-Id: Ie6927f78726ac1c7998e920cb608682ead10f25b
* | | Configurable concurrency for swift client.Samuel Merritt2012-06-271-11/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'delete', 'download', and 'upload' commands use multiple threads for concurrency. However, the number of threads was hardcoded at 10. This patch simply makes those configurable. For example, if I'm downloading a lot of files but I don't want to saturate the downstream on my Internet connection, I might choose to use only 1 or 2 threads for object downloads. Conversely, if I'm uploading a lot of small files across a fast network, I would want lots of threads to speed things along. The default number of threads is 10, so the default behavior is unchanged. Change-Id: I64c06741b24ca97fef5ded206d7e898bf5cab3b8
* | | Merge "Allow specify tenant:user in user."Jenkins2012-06-273-0/+16
|\ \ \
| * | | Allow specify tenant:user in user.Chmouel Boudjnah2012-06-273-0/+16
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Make CLI exit nonzero on error."Jenkins2012-06-271-0/+5
|\ \ \ | |/ / |/| |
| * | Make CLI exit nonzero on error.Samuel Merritt2012-06-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | This makes it much easier to detect failure in scripts. Fixes bug 973557. Change-Id: Ifd16ffcb7be85e45582095246cc29cfe44e2a173
* | | Merge "Make swift not hang on error."Jenkins2012-06-271-10/+11
|\ \ \ | |_|/ |/| |
| * | Make swift not hang on error.Samuel Merritt2012-06-181-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, if a QueueFunctionThread's function raised an exception, then its thread would log the exception and exit, leaving the rest of the jobs in the queue and ensuring that the swift client would hang. Now, the exception is logged and processing continues, so all the messages get handled eventually and the client exits. Change-Id: I43d4df212847a2a85732b304de319ea2cce82ddd
* | | Don't suppress openstack auth options.Dan Prince2012-06-221-7/+12
|/ / | | | | | | | | | | Fixes LP Bug #1016600. Change-Id: I837728aa5445b6ccd07c47bdb4d99f0c84a1d7b2
* | Merge "Add missing test/tools files to the tarball."Jenkins2012-06-151-0/+2
|\ \
| * | Add missing test/tools files to the tarball.Dan Prince2012-06-141-0/+2
| | | | | | | | | | | | | | | | | | Fixes LP Bug #1013292. Change-Id: I23ccc476d5e1fa2b131d93970fd3f0e65d633fab
* | | Fix pep8 errors w/pep8==1.3.Samuel Merritt2012-06-152-52/+66
|/ / | | | | | | | | | | | | | | | | | | 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 build_sphinx options.Clark Boylan2012-06-115-1/+108
|/ | | | | | | | | To better facilitate the building and publishing of sphinx documentation by Jenkins we are moving all openstack projects with sphinx documentation to a common doc tree structure. Documentation goes in project/doc/source and build results go in project/doc/build. Change-Id: Ibe6745cac73817ea06faca77367b4269d5137a24
* Add doc and version in swiftclient.__init__.pyChmouel Boudjnah2012-06-077-1/+256
| | | | | | | - 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-063-5/+31
| | | | | | | | | - 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
* Version bump after pypi release.Monty Taylor2012-05-221-1/+1
| | | | Change-Id: Ic8a6d5de110165dbf2be106e35326288a3ecc928
* Removed now-unused .cache.bundle references.1.1.01.0Monty Taylor2012-05-211-4/+0
| | | | Change-Id: I236cc26be12c21743197e93ed304655702cb1ff2
* Added setup.cfg for verbose test output.Monty Taylor2012-05-211-0/+7
|
* Add run_tests.sh script here.Chmouel Boudjnah2012-05-212-0/+50
| | | | - Snatched from python-glanceclient repo.
* Adding fake_http_connect to test.utils.Chmouel Boudjnah2012-05-213-1/+117
| | | | - Copy fake_http_connect function from swift repository.
* Merge pull request #1 from emonty/masterChmouel Boudjnah2012-05-1613-30/+281
|\ | | | | Add the bits needed by the project testing interface
| * Add openstack project infrastructure.Monty Taylor2012-05-1613-30/+281
|/
* Add logging.Chmouel Boudjnah2012-05-091-18/+101
| | | | - If SWIFTCLIENT_DEBUG env is defined then print the full query with curl.