Did the following fixes/modifications to pass the tests:
* Raise an exception when deleting an non-empty Bay (A bay with
pod(s)/service(s).
* Fixed methods _add_bays_filters, _add_pods_filters and
_add_services_filters.
Change-Id: Iaaeb3f4b49337a822cc79e06fe620b8b11b0acbd
All other methods take in a parameter that can be either a dict with
container information or a string id. pause/unpause should be the
same. Also we have pause/unpause here explicitly is because they
are missing from some versions of the docker-py client.
Change-Id: I882326b718f1252c757fe13f0de3844e02cc9d08
Test cases were written accordingly to Ironic DB tests. In before,
deleting a non-existent baymodel would silently succeed, which made
the tests fail. This commit fixed it by raising an exception on such
situation.
Implements: blueprint increase-test-coverage
Change-Id: I00f6966a1d727113033d707d9864872f3696be09
This is the backend change for patch Iaae8486
The k8s service create only has one parameter as filename, this
patch is updating magnum backend api can use filename as parameter
when creating service.
Change-Id: I67f0cea72b00f1ce35bf3e8c49153daf1d2fff68
* 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
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