Some python files do not need to encode in utf-8, so just remove
"# -*- encoding: utf-8 -*-" from those files.
Change-Id: Iafdf4eda876b6599b75c7710e69f62918842ebec
Closes-Bug: #1422067
Oslo team is recommending everyone to use the direct imports and
not use the Oslo namespaces. So switch all our code to use oslo_*
instead of "from oslo." or "import oslo" or "from oslo"
NOTE: some of the tests still have mocks referring to oslo.utils
@mock.patch('oslo.utils.timeutils.utcnow')
as the tests break otherwise. We should do this later.
Closes-bug: #1419385
Change-Id: I8e3fbeb833cddc3f55674a0e781ffe69d5033ad4
The updated API include the following:
1) get_bay_by_id
2) get_baymodel_by_id
3) get_node_by_id
4) get_container_by_id
Implements part of bp multi-tenant
Change-Id: I7d2f8b7ea361b38d6f0110772c10f93037c7aefb
The updated API include the following:
1) get_node_list
2) get_baymodel_list
3) get_bay_list
4) get_container_list
Implements part of bp multi-tenant
Change-Id: Iabc81288cf58d0a7da4f4fec90a1be561d41d9f3
The updated API include the following:
1) get_bay_by_uuid
2) get_baymodel_by_uuid
3) get_node_by_uuid
4) get_container_by_uuid
Implements part of bp multi-tenant
Change-Id: I6cff457e585b4dd11f485eb63e477b8de0e96bea
Did the following fix/modification to make the tests pass:
* Raise an exception on deleting non-existent pod or service.
* Rename the following methods:
get_service_by_bay_uuid -> get_services_by_bay_uuid (db)
get_by_bay_uuid -> list_by_bay_uuid (objects)
Change-Id: I7cbeb119550acecdbf0697df19172a8285eabca8
* 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
The baymodel object and ReST object is used to control bay properties
for different bay models. It is then possible to launch bay models
using this functionality.
Change-Id: I317bda292719ca3f4649283f7e27674c813cc3b0
The node object represents either a bare metal or virtual machine node
that is provisioned with an OS to run the containers, or alternatively,
run kubernetes.
Change-Id: I9eba14232c193688347b7ec2674c83f230404ae1
The Ironic codebase is pretty simple for database access. This work
leads into the introduction of versioned object technology from nova
and ironic that will be entering oslo:
https://review.openstack.org/#/c/127532/
This will drastically speed up the process of implementing moving the
RPC objects across the network.
Change-Id: I38aa451b658b66f5b6f10ced03ea2e0355af4ecd