* Define exceptions BayModelNotFound and BayModelAlreadyExists. These
two exceptions were used in the code but not defined.
* Remove methods reserve_baymodel and release_baymodel, since it
does not make sense to reserve/release a baymodel.
* Remove exception BayModelAssociated. This exception was used without
being defined and does not make sense for baymodel.
* Remove unrelated code at method create_baymodel.
Change-Id: I6946d771d40c5274f59b94d17542d84685c26e27
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