Previous version of heat client couldn't work correctly
because of keystone auth error in actual use.
So, heat client and keystone client are copied from solum.
Change-Id: I49fef01bcec581f470e05aa82526b31fe47d0adc
Magnum container REST API hangs currently when there is an
error from Docker API ('ValueError: Circular reference detected').
So we should catch this APIError and extract the error string to
make sure the oslo messaging call returns properly (and hence the
magnum REST API call does not time out).
Change-Id: I055ffc2c733bb5193191a764169388369b5b1dcc
This is the backend change for patch I254a20a
The k8s pod create only has one parameter as filename, this patch
is updating magnum backend api can use filename as parameter when
creating pod.
Change-Id: Ibdc05415ce2cb4e30f1d5687b03f2c0761047dec
To obtain conductor api instance easily, this add rpcapi attribute to
pecan.request.
So now, we can access to conductor api from "pecan.request.rpcapi".
Related-Bug: #1406539
Change-Id: I6edbf031d91e65d70637629c3b57d45322eee9fd
The auth.py file does a couple of things, It contains keystone authentication
and to set request context. So this split up to two files.
After this commit, request hook should be included in hooks.py.
Related-Bug: #1406539
Change-Id: I1754da40383976e48f6fd4ca23911717f918f9bb
The file test_all_objects.py would become huge when adding more
unit test, this patch is trying to split this file based on
different controllers.
Change-Id: I4ed05367b1632a7ada0a2b399135660458f41a64
All of the operations for docker container are now using name
as parameter, this patch is updating the paramter from uuid
to name to make the code more clear.
Change-Id: Ia425e1dfc239272570f2e583dd5b8c6c2d368335
'auth_url', 'auth_token_info' and 'trust_id' is required to create heatclient.
So this commit added these.
Change-Id: If17c87770f2e4d93dae5e1262faa5b44cc5cfdef
First cut of Docker container creation and start should be working now
Tested using the REST API:
curl -i -X POST -H 'X-Auth-Token: 1b238d90cd0645a39a626581cf0c9f19' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"image_id": "cirros", "name": "mycontainer"}' \
http://127.0.0.1:9511/v1/v1/containers
curl -i -X PUT -H 'X-Auth-Token: 1b238d90cd0645a39a626581cf0c9f19' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'User-Agent: python-magnumclient' \
http://127.0.0.1:9511/v1/containers/4e19a981-057f-4d55-9aaf-d12c06e6430a/start
And the magnum CLI:
echo '{"name":"mycontainer", "image_id":"cirros"}' | magnum --debug container-create
magnum --debug container-start --id c6d6c759-9875-4dd4-aaa3-619799015c1d
Change-Id: Ib7a46d95d2d89cd8479bb0a318a3c9efaf23f187