summaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch to flake8.Monty Taylor2013-05-011-71/+107
| | | | Change-Id: Ib9ba1e7eed09c5a90c558a8365d0a87c3f4b5ee5
* Improve Python 3.x compatibilityDirk Mueller2013-04-291-23/+23
| | | | | | | | Some mechancical replacement of the deprecated except x,y: construct with except x as y, which works with any Python version >= 2.6 Change-Id: Ic245049dc7b408a5c89b9e27dfd2bd7c08acc5b5
* Merge "Static large object support."1.4.0Jenkins2013-04-041-34/+105
|\
| * Static large object support.David Goetz2013-04-031-34/+105
| | | | | | | | | | | | | | | | Also fixed bug with current large objects with segment listing prefixes. Allow retry for object PUTs when possible. Change-Id: I0edff127fd5d5c53da33aa7cb76a4f4dc85bf6e6
* | Improve auth option helpDean Troyer2013-04-041-3/+14
|/ | | | | | | Add to the help strings to clarify the need for --os-auth-token to also have --os-storage-url supplied. Change-Id: I6a7259c38ce01813ae96f307efaf46e7863bd223
* Merge "Allow user to specify headers at the command line."Jenkins2013-03-211-1/+15
|\
| * Allow user to specify headers at the command line.tong li2013-03-181-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently swift client does not allow content type to be specified when upload an object. It does not allow a user to change content type neither. This patch will allow a user to specify content type by using upload command or modify the content type by using post command. For example: 1. To upload an object with specific content type: swift upload -H content-type:applicaiton/xml con1 file1 2. To modify an object to a specific content type: swift post -H content-type:application/josn con1 file1 This patch also allow a client to specify other request headers. Change-Id: I12db83a1d465285e0906889cc67dfaa44e059568 Fixes: bug #1154621
* | Merge "Allow v2 to use storage_url/storage_token directly"Jenkins2013-03-191-1/+7
|\ \ | |/ |/|
| * Allow v2 to use storage_url/storage_token directlyChmouel Boudjnah2013-02-271-1/+7
| | | | | | | | | | | | - Fixes bug 1134306. Change-Id: Ie1737c57f57bcdad50b3096c921d46a1fe5293b8
* | Merge "Added "/" check when list containers."Jenkins2013-02-281-1/+1
|\ \
| * | Added "/" check when list containers.Jian Zhang2013-02-241-1/+1
| |/ | | | | | | | | | | | | | | If there is a "/" in container name, print usage. Fixs bug 1121897. Change-Id: I633b5b7ff3a8dbc249ddd3c65439dd46c7d93b4a
* | Allow to specify segment containeryuan-zhou2013-02-261-6/+20
|/ | | | | | | | | | | | | | Fix bug 1110924 Add segment container option as part of 'swift upload -S'. If this option is omitted, the segments will go to <container>_segments. Example: $ swift upload c1 obj1 -S 1 -C user_segments Please check swift upload --help for more details Change-Id: Ib71aae322485d8d3ac89916d37ebcac053f49e3b
* Fix reporting version.Chmouel Boudjnah2013-01-221-1/+4
| | | | | | - Fixes bug 1102691. Change-Id: I72749a1c87a1f337b45d193e923b437d12270b05
* Merge "Add env[SWIFTCLIENT_INSECURE]"Jenkins2013-01-101-3/+8
|\
| * Add env[SWIFTCLIENT_INSECURE]You Yamagata2013-01-101-3/+8
| | | | | | | | | | | | | | | | 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-1/+9
|/ | | | | | | | | | | - 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-0/+7
| | | | | | | | | 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
* Merge "Add --insecure option to fix bug #1077869"Jenkins2012-12-091-1/+7
|\
| * Add --insecure option to fix bug #1077869You Yamagata2012-12-051-1/+7
| | | | | | | | | | | | | | If enable this option , swift CLI is allowed to access a keystone server with self signed certificate. Change-Id: I5e219fe875b246b68ac51a077e7ff15e95463adf
* | Merge "Don't add trailing slash to auth URL."Jenkins2012-12-061-4/+0
|\ \
| * | Don't add trailing slash to auth URL.Juan J. Martinez2012-12-031-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding a trailing slash to the authentication URL may interfere with auth service implementations not using /FOO/ but /FOO as authentication URL. OpenStack Object Storage API 1.0 doesn't specify that the auth URL must end in a slash and swiftclient.client doesn't force it either. Change-Id: I4e6b6d758d5ccc884e253880513e3d8763ffc2ff Fixes: bug #1085827
* | | Don't segment objects smaller than --segment-sizeyuan-zhou2012-12-041-1/+2
| |/ |/| | | | | | | | | Fix bug 1075184 Change-Id: I369e742ca802744ac20e3575828cfa881018de6d
* | Merge "Adding segment size as another x-object-manifest component"Jenkins2012-12-031-4/+5
|\ \ | |/ |/|
| * Adding segment size as another x-object-manifest componentyuan-zhou2012-11-271-4/+5
| | | | | | | | | | | | Fix bug 1082930 Change-Id: I2cee91a8f74a3f58379b1b4aefae9401ba5b02c1
* | Stop loss of precision when writing 'x-object-meta-mtime'Nick Craig-Wood2012-11-181-1/+1
|/ | | | | | | | | | | | | | | | str(float) isn't a good way of converting a float to a string with all the precision Eg >>> f = os.path.getmtime("z") >>> f 1347717491.343554 >>> str(f) '1347717491.34' >>> "%f" % f '1347717491.343554' Change-Id: I6eb02f7f6730eff814c348d1039eae4606642b52
* fixed inconsistencies in parameter descriptionsChristian Berendt2012-11-131-10/+9
| | | | Change-Id: I208c7fe97c8ec543b5e1cd230527d3eceb52570f
* Merge " Fix swiftclient 400 error when OS_AUTH_URL is set."Jenkins2012-10-021-2/+1
|\
| * Fix swiftclient 400 error when OS_AUTH_URL is set.yuxcer2012-08-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Description: The swift command tool will set the auth version to 2 if OS_AUTH_URL is set even use -V 1 option to set Version to 1.So when use nova/glance client and swift client in the same shell, and export environment OS_AUTH_URL, it will lead swift client to raise 400 error if swift not use keystone for auth. Fixes bug 1034158 Change-Id: I8003ff2ad4ac25fd710f87c4dab1507f6040ed3d
* | Add region_name support1.2.0Donagh McCabe2012-09-111-0/+8
| | | | | | | | | | | | | | | | | | 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-0/+6
| | | | | | | | | | | | Fixes bug 1037690. Change-Id: I36b3807b2f3234c778316f1e743d27304755aed8
* | 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
* | 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 "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
* 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
* Use keystoneclient for authentication.Chmouel Boudjnah2012-07-061-19/+38
| | | | | | | | | | | | | | | - 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
* Now url encodes/decodes x-object-manifest valuesgholt2012-06-281-2/+7
| | | | Change-Id: I8ce7fa1cb0aba3aca622c7a793ee5d330fe4e265
* 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 "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
* Allow specify the tenant in user.Chmouel Boudjnah2012-05-081-4/+6
| | | | | - This is to allow the -U tenant:user syntax like previously supported when not using the os_ arguments.
* First commit.Chmouel Boudjnah2012-05-081-0/+1066