⚠️ Execution Method (Must Read): This skill executes diagnosis via local Python scripts using the
scripts/huawei-cloud.pydispatcher. Using hcloud, kubectl, or other CLI tools or direct API calls is prohibited.
- All actions are dispatched through
scripts/huawei-cloud.pywith--action <action_name>and--params <json_params>- All scripts and environment check scripts are inside the skill package. You must use
skill action=execto execute them; do not run them directly in a shell- For action names and parameters, see the Core Tools section below
- Do not attempt hcloud, kubectl, curl IAM, or other CLI/API methods. This skill does not depend on these tools
- All paths are relative to the skill directory, which is the directory where this SKILL.md resides
This skill converges multi-domain evidence into root cause conclusions for CCE incidents. It orchestrates workload rollout diagnosis, dependency impact analysis, change impact analysis, AOM alarm analysis, and cross-domain drill-down (network, node) to produce a complete Markdown report with investigation steps, timeline, evidence chain, impact scope, Top3 root causes, confidence, counter-evidence, and remediation handoff.
This skill is applicable to the following scenarios:
This skill does NOT handle the following:
Before using, you must run the environment check script to complete environment validation and dependency installation in one step:
skill action=exec: bash skill://scripts/check_env.shskill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1Windows Note: Do not use
&&to chain commands (PowerShell 5.x does not support it). Use semicolons if you need to change directories first.
The script will check in sequence: Python >= 3.6 → install dependencies → validate SDK → validate credentials → validate service availability. If the environment check fails, fix the issues before continuing with other actions.
Environment Variables:
VariableRequiredDescriptionHW_ACCESS_KEYYesHuawei Cloud AKHW_SECRET_KEYYesHuawei Cloud SKHW_REGION_NAMENoDefault cn-north-4HW_PROJECT_IDNoProject ID (automatically obtained via IAM API when not set)HW_SECURITY_TOKENNoRequired when using temporary AK/SKHW_CLUSTER_IDNoDefault CCE cluster ID (can also be passed per action)
Security Constraints:
Do not output the values of the above environment variables.
API ActionPermissionPurposecce:cluster:getGet clusterView cluster detailscce:cluster:listList clustersList CCE clusterscce:node:listList nodesList cluster nodesaom:*:getRead AOMQuery AOM metrics and alarmsaom:event:listList eventsQuery AOM alarm eventsaom:alarmRule:listList alarm rulesQuery alarm rules
Permission Failure Handling:
All actions are dispatched through scripts/huawei-cloud.py using skill action=exec:
Primary Comprehensive Diagnosis:
ActionRequired ParametersDescriptionhuawei_root_cause_analyzeregion, cluster_idPrimary comprehensive action: orchestrates workload rollout diagnosis, dependency impact, change impact, and AOM alarms into a unified root cause report with Top3 causes
Workload Domain Actions:
ActionRequired ParametersDescriptionhuawei_workload_rollout_diagnoseregion, cluster_id, namespace, kind, nameDiagnose Deployment/StatefulSet/DaemonSet rollout failures with funnel and Top causeshuawei_workload_diagnoseregion, cluster_idGeneral workload status diagnosishuawei_workload_diagnose_by_alarmregion, cluster_idWorkload diagnosis triggered by AOM alarm correlationhuawei_pod_failure_diagnoseregion, cluster_idPod-level failure diagnosis (CrashLoop, ImagePull, OOM, Pending, etc.)
Dependency and Impact Actions:
ActionRequired ParametersDescriptionhuawei_dependency_impact_analyzeregion, cluster_idAnalyze Service/Ingress/Pod/Node propagation paths and impact scope for service unavailability
Change Impact Actions:
ActionRequired ParametersDescriptionhuawei_change_impact_analyzeregion, cluster_idCorrelate recent changes (deployment, config, network, security policy, node changes) with observed failures via audit log and AOM alarm timeline
Network and Node Domain Actions:
ActionRequired ParametersDescriptionhuawei_network_diagnoseregion, cluster_idGeneral network connectivity diagnosishuawei_network_diagnose_by_alarmregion, cluster_idNetwork diagnosis triggered by AOM alarm correlationhuawei_network_failure_diagnoseregion, cluster_idNetwork failure diagnosis (Service, Ingress connectivity)huawei_node_diagnoseregion, cluster_idNode-level diagnosis (scheduling, pressure)huawei_node_failure_diagnoseregion, cluster_idNode failure diagnosishuawei_node_batch_diagnoseregion, cluster_idBatch node diagnosis for multi-node issues
Alarm and Report Actions:
ActionRequired ParametersDescriptionhuawei_analyze_aom_alarmsregion, cluster_idAnalyze AOM alarm patterns and correlation across resourceshuawei_generate_diagnosis_reportregion, cluster_idGenerate structured Markdown diagnosis reporthuawei_generate_monitor_dashboardregion, cluster_idGenerate monitoring dashboard for ongoing observation
Supporting Evidence Actions:
ActionRequired ParametersDescriptionhuawei_get_cce_eventsregion, cluster_idList Kubernetes Events in the cluster
Common Parameters:
ParameterRequiredDescriptionregionYesHuawei Cloud region, e.g., cn-north-4cluster_idYesCCE cluster IDnamespaceYes*Kubernetes namespace (required for workload-specific actions)kindYes*Workload type: Deployment, StatefulSet, or DaemonSetnameYes*Workload name
*Required only for huawei_workload_rollout_diagnose.
Optional Parameters (passed via --params JSON):
ParameterDescriptionakOverride AK (uses HW_ACCESS_KEY by default)skOverride SK (uses HW_SECRET_KEY by default)project_idOverride project ID (auto-obtained via IAM when not set)target_nameOptional workload/app/service name for scope narrowinghoursMetric/query time range in hours (default 1)top_nNumber of top results for ranking (default 3)
huawei_root_cause_analyze#json
{
"success": true,
"analysis_trace_id": "RCA-...",
"scope": {
"region": "cn-north-4",
"cluster_id": "cluster-id",
"namespace": "optional",
"target_name": "optional workload/app/service"
},
"summary": {
"top_cause": {},
"cause_count": 3,
"data_sources": {
"rollout": true,
"dependency": true,
"change": true,
"alarms": true
}
},
"top_causes": [
{
"rank": 1,
"type": "ContainerCommandNotFound",
"title": "New version container startup command or entry file does not exist",
"domain": "workload",
"confidence": 0.94,
"evidence": [],
"counter_evidence": [],
"recommendation": [],
"remediation_hint": {
"skill": "huawei-cloud-cce-auto-remediation-runner",
"action": "huawei_auto_remediation_run",
"strategy": "rollback_previous_revision",
"requires_confirmation": true
}
}
],
"report_markdown": "# CCE Comprehensive Root Cause Analysis Report...",
"report_file": "optional"
}
Each domain action ( huawei_workload_rollout_diagnose, huawei_dependency_impact_analyze, huawei_change_impact_analyze, huawei_analyze_aom_alarms) produces its own structured JSON output. See individual skill documentation for domain-specific schemas.
huawei_root_cause_analyze on a known healthy cluster to verify it returns success: true with zero or low-confidence causeshuawei_root_cause_analyze on a cluster with known multi-domain failures to verify Top3 causes are accurately identifiedhuawei_root_cause_analyze summary with individual domain action outputs for consistencyhuawei_root_cause_analyze for comprehensive diagnosis; drill down into individual domain actions only when specific evidence requires deeper analysishuawei_dependency_impact_analyze to trace Service selector → Ingress backend → Pod Ready → Node distribution propagation pathshuawei_change_impact_analyze to build "change occurred before failure" causal chain with audit logs, K8s historical events, and AOM alarmshuawei-cloud-cce-auto-remediation-runnerreferences/workflow.mdreferences/output-schema.mdreferences/risk-rules.mdskill action=exec; do not run them directly in a shellconfirm=true must be handed off to huawei-cloud-cce-auto-remediation-runner; this skill never executes remediationhuawei_root_cause_analyze and drilling into individual domains first — Always start with comprehensive analysis; individual domain drill-down is for supplementary evidence onlyhuawei-cloud-cce-auto-remediation-runner; this skill only outputs recommendationshuawei_change_impact_analyze to verify the "change before failure" causal chain