17 Commits

Author SHA1 Message Date
Jay Pipes
a6102fe0b9 Ensure JSON isn't read on no HTTP response body
This patch moves the json.loads(body) call in the
HTTP response handling to after the check for non-
200-300 return codes. This gets rid of the
ValueError exception raise when you hit, for instance,
a 400 or 404.

Also changes a number of logger.exception() calls to
logger.debug() calls, since some exceptions are expected
and should not be logged as exceptions per-se.

fixes LP bug#1067512

Change-Id: If66fb1846ddc19da5bc2f15c6e0dd09019a56932
2012-10-17 14:52:48 -04:00
Joe Heck
869192654c splitting http req and resp logging
also some pep8 cleanup in shell.py

Change-Id: I71aa2586a0196c0a6ba64b892b56c9d221bdcc1d
2012-08-23 16:09:38 +00:00
Sascha Peilicke
dec8f77c92 Add '--insecure' commandline argument
Allows to ignore validation errors that typically occur with self-signed
SSL certificates. Making this explicit is important as one would
typically only use this in development or in-house deployments.

This should also fix bug 1012591.

Change-Id: I1210fafc9257648c902176fbcfae9d47e47fc557
2012-07-20 10:22:03 +02:00
Liem Nguyen
abc7c47c18 Support 2-way SSL with Keystone server if it is configured to enforce
2-way SSL.  See also https://review.openstack.org/#/c/7706/ for the
corresponding review for the 2-way SSL addition to Keystone.

Change-Id: If0cb46a43d663687396d93604a7139d85a4e7114
2012-07-03 17:26:34 -04:00
Josh Kearney
5628eeaf76 Removed unused imports and variables.
Also fixes AUTHORS file. Previous version was copied directly from python-novaclient.

Change-Id: I33654b6fe7197efbff300ebaf4892a8b53d85c54
2012-04-05 17:27:12 -05:00
Dolph Mathews
9c07999dd5 Removed ?fresh=nonsense (bug 936405)
Change-Id: I69f7411967ef23348854c206efc79a3cf7d3755d
2012-03-07 10:32:32 -06:00
Vishvananda Ishaya
587862c151 Allow --token and --endpoint to bypass catalog
* allows skipping of service catalog
 * removes odd logic about password equivalence
 * also removes extra call to authenticate

Change-Id: I5c0979107da99593b4ce8eb16c9695ba530da095
2012-02-08 22:04:41 -08:00
Dean Troyer
173ea0ce0e Blueprint cli-auth: common cli args
Remove os_ from internal variable names corresponding to OS_ env
variables.

Strip trailing '/' from --auth_url since server doesn't seem to
tolerate '//' in the URL path.

Fixes lp923920

Change-Id: I3e48441d63b6504fd088aa07241f66d63590d935
2012-02-02 16:43:20 -06:00
Jesse Andrews
f765daf336 finish removing project_id 2011-12-19 10:00:39 -08:00
Jesse Andrews
55c01652b2 remove print statements and uncomment exceptions 2011-12-17 22:48:37 -08:00
Jesse Andrews
a8001d3e6c more work on standardization of cliauth 2011-12-17 22:36:59 -08:00
Jesse Andrews
0f392a58c3 remove user_id as you shouldn't auth using it 2011-12-17 22:28:31 -08:00
Jesse Andrews
cfbebeeae0 initial pass to cliauth blueprint 2011-12-17 22:07:13 -08:00
Gabriel Hurley
0c2a521974 Improved logging/error messages. 2011-11-17 14:25:04 -08:00
Joe Heck
5788d215e9 more pep8 cleanup 2011-11-10 17:24:48 -08:00
Gabriel Hurley
2cb99fccfe Project ID always treated as a string.
Keystone chokes on authorization if the project id is sent as an integer, so we'll cast it to a unicode string on our end.
2011-10-31 15:41:05 -07:00
Gabriel Hurley
17f6b83ee6 Initial commit. 2011-10-25 16:50:08 -07:00