Currently python-manilaclient doesn't support keystone sessions
unlike to others clients. keystoneclient.session.Session gives
end-user possibility to share common authentication and request
parameters between a variety of services.
- Add python-keystoneclient to requirements.txt
- Move authentication logic to v1/client.py
- Move HttpClient to separate module
- Simplify SecretsHelper in shell.py
- Replace service_catalog module by keystoneclient.service_catalog
- Add appropriate unit tests
Implements bp add-keystone-session-support
Change-Id: I7d1c50fa31d9e2f32bb518a78a02bc12b114d0ab
Instead of try/except blocks, just use the six module which is already
in use in other places.
Also remove a Python 2.5 compat construct. Python 2.5 is no longer supported.
Change-Id: Idb13d861b0f8c567d1e44ce5bf6c60da12a24d18
Replace usage of oslo-incubator modules strutils, importutils, timeutils
with corresponding oslo.utils modules instead.
Removes timeutils module, others will be replaced with next oslo-incubator sync.
Change-Id: I12530f4e4d745f9a95b339182e31189e32e56fa6
jsonutils from oslo-incubator is deprecated, replace it with
oslo.serialization.
Change-Id: I34af54bcb55eb0e1be3b74ea266b5da8bc5dc47d
Closes-Bug: #1383165
First part of manilaclient.utils module cleanup,
where usage of deleted functions replaced with functions
from common code.
Partially implements: blueprint use-common-code
Change-Id: Iefe7da601cdaf030787c6d7588dd0c1706e309cd
apiclient package from common code has 'exceptions' module,
so, lets reuse its exceptions and leave defined only one
exception that is absent there - NoTokenLookupException.
Partially implements: blueprint use-common-code
Change-Id: I024a90c407e2bd8f25f58935ab8a4241e038f3a8
Add option --os-cache, which defaults to OS_CACHE variable
(by default - False). When this option is specified, manilaclient
will use auth token saved in keyring. First time when command will
be called, auth token and user password will be saved in keyring.
Using --os-reset-cache option password and auth_token stored in the
keyring can be deleted.
Implements bp cache-auth-token
Change-Id: Ia8959655528acce726baa616e66901c7a96fd35c
We should use common code where possible.
This change is intended to remove direct usage of json
module and start use jsonutils from manilaclient.openstack.common
Also added lost dependency 'iso8601', that is used by jsonutils
Partially implements: blueprint use-common-code
Change-Id: I42ea803d761b2510c959dc1578a20ff155670283