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
It is implemented by updating the Heat stack with the new node_count
Partially implements: blueprint update-node-count
Change-Id: I2c331043bb6e6fce14fc82932dcd9c3677448598
When a Bay is created, we use Heat to bring up resources to use for the Bay.
We would like to see the related status in the Bay resource that tracks what's
happening. We use the new status attribute to show what is happening with Heat
behind the scenes.
Partially-Implements: blueprint magnum-bay-status
Change-Id: I7b841f2afbe575b039ebbde0e19d8fc464246608
This variable is concurrently read and write, so it needs to be local.
In addition, it needs to be incremented on each 'poll_and_check'.
Change-Id: I02ab50c7c005e11df9b9b84b0241323e24b9c295
Closes-Bug: 1419586
We need to tighten the check on which HTTP methods are allowed
and raise appropriate HTTP error. /logs should respond only
to HTTP GET and not HTTP PUT. other actions should respond
only to HTTP PUT and error out on HTTP GET.
Also see related change in python client:
I1cff0b33d3be1eedeb373fda7ef223a1ba596b59
Closes-Bug: #1409316
Change-Id: Ia78d8a246a8d9d06f949a2d893331e967d64913e
Moved poll_and_checkout out of method bay_create. This allows code
to be reused by other methods in the class.
Partially implements: blueprint update-node-count
Change-Id: I6b9073fa9f8e6cfb8f28ce0d6d6b8997ad1d4309
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
newer hacking has rules for the following:
H105 Don't use author tags
H238 old style class declaration, use new style (inherit from `object`)
W292 no newline at end of file
So we need to clean them up and stop ignoring them
Change-Id: I12b995cf87d6bc0938298f397b41a4693627bb4b
The get() API was not used by the following objects, just remove it.
1) node
2) pod
3) replication controller
4) service
5) container
Change-Id: I2f578f8d072d772bf34e676b115eccf6c08bac8a
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