⚠️ 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 analyzes Kubernetes service topology to determine fault propagation paths and upstream/downstream dependency impact. It collects Pod, Service, Ingress, and Node snapshots, maps Service selectors to target Pods, identifies Ingress external entrypoints, and produces a complete Markdown report with propagation paths, evidence tables, impact scoring, and confidence limitations.
This skill is applicable to the following scenarios:
This skill does NOT handle the following:
huawei-cloud-cce-root-cause-analyzer)huawei-cloud-cce-change-impact-analyzer)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 events
Permission Failure Handling:
All actions are dispatched through scripts/huawei-cloud.py using skill action=exec.
Primary Analysis Action:
ActionRequired ParametersDescriptionhuawei_dependency_impact_analyzeregion, cluster_idPrimary action: collects Pod/Service/Ingress/Node snapshots, maps Service selectors and Ingress backends, computes propagation paths and impact scoring, produces a complete Markdown impact report
Supporting Discovery Actions:
ActionRequired ParametersDescriptionhuawei_get_cce_podsregion, cluster_idList Pods in the clusterhuawei_get_cce_servicesregion, cluster_idList Services in the clusterhuawei_get_cce_ingressesregion, cluster_idList Ingresses in the clusterhuawei_get_kubernetes_nodesregion, cluster_idList Kubernetes Nodes in the cluster
Cross-Skill Diagnosis Actions:
ActionRequired ParametersCross-Skill ReferenceDescriptionhuawei_workload_rollout_diagnoseregion, cluster_id, namespace, kind, namehuawei-cloud-cce-workload-failure-diagnoserDiagnose workload rollout failureshuawei_network_failure_diagnoseregion, cluster_idhuawei-cloud-cce-network-failure-diagnoserNetwork connectivity diagnosishuawei_change_impact_analyzeregion, cluster_idhuawei-cloud-cce-change-impact-analyzerChange-impact correlation analysis
Common Parameters:
ParameterRequiredDescriptionregionYesHuawei Cloud region, e.g., cn-north-4cluster_idYesCCE cluster IDnamespaceNoKubernetes namespace (narrows scope)target_nameNoTarget workload/app/service name for scope narrowinglabel_selectorNoLabel selector for target Pod matching
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)hoursMetric/query time range in hours (default 1)
huawei_dependency_impact_analyzehuawei-cloud-cce-root-cause-analyzer; if remediation is needed, pass action to huawei-cloud-cce-auto-remediation-runner; if change correlation is needed, pass to huawei-cloud-cce-change-impact-analyzerSee references/output-schema.md for the complete output schema.
json
{
"success": true,
"analysis_trace_id": "DIA-...",
"scope": {
"region": "cn-north-4",
"cluster_id": "cluster-id",
"namespace": "default",
"target_name": "api",
"match_reason": "target_name=api"
},
"summary": {
"risk_level": "High | Medium | Low | Unknown",
"risk_score": 88,
"risk_reason": "target pods unavailable and exposed by Service/Ingress",
"pod_health": {
"total": 2,
"ready": 0,
"unready": 2,
"availability": "unavailable"
},
"service_count": 1,
"ingress_count": 1,
"path_count": 2
},
"target": {
"pods": [],
"services": [],
"ingresses": []
},
"propagation_paths": [],
"report_markdown": "# CCE Dependency Impact Analysis Report...",
"report_file": "optional"
}
huawei_dependency_impact_analyze on a known healthy cluster to verify it returns success: true with correct topology mappingrisk_level and risk_score align with Pod readiness and Service/Ingress exposurehuawei_dependency_impact_analyze for comprehensive topology analysis; use individual discovery actions only for supplementary evidencehuawei-cloud-cce-change-impact-analyzerhuawei-cloud-cce-root-cause-analyzerhuawei-cloud-cce-auto-remediation-runner with preview-first confirmationreferences/workflow.mdreferences/output-schema.mdreferences/risk-rules.mdskill action=exec; do not run them directly in a shellhuawei-cloud-cce-auto-remediation-runner; this skill never executes remediationhuawei-cloud-cce-root-cause-analyzer for deeper diagnosishuawei-cloud-cce-auto-remediation-runner with preview-first confirmation; this skill never executes mutationshuawei-cloud-cce-change-impact-analyzer to build the "change before failure" causal chain