Install
openclaw skills install huawei-cloud-cce-dependency-impact-analyzerHuawei Cloud CCE service topology dependency impact analysis skill that traces Service/Ingress/Pod/Node propagation paths and upstream/downstream blast radius. Use this skill when a CCE incident needs service topology impact analysis, including Service/Ingress/Pod/Node propagation paths, upstream/downstream blast radius, affected entrypoints, and a complete Markdown impact report with evidence and confidence limits. Trigger: "dependency impact", "依赖影响", "dependency analysis", "依赖分析", "cascade failure", "级联故障", "blast radius", "爆炸半径", "service topology", "服务拓扑", "propagation path", "传播路径", "upstream downstream impact", "上下游影响", "dependency mapping", "依赖映射"
openclaw skills install huawei-cloud-cce-dependency-impact-analyzer⚠️ 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:
| Variable | Required | Description |
|---|---|---|
| HW_ACCESS_KEY | Yes | Huawei Cloud AK |
| HW_SECRET_KEY | Yes | Huawei Cloud SK |
| HW_REGION_NAME | No | Default cn-north-4 |
| HW_PROJECT_ID | No | Project ID (automatically obtained via IAM API when not set) |
| HW_SECURITY_TOKEN | No | Required when using temporary AK/SK |
| HW_CLUSTER_ID | No | Default CCE cluster ID (can also be passed per action) |
Security Constraints:
Do not output the values of the above environment variables.
| API Action | Permission | Purpose |
|---|---|---|
| cce:cluster:get | Get cluster | View cluster details |
| cce:cluster:list | List clusters | List CCE clusters |
| cce:node:list | List nodes | List cluster nodes |
| aom:*:get | Read AOM | Query AOM metrics and alarms |
| aom:event:list | List events | Query AOM alarm events |
Permission Failure Handling:
All actions are dispatched through scripts/huawei-cloud.py using skill action=exec.
Primary Analysis Action:
| Action | Required Parameters | Description |
|---|---|---|
huawei_dependency_impact_analyze | region, cluster_id | Primary 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:
| Action | Required Parameters | Description |
|---|---|---|
huawei_get_cce_pods | region, cluster_id | List Pods in the cluster |
huawei_get_cce_services | region, cluster_id | List Services in the cluster |
huawei_get_cce_ingresses | region, cluster_id | List Ingresses in the cluster |
huawei_get_kubernetes_nodes | region, cluster_id | List Kubernetes Nodes in the cluster |
Cross-Skill Diagnosis Actions:
| Action | Required Parameters | Cross-Skill Reference | Description |
|---|---|---|---|
huawei_workload_rollout_diagnose | region, cluster_id, namespace, kind, name | huawei-cloud-cce-workload-failure-diagnoser | Diagnose workload rollout failures |
huawei_network_failure_diagnose | region, cluster_id | huawei-cloud-cce-network-failure-diagnoser | Network connectivity diagnosis |
huawei_change_impact_analyze | region, cluster_id | huawei-cloud-cce-change-impact-analyzer | Change-impact correlation analysis |
Common Parameters:
| Parameter | Required | Description |
|---|---|---|
| region | Yes | Huawei Cloud region, e.g., cn-north-4 |
| cluster_id | Yes | CCE cluster ID |
| namespace | No | Kubernetes namespace (narrows scope) |
| target_name | No | Target workload/app/service name for scope narrowing |
| label_selector | No | Label selector for target Pod matching |
Optional Parameters (passed via --params JSON):
| Parameter | Description |
|---|---|
| ak | Override AK (uses HW_ACCESS_KEY by default) |
| sk | Override SK (uses HW_SECRET_KEY by default) |
| project_id | Override project ID (auto-obtained via IAM when not set) |
| hours | Metric/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.
{
"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