2acaa5a4a3
This patch adds active status fields in the storage state table (cloudkitty_storage_states). A boolean column called "active", which indicates if the CloudKitty scope is active for billing, and another one called "scope_activation_toggle_date" (timestamp field) to store the latest timestamp when the scope moved between the active/deactivated states. Then, during CloudKitty processing, we check the "active" column. If the resource is not active, we ignore it during the processing. Moreover, we introduce an API to allow operators to set the "active" field. The "scope_activation_toggle_date" will not be exposed for operators to change it. It is updated automatically according to the changes in the "active" field. This patch adds a new HTTP method to "/v2/scope" endpoint. We then use "patch" HTTP method to allow operators to patch a storage scope. The API will require the scope_id, and then, it takes into account some of the fields we allow operators to change, and "active" field is one of them. Change-Id: Ia02c2eeb98021c60549cb8deab6f2e964e573f1e Implements: https://review.opendev.org/c/openstack/cloudkitty-specs/+/770928/
4 lines
84 B
YAML
4 lines
84 B
YAML
---
|
|
features:
|
|
- |
|
|
Add active status option in the storage state table and API. |