Did the following fixes/modifications to pass the tests:
* Raise an exception when deleting an non-empty Bay (A bay with
* Fixed methods _add_bays_filters, _add_pods_filters and
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.
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
Implements: blueprint increase-test-coverage
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.
* 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.
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.
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).
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
To obtain conductor api instance easily, this add rpcapi attribute to
So now, we can access to conductor api from "pecan.request.rpcapi".
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.