39 Commits

Author SHA1 Message Date
Jenkins
c2a3fc56fc Merge "Now url encodes/decodes x-object-manifest values" 2012-07-04 09:41:04 +00:00
Jenkins
a325aad8a4 Merge "Add post-tag versioning." 2012-07-01 17:57:03 +00:00
gholt
36daad953a Now url encodes/decodes x-object-manifest values
Change-Id: I8ce7fa1cb0aba3aca622c7a793ee5d330fe4e265
2012-06-28 23:43:30 +00:00
Jenkins
47f8786cc9 Merge "Make swift exit on ctrl-c." 2012-06-27 19:52:24 +00:00
Samuel Merritt
f6c7fec991 Configurable concurrency for swift client.
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
2012-06-27 12:31:21 -07:00
Jenkins
0519e58e2c Merge "Allow specify tenant:user in user." 2012-06-27 19:30:48 +00:00
Jenkins
2e05673e5c Merge "Make CLI exit nonzero on error." 2012-06-27 19:30:15 +00:00
Chmouel Boudjnah
2bcfe0b4c8 Allow specify tenant:user in user.
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
2012-06-27 19:19:37 +00:00
Samuel Merritt
c6cc7eaa81 Make swift exit on ctrl-c.
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
2012-06-27 12:03:46 -07:00
Jenkins
8396e3a4cb Merge "Make swift not hang on error." 2012-06-27 19:02:58 +00:00
Monty Taylor
51bceabd18 Add post-tag versioning.
Change-Id: Id921105dd2fa818cac7c66dc620b266fd5639d72
2012-06-26 21:23:25 -05:00
Dan Prince
3a11e185b3 Don't suppress openstack auth options.
Fixes LP Bug #1016600.

Change-Id: I837728aa5445b6ccd07c47bdb4d99f0c84a1d7b2
2012-06-22 11:12:21 -04:00
Samuel Merritt
6c1813dd34 Make swift not hang on error.
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
2012-06-18 09:47:33 -07:00
Jenkins
a92a0fa0e4 Merge "Add missing test/tools files to the tarball." 2012-06-15 22:42:08 +00:00
Samuel Merritt
c82773d3d1 Fix pep8 errors w/pep8==1.3.
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
2012-06-15 12:18:08 -07:00
Dan Prince
d20dcdd097 Add missing test/tools files to the tarball.
Fixes LP Bug #1013292.

Change-Id: I23ccc476d5e1fa2b131d93970fd3f0e65d633fab
2012-06-14 13:25:53 -04:00
Clark Boylan
12519ce026 Add build_sphinx options.
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
2012-06-11 14:51:40 -07:00
Samuel Merritt
6119de7e0b Make CLI exit nonzero on error.
This makes it much easier to detect failure in scripts.

Fixes bug 973557.

Change-Id: Ifd16ffcb7be85e45582095246cc29cfe44e2a173
2012-06-07 12:17:51 -07:00
Chmouel Boudjnah
dec11f6ec9 Add doc and version in swiftclient.__init__.py
- Add parseable version in swiftclient.__init.py
- Generate rst doc like done for swift.

Change-Id: I408fbc36693772d2ef6f4823757dd1f4c830193f
2012-06-07 12:06:28 +02:00
Dan Prince
b13823ef18 Raise ClientException for invalid auth version.
- 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
2012-06-06 19:07:08 +02:00
Monty Taylor
7bbb5c72ca Version bump after pypi release.
Change-Id: Ic8a6d5de110165dbf2be106e35326288a3ecc928
2012-05-22 08:29:09 -04:00
Monty Taylor
c9dfd144d1 Removed now-unused .cache.bundle references.
Change-Id: I236cc26be12c21743197e93ed304655702cb1ff2
1.1.0
2012-05-21 10:58:35 -04:00
Monty Taylor
bee9ae5042 Added setup.cfg for verbose test output. 2012-05-21 09:09:13 -04:00
Chmouel Boudjnah
eb775a46ed Add run_tests.sh script here.
- Snatched from python-glanceclient repo.
2012-05-21 12:52:55 +02:00
Chmouel Boudjnah
deff7eca1c Adding fake_http_connect to test.utils.
- Copy fake_http_connect function from swift repository.
2012-05-21 12:51:54 +02:00
Chmouel Boudjnah
09c484d1b0 Merge pull request #1 from emonty/master
Add the bits needed by the project testing interface
2012-05-16 15:25:31 -07:00
Monty Taylor
7df012329f Add openstack project infrastructure. 2012-05-16 17:30:46 -04:00
Chmouel Boudjnah
a42892c1f9 Add logging.
- If SWIFTCLIENT_DEBUG env is defined then print the full query with curl.
2012-05-09 15:50:17 +01:00
Chmouel Boudjnah
27c8fee760 Defined version to 1.0 2012-05-08 16:30:49 +01:00
Chmouel Boudjnah
b053b5d193 Add CHANGELOG LICENSE and MANIFEST.in 2012-05-08 16:30:13 +01:00
Chmouel Boudjnah
ee965ff4a7 Delete old test_client and add a gitignore. 2012-05-08 16:29:29 +01:00
Chmouel Boudjnah
a5a6a8fddb Rename client to swiftclient. 2012-05-08 15:51:15 +01:00
Chmouel Boudjnah
daf3805cae Fix links. 2012-05-08 15:21:56 +01:00
Chmouel Boudjnah
cb07a50900 Import script from swift to run unittests. 2012-05-08 15:18:01 +01:00
Chmouel Boudjnah
1b6db9eb42 Add test_client from original swift repository. 2012-05-08 15:14:41 +01:00
Chmouel Boudjnah
7150eb84f5 Add AUTHORS file
- Generated from previous authors in Swift git repository for bin/swift
  swift.common.client and tests.common.test_client.
2012-05-08 15:14:00 +01:00
Chmouel Boudjnah
4c5ee99f5b Make sure we get a header StorageURL with 1.0
- Since RAX auth always come back with 200 we can't check with status code.
2012-05-08 15:07:58 +01:00
Chmouel Boudjnah
9ee3ee6e6d Allow specify the tenant in user.
- This is to allow the -U tenant:user syntax like previously supported
  when not using the os_ arguments.
2012-05-08 14:06:43 +01:00
Chmouel Boudjnah
b55acc34f0 First commit. 2012-05-08 13:09:17 +01:00