
This patch implements the changes in the API required for the skipped action blueprint. It includes: - New field `status_message` is visible in API get calls for Audits, ActionPlans and Audits. - New Patch call is added to `/actions/{action_id}` which allows to manually move actions in PENDING state to SKIPPED for ActionPlans which have not been started. - A new API microversion 1.5 is added for these changes. It also adds requried tests and documentation. Implements: blueprint add-skip-actions Assisted-By: Cursor (claude-4-sonnet) Change-Id: I71fb9af76085e5941a7fd3e9e4c89d6f3a3ada47 Signed-off-by: Alfredo Moralejo <amoralej@redhat.com>
61 lines
2.1 KiB
JSON
61 lines
2.1 KiB
JSON
{
|
|
"audits": [
|
|
{
|
|
"interval": "*/2 * * * *",
|
|
"strategy_uuid": "6b3b3902-8508-4cb0-bb85-67f32866b086",
|
|
"goal_uuid": "e1a5a45b-f251-47cf-9c5f-fa1e66e1286a",
|
|
"name": "test_audit",
|
|
"parameters": {
|
|
"host_choice": "retry",
|
|
"instance_metrics": {
|
|
"cpu_util": "compute.node.cpu.percent",
|
|
"memory.resident": "hardware.memory.used"
|
|
},
|
|
"granularity": 300,
|
|
"weights": {
|
|
"cpu_util_weight": 1.0,
|
|
"memory.resident_weight": 1.0
|
|
},
|
|
"retry_count": 1,
|
|
"metrics": [
|
|
"cpu_util"
|
|
],
|
|
"periods": {
|
|
"instance": 720,
|
|
"node": 600
|
|
},
|
|
"thresholds": {
|
|
"cpu_util": 0.2,
|
|
"memory.resident": 0.2
|
|
}
|
|
},
|
|
"auto_trigger": false,
|
|
"force": false,
|
|
"uuid": "65a5da84-5819-4aea-8278-a28d2b489028",
|
|
"goal_name": "workload_balancing",
|
|
"scope": [],
|
|
"created_at": "2018-04-06T07:27:27.820460+00:00",
|
|
"deleted_at": null,
|
|
"state": "ONGOING",
|
|
"audit_type": "CONTINUOUS",
|
|
"links": [
|
|
{
|
|
"rel": "self",
|
|
"href": "http://controller:9322/v1/audits/65a5da84-5819-4aea-8278-a28d2b489028"
|
|
},
|
|
{
|
|
"rel": "bookmark",
|
|
"href": "http://controller:9322/audits/65a5da84-5819-4aea-8278-a28d2b489028"
|
|
}
|
|
],
|
|
"strategy_name": "workload_stabilization",
|
|
"next_run_time": "2018-04-06T09:46:00",
|
|
"updated_at": "2018-04-06T09:44:01.604146+00:00",
|
|
"hostname": "controller",
|
|
"start_time": null,
|
|
"end_time": null,
|
|
"status_message": null
|
|
}
|
|
]
|
|
}
|