fix(recovery): expose reboot slo machine readback
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 33s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-07-01 20:35:22 +08:00
parent 68c982fe6a
commit 17b6bf36ce
6 changed files with 358 additions and 3 deletions

View File

@@ -146,6 +146,49 @@
"summary_present": true,
"wazuh_dashboard_degraded": true
},
"readback": {
"active_blocker_count": 12,
"active_blockers": [
"all_required_hosts_not_in_10_minute_reboot_window",
"backup_core_green_not_1",
"host_188_service_green_not_1",
"host_boot_observation_older_than_target_window",
"host_unreachable_after_reboot",
"host_uptime_unknown",
"local_disk_free_below_minimum",
"post_start_blocked_not_zero",
"product_data_green_not_1",
"reboot_event_required_host_unreachable",
"service_green_not_1",
"wazuh_dashboard_degraded"
],
"blocked_by_fresh_reboot_window_only": false,
"host_reboot_authorized_by_this_scorecard": false,
"readiness_percent": 18,
"required_checks": {
"backup_core_green": false,
"can_claim_slo": false,
"fresh_reboot_window_observed": false,
"host_188_service_green": false,
"product_data_green": false,
"required_hosts_observed": true,
"required_hosts_reachable": false,
"service_green": false,
"source_controls_present": true,
"stockplatform_freshness_ok": false,
"stockplatform_ingestion_ok": false
},
"runtime_write_authorized_by_this_scorecard": false,
"safe_next_step": "deploy_boot_triggered_slo_timer_and_collect_all_host_boot_probe_then_rerun_scorecard_until_status_slo_ready",
"secret_value_collection_allowed": false,
"source_controls_present": true,
"source_id": "reboot_auto_recovery_slo_scorecard",
"status": "blocked_reboot_auto_recovery_slo_not_ready",
"target_minutes": 10,
"workflow_trigger_authorized_by_this_scorecard": false,
"workplan_id": "P0-006",
"workplan_title": "主機重啟自動偵測、自動觸發與 10 分鐘恢復 SLO"
},
"reboot_event_detection": {
"all_required_hosts_in_reboot_window": false,
"all_required_hosts_observed": false,
@@ -165,6 +208,53 @@
"111"
]
},
"required_checks": {
"backup_core_green": false,
"can_claim_slo": false,
"fresh_reboot_window_observed": false,
"host_188_service_green": false,
"product_data_green": false,
"required_hosts_observed": true,
"required_hosts_reachable": false,
"service_green": false,
"source_controls_present": true,
"stockplatform_freshness_ok": false,
"stockplatform_ingestion_ok": false
},
"rollups": {
"active_blocker_count": 12,
"backup_core_green": false,
"blocked_by_fresh_reboot_window_only": false,
"can_claim_all_services_recovered_within_target": false,
"capacity_below_minimum": true,
"capacity_checked": true,
"capacity_free_gib": 0.751,
"capacity_min_free_gib": 2.0,
"completed_check_count": 2,
"host_188_service_green": false,
"latest_verify_only_metric_blocker_count": 0,
"latest_verify_only_metric_last_run_timestamp": 0,
"latest_verify_only_metric_max_host_uptime_seconds": 0,
"latest_verify_only_metric_present": false,
"latest_verify_only_metric_ready": 0,
"missing_host_count": 0,
"observed_host_count": 7,
"post_start_blocked": 8,
"product_data_green": false,
"readiness_percent": 18,
"required_check_count": 11,
"service_green": false,
"source_control_count": 14,
"source_control_ready_count": 14,
"source_controls_present": true,
"stale_host_count": 5,
"stockplatform_freshness_blocker_count": 1,
"stockplatform_freshness_status": "not_configured",
"stockplatform_ingestion_blocker_count": 1,
"stockplatform_ingestion_status": "not_configured",
"unknown_uptime_host_count": 1,
"unreachable_host_count": 1
},
"safe_next_step": "deploy_boot_triggered_slo_timer_and_collect_all_host_boot_probe_then_rerun_scorecard_until_status_slo_ready",
"schema_version": "awoooi_reboot_auto_recovery_slo_scorecard_v1",
"sla_recovery_eta": {
@@ -259,6 +349,27 @@
"successful_source_run_ids": []
}
},
"summary": {
"github_api_used": false,
"reboot_auto_recovery_active_blocker_count": 12,
"reboot_auto_recovery_backup_core_green": false,
"reboot_auto_recovery_can_claim_slo": false,
"reboot_auto_recovery_host_188_service_green": false,
"reboot_auto_recovery_observed_host_count": 7,
"reboot_auto_recovery_product_data_green": false,
"reboot_auto_recovery_readiness_percent": 18,
"reboot_auto_recovery_safe_next_step": "deploy_boot_triggered_slo_timer_and_collect_all_host_boot_probe_then_rerun_scorecard_until_status_slo_ready",
"reboot_auto_recovery_service_green": false,
"reboot_auto_recovery_source_controls_present": true,
"reboot_auto_recovery_stale_host_count": 5,
"reboot_auto_recovery_status": "blocked_reboot_auto_recovery_slo_not_ready",
"reboot_auto_recovery_stockplatform_freshness_status": "not_configured",
"reboot_auto_recovery_stockplatform_ingestion_status": "not_configured",
"reboot_auto_recovery_workplan_id": "P0-006",
"runtime_write_authorized": false,
"secret_values_collected": false,
"workflow_trigger_performed": false
},
"target_minutes": 10,
"target_seconds": 600
}