Avoid UnicodeEncodeError exception on exception

When an exception message contained a non-ascii
character, the str() conversion raised an UnicodeEncodeError.

Avoid this by simply passing the message itself.
Python handles the encoding to locale already.

Change-Id: I3c4440fc238d8c8136a9bd93a0040668f82bda6e
Allow requests 0.8 and greater

Bump up version requirements for requests to standardize
on version >= 0.8 so it doesnt create conflict with other
openstack projects.

Change-Id: I1ed9b3bd6bdbbbb451298a3c397e6e7a06c0cabd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "Avoid UnicodeEncodeError exception on exception"
adding v2 support to cinderclient

This will allow the cinderclient to speak to the v2 rest api if it's
enabled in the cinder config. Includes additional v2 tests as well.

blueprint cinderclient-v2-support

Change-Id: I004134d9f528a6eadefdaa89eb48087bcae2691f
Handle metadata args the same for all calls.

key-create stored it's metadata arg as an appended list,
while create stored as strings.  The metadata parsing
is compatable with both, so let's just use the same
method of parsing in both of these methods.

Change-Id: I337068d45fa848d8621add29c91e4a43c9d7dc72
Fix upload-to-image volume_id help

It's not for taking a snapshot.

Change-Id: I3af4ea0e3657a2359fda55c890a030fabaad129d
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Merge "Fix upload-to-image volume_id help"
Merge "adding v2 support to cinderclient"
Fix typo breaking --debug option to cinder client

Fixes LP bug #1130730

Change-Id: Ia105e8a561b8d45c60e9a3c6ed46a953cc6df96f
Debug output the http body

Output the kwargs[data] instead of kwargs[body] which was deleted.

Change-Id: I233e37cceb7079ec78b9bde093967dea9ad94441
Fixes: bug #1155655
Docs in cinderlcient were never actually updated.

Not only were the docs and release info here not being
maintainted properly, but the examples that were given were
not correct.

This change is an attempt to set us on the right path going
forward and includes info on how to import the API and history
info for the upcoming release/push to PyPi.

Fixes bug: 1156994

Change-Id: I169b1c01380ef653a6a25eb8946b9a06d6419e62
Catch KeyboardInterrupt

When a user Ctrl-C's the client, this will cause a short message to
be printed rather than an ugly backtrace.

This will not catch all instances of this (can still Ctrl-C before
reaching this code, etc.), but it should catch most of them, and those
for long-running sessions.

The specific message was chosen to match one recently added to the
glance client.

Change-Id: Ib748835ad1f94fb901b4941dc5e3797b719e197f
Add debug option processing to run_tests

This just adds -d|--debug option so you can debug
using tools like pdb again and to get extra output
from the tests.

Change-Id: Icebc17a1575e17cfd9597581546dca4732b9a8ef
Merge "Catch KeyboardInterrupt"