9 Commits

Author SHA1 Message Date
Andreas Jaeger
5d93b51900 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Change-Id: I81cf5e317bb2f791888e75d87cfd27dfdd2b5f96
2020-03-28 15:54:06 +01:00
M V P Nitesh
e6856282a3 OSC command for magnum quota's
Implemented Openstack command for quotas-create, quotas-update,
quotas-delete, quotas-show and quotas-list.

Change-Id: I889c2384afdf4cf113345af646b865271784c40c
Partially-Implements: blueprint deprecate-magnum-client
2018-02-28 12:14:54 +00:00
Yang Hongyang
c7d2bbfc0f Sync with oslo-incubator
Apiclient[1] and cliutils[2] is removed form Oslo incubator, we should keep
the local copy by ourself.
1. copy openstack/common/apiclient to common/apiclient
2. only keep base, auth, exceptions from apiclient, others are unused
3. copy openstack/common/cliutils.py to common/cliutils.py
4. update all magnumclient.openstack.common.* users to use
   magnumclient.common.*

This is the first step to delete openstack common modules.

[1] Change: I2020d73fa9cedb3b3b87c1d8dbc8d437857ec7c2
[2] Change: Ibc5a8f11c6e5c308cec15a60eeb07a898254f9b7

Partial-Bug: #1545957
Change-Id: Ide3814d87ecdf3255868bf3b78fdceb58bd14295
2016-02-18 13:06:00 +08:00
Corey O'Brien
fcfbc40162 Fix bypass_url and errors with no headers
When using bypass_url the endpoint_override needs to be set in the
SessionClient.
Don't assume all responses have a Content-Type

Fixes Bug: 1532278
Change-Id: I5e1319aae28e16448e20dd2b41836341f3156c59
2016-01-13 07:43:56 -05:00
Jenkins
d05129851f Merge "Handle faultstring when using SessionClient" 2015-11-29 12:34:34 +00:00
Hongbin Lu
14efefd01f Handle faultstring when using SessionClient
When the magnum-api returns an error code 400-600, SessionClient
faultstring did not return to users. It should return a detailed
error message.

This commit was ported from Ironic:
https://review.openstack.org/#/c/142021/

Change-Id: I8bc15c0ddab10f0e117fb6acb2f3995929fa65e2
Closes-Bug: #1520363
2015-11-27 18:21:38 -05:00
Yang Hongyang
d3db584841 fix exceptions.from_response() parameter
The exceptions.from_response() takes 'method' as it's second param.
see:
python-magnumclient/magnumclient/openstack/common/apiclient/exceptions.py
def from_response(response, method, url):
    xxx

Change-Id: I66afa28ee3e80dc50156c790af4b03afac2292c4
2015-11-27 15:28:20 +08:00
Jay Lau (Guangya Liu)
c1794295e7 Add unit test for magnumclient/common/httpclient.py
This patch also merges the fix of I930fd61

Change-Id: Ia9969d5c4bebe5a5cf45a4a78282db2f07eb1977
2015-01-03 21:55:56 -05:00
Motohiro OTSUKA
cc031af4ca Add client resources and managers
Add initial managers for client resources, which are
- BayManager
- PodManager
- ServiceManager
- ContainerManager

Change-Id: Ib314225fa237f44b56cf81e2a8df6e15f8592e5b
2014-11-26 09:52:30 +09:00