17 Commits

Author SHA1 Message Date
Andreas Jaeger
ca870810c9 Use oslo.utils
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
2014-10-23 08:13:25 +02:00
Andreas Jaeger
f09486f6b3 Use oslo.serialization
jsonutils from oslo-incubator is deprecated, replace it with
oslo.serialization.

Change-Id: I34af54bcb55eb0e1be3b74ea266b5da8bc5dc47d
Closes-Bug: #1383165
2014-10-23 08:13:19 +02:00
vponomaryov
b11f5d78a2 Cleanup manilaclient.utils module (part 1)
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
2014-08-04 10:52:10 -04:00
Valeriy Ponomaryov
73e29db968 Reuse exceptions from common apiclient code
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
2014-07-15 09:28:17 +03:00
vponomaryov
8f11b0bc62 Update requirements and fix pep issues after it
sync requirements with requirements project:
https://github.com/openstack/requirements/blob/master/global-requirements.txt

With update of hacking dependency fixed pep issues,
appeared with new version.

Change-Id: I90bd1a2b62161a8df40a7ce935c36f3f358924c7
2014-07-10 16:38:42 +03:00
vponomaryov
bd9c27914b Fix and enable H102 pep8 rule (apache license header)
Related-Bug: #1333290

Change-Id: I8c8794b06c604be36e632308e8c8c85aed6065ec
2014-07-10 09:25:04 +00:00
Julia Varlamova
02fb7a62d1 Add an ability to cache auth token
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
2014-07-07 17:22:28 +04:00
vponomaryov
0ccdb38dd2 Remove py33 incompatibilities
Except py33 compatibility changes were added unittests
to cover changed code.

Partially-implements blueprint py3-compatibility
Change-Id: Ib51e02ec69100a842ea1092e9f659ab1ebede671
2014-06-28 06:09:55 +00:00
Valeriy Ponomaryov
dc1926e9ad Enable H23* rules in pep/flake (py3-compat)
Basic python 3 compatibility fixies

Change-Id: I97726d42706c538d40cb1662112e56c13432e87f
Related-Bug: #1333290
2014-06-28 06:07:02 +00:00
Valeriy Ponomaryov
493ec0a538 Enable H30* rules in pep/flake
Second part of pep/flake fixies, that enables H30* group of rules.

Change-Id: Ib481887a37633a72dd5691c716b9214900a9384b
Related-Bug: #1333290
2014-06-28 06:06:50 +00:00
Valeriy Ponomaryov
b87c55d5fc Enable H40* rules in pep/flake
First part of pep/flake fixies, that enables H40* group of rules.

Change-Id: Ia85b49645b3bf634e99877855e6b31a404331b7f
Related-Bug: #1333290
2014-06-28 08:48:32 +03:00
Valeriy Ponomaryov
efd072b45d Replace json with jsonutils from common code
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
2014-06-18 04:35:45 -04:00
Andrei V. Ostapenko
bcb5ba08a2 Fixes using quota-show with default tenant id
Closes-Bug: #1234182
Change-Id: I0ce502e96693c9892dea87988f9435dd522ddcc1
2013-10-09 16:48:58 +03:00
vik
041bfa455c cleaned client with fixed tests. no quotas functionality implemented 2013-09-10 03:26:11 -04:00
Yulia Portnova
77dffa2c99 mass replace cinder to manila 2013-09-05 13:32:38 +03:00
Yulia Portnova
fa125b7714 setup.py fixed 2013-09-03 14:37:34 +03:00
Yulia Portnova
7c1a8bcbef cinderclient to manilaclient 2013-09-03 14:28:38 +03:00