huaweicloud-devkit 1.1.2-next.0 → 1.1.2-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +18 -18
- package/README.md +182 -38
- package/README.zh-CN.md +180 -36
- package/bin/dsh-postinstall.cjs +77 -0
- package/bin/setup.cjs +7 -4
- package/cordis.patch.yml +13 -0
- package/integrations/atomcode/hooks/huaweicloud-telemetry.js +181 -0
- package/integrations/atomcode/hooks.json +9 -0
- package/integrations/dsh/hook-plugin.mjs +148 -0
- package/integrations/hermes/hooks/huaweicloud-telemetry.py +238 -0
- package/integrations/hermes/manifest.yaml +43 -0
- package/integrations/opencode/hooks/skill-tracker.js +115 -0
- package/integrations/opencode/opencode.json +1 -4
- package/integrations/workbuddy/hooks/telemetry-tracker.py +226 -0
- package/package.json +74 -43
- package/plugins/huaweicloud-core/.claude-plugin/plugin.json +4 -17
- package/plugins/huaweicloud-core/.codex-plugin/plugin.json +23 -33
- package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +4 -17
- package/plugins/huaweicloud-core/.hermes-plugin/plugin.json +30 -0
- package/plugins/huaweicloud-core/.mcp.json +2 -5
- package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +4 -18
- package/plugins/huaweicloud-core/assets/icon.png +0 -0
- package/plugins/huaweicloud-core/assets/logo-dark.png +0 -0
- package/plugins/huaweicloud-core/assets/logo.png +0 -0
- package/plugins/huaweicloud-core/hooks/huaweicloud-safety.py +104 -28
- package/plugins/huaweicloud-core/openclaw.plugin.json +20 -0
- package/plugins/huaweicloud-core/safety/policy.json +75 -99
- package/plugins/huaweicloud-core/safety/rules/cloud-risk-rules.json +196 -35
- package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +38 -34
- package/plugins/huaweicloud-core/skills/huawei-billing/SKILL.md +21 -20
- package/plugins/huaweicloud-core/skills/huawei-cbr/SKILL.md +19 -19
- package/plugins/huaweicloud-core/skills/huawei-cce/SKILL.md +38 -32
- package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +30 -30
- package/plugins/huaweicloud-core/skills/huawei-cts/SKILL.md +20 -20
- package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +31 -31
- package/plugins/huaweicloud-core/skills/huawei-deployment/SKILL.md +21 -20
- package/plugins/huaweicloud-core/skills/huawei-dew/SKILL.md +40 -31
- package/plugins/huaweicloud-core/skills/huawei-dew/references/csms-usage.md +8 -1
- package/plugins/huaweicloud-core/skills/huawei-dew/references/kms-usage.md +6 -0
- package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +45 -37
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +57 -6
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/flavors.md +11 -9
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/hc-activity.md +27 -0
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +13 -13
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +44 -39
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/apig-event-format.md +12 -10
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/create-function.md +21 -20
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +19 -19
- package/plugins/huaweicloud-core/skills/huawei-gaussdb/SKILL.md +20 -20
- package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +27 -23
- package/plugins/huaweicloud-core/skills/huawei-iac/SKILL.md +93 -0
- package/plugins/huaweicloud-core/skills/huawei-iac/references/architectures.md +83 -0
- package/plugins/huaweicloud-core/skills/huawei-iac/references/resource-catalog.md +107 -0
- package/plugins/huaweicloud-core/skills/huawei-iac/references/state-file.md +104 -0
- package/plugins/huaweicloud-core/skills/huawei-iam/SKILL.md +30 -30
- package/plugins/huaweicloud-core/skills/huawei-iam/references/policy-examples.md +65 -39
- package/plugins/huaweicloud-core/skills/huawei-iam/references/quick-ref.md +9 -9
- package/plugins/huaweicloud-core/skills/huawei-modelarts/SKILL.md +33 -25
- package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +46 -45
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-create.md +19 -19
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-lifecycle.md +12 -7
- package/plugins/huaweicloud-core/skills/huawei-obs/references/common-pitfalls.md +13 -12
- package/plugins/huaweicloud-core/skills/huawei-obs/references/single-file-share.md +4 -4
- package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +71 -61
- package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +776 -44
- package/plugins/huaweicloud-core/skills/huawei-sandbox/references/framework-commands.md +84 -0
- package/plugins/huaweicloud-core/skills/huawei-sandbox/references/nginx-templates.md +100 -0
- package/plugins/huaweicloud-core/skills/huawei-smn-dms/SKILL.md +36 -29
- package/plugins/huaweicloud-core/skills/huawei-voucher/SKILL.md +57 -0
- package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +39 -39
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/network.md +22 -15
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/security-group.md +20 -19
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/subnet.md +15 -15
- package/plugins/huaweicloud-core/skills/huawei-waf-aad/SKILL.md +23 -20
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/SKILL.md +13 -13
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/SKILL.md +21 -2
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +30 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +68 -54
- package/plugins/huaweicloud-core/skills/huaweicloud-core/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/report-issue.md +6 -6
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/select.md +15 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +0 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +36 -34
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/src/auth/agent-registration.mjs +142 -5
- package/plugins/huaweicloud-core/src/auth/credentials.mjs +217 -5
- package/plugins/huaweicloud-core/src/auth/reconcile.mjs +174 -0
- package/plugins/huaweicloud-core/src/auth/service.mjs +57 -2
- package/plugins/huaweicloud-core/src/data/icons-manifest.v1.json +3517 -0
- package/plugins/huaweicloud-core/src/detect-framework.mjs +366 -0
- package/plugins/huaweicloud-core/src/hcloud-cli.mjs +203 -16
- package/plugins/huaweicloud-core/src/icon-library.mjs +176 -0
- package/plugins/huaweicloud-core/src/mcp-protocol.mjs +88 -0
- package/plugins/huaweicloud-core/src/mcp-server-remote.mjs +107 -0
- package/plugins/huaweicloud-core/src/mcp-server.mjs +154 -99
- package/plugins/huaweicloud-core/src/proxy/proxy-agent.mjs +20 -102
- package/plugins/huaweicloud-core/src/proxy/proxy-config.mjs +11 -4
- package/plugins/huaweicloud-core/src/risk-rule-engine.mjs +4 -1
- package/plugins/huaweicloud-core/src/safety-policy.mjs +123 -68
- package/plugins/huaweicloud-core/src/sandbox/hdkitservice-api.mjs +48 -12
- package/plugins/huaweicloud-core/src/sandbox/hwlink-api.mjs +25 -26
- package/plugins/huaweicloud-core/src/sandbox/sandbox-file-server.py +45 -0
- package/plugins/huaweicloud-core/src/sandbox/session-manager.mjs +943 -10
- package/plugins/huaweicloud-core/src/sandbox/uninstall-cleanup.mjs +50 -0
- package/plugins/huaweicloud-core/src/search-market.mjs +49 -14
- package/plugins/huaweicloud-core/src/setup-cli.mjs +3091 -498
- package/plugins/huaweicloud-core/src/telemetry/agent-detect.mjs +40 -0
- package/plugins/huaweicloud-core/src/telemetry/agent-registry.mjs +328 -0
- package/plugins/huaweicloud-core/src/telemetry/telemetry.mjs +378 -0
- package/plugins/huaweicloud-core/src/tools.mjs +1272 -146
- package/plugins/huaweicloud-core/src/update-check.mjs +383 -0
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-exec-client.js +72 -38
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-fair-queue.js +10 -5
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-multiplexer.js +13 -16
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-packet.js +12 -16
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-terminal-channel.js +46 -31
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-tunnel-channel.mjs +268 -0
- package/plugins/huaweicloud-core/src/ws-exec/index.js +3 -0
- package/plugins/huaweicloud-core/src/ws-exec/ws-exec-client.js +40 -13
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +0 -190
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/scripts/search-skills.mjs +0 -124
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: huawei-modelarts
|
|
3
|
-
description:
|
|
3
|
+
description: 'Use when training, deploying, or managing AI/ML models on Huawei Cloud ModelArts. Covers training jobs, model registry, online services, notebook instances. Triggers: ModelArts, model training, AI, machine learning, deep learning, notebook, inference, deployment. NOT for: general AI/ML concepts, non-Huawei platforms.'
|
|
4
4
|
version: 1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -16,13 +16,13 @@ Domain expertise for ModelArts. Covers training jobs, model deployment, notebook
|
|
|
16
16
|
|
|
17
17
|
## Critical Warnings
|
|
18
18
|
|
|
19
|
-
| Trap
|
|
20
|
-
|
|
21
|
-
| OBS bucket required
|
|
22
|
-
| Training charges by duration
|
|
23
|
-
| Notebook auto-stop needed
|
|
24
|
-
| Model deployment needs quota
|
|
25
|
-
| Training job output must be OBS | Local output not supported. Ensure `--output_path` is a valid OBS path
|
|
19
|
+
| Trap | Why |
|
|
20
|
+
| ------------------------------- | ----------------------------------------------------------------------------------- |
|
|
21
|
+
| OBS bucket required | All training data, model outputs, and notebook storage use OBS. Create bucket first |
|
|
22
|
+
| Training charges by duration | Pay-per-minute GPU/CPU billing. Stop unused notebooks and services |
|
|
23
|
+
| Notebook auto-stop needed | Default no auto-stop — can run indefinitely and incur charges |
|
|
24
|
+
| Model deployment needs quota | Online services may require service quota approval in new accounts |
|
|
25
|
+
| Training job output must be OBS | Local output not supported. Ensure `--output_path` is a valid OBS path |
|
|
26
26
|
|
|
27
27
|
## Prerequisites
|
|
28
28
|
|
|
@@ -32,34 +32,42 @@ Domain expertise for ModelArts. Covers training jobs, model deployment, notebook
|
|
|
32
32
|
|
|
33
33
|
## Common Workflows
|
|
34
34
|
|
|
35
|
-
| Task
|
|
36
|
-
|
|
37
|
-
| List models
|
|
38
|
-
| List training jobs | `ListTrainJobs --cli-region=<r> --project_id=<p>`
|
|
39
|
-
| List services
|
|
40
|
-
| List notebooks
|
|
41
|
-
| Create model
|
|
42
|
-
| Create notebook
|
|
35
|
+
| Task | Operation |
|
|
36
|
+
| ------------------ | -------------------------------------------------- |
|
|
37
|
+
| List models | `ListModels --cli-region=<r> --project_id=<p>` |
|
|
38
|
+
| List training jobs | `ListTrainJobs --cli-region=<r> --project_id=<p>` |
|
|
39
|
+
| List services | `ListServices --cli-region=<r> --project_id=<p>` |
|
|
40
|
+
| List notebooks | `ListNotebooks --cli-region=<r> --project_id=<p>` |
|
|
41
|
+
| Create model | `CreateModel --cli-region=<r> --project_id=<p>` |
|
|
42
|
+
| Create notebook | `CreateNotebook --cli-region=<r> --project_id=<p>` |
|
|
43
43
|
|
|
44
44
|
Discover operation parameters with `--help` before executing any write operation.
|
|
45
45
|
|
|
46
46
|
## Service Types
|
|
47
47
|
|
|
48
|
-
| Type
|
|
49
|
-
|
|
50
|
-
| Training Job
|
|
51
|
-
| Model
|
|
52
|
-
| Service (Online) | Deploy models as REST API endpoints
|
|
53
|
-
| Notebook
|
|
48
|
+
| Type | Purpose |
|
|
49
|
+
| ---------------- | --------------------------------------- |
|
|
50
|
+
| Training Job | Train models on GPU/CPU resources |
|
|
51
|
+
| Model | Register trained models for deployment |
|
|
52
|
+
| Service (Online) | Deploy models as REST API endpoints |
|
|
53
|
+
| Notebook | JupyterLab environments for development |
|
|
54
54
|
|
|
55
55
|
## Troubleshooting
|
|
56
56
|
|
|
57
|
-
| Error
|
|
58
|
-
|
|
59
|
-
| OBS path not found | Verify OBS bucket exists and path is correct
|
|
57
|
+
| Error | Fix |
|
|
58
|
+
| ------------------ | ---------------------------------------------------------------- |
|
|
59
|
+
| OBS path not found | Verify OBS bucket exists and path is correct |
|
|
60
60
|
| Training job fails | Check training data format, resource quotas, and logs in console |
|
|
61
61
|
|
|
62
62
|
## Cross-Skill References
|
|
63
63
|
|
|
64
64
|
- **OBS storage**: See `huawei-obs` for bucket and training data management
|
|
65
65
|
- **VPC/Subnet**: See `huawei-vpc` for notebook network configuration
|
|
66
|
+
|
|
67
|
+
## External Skills
|
|
68
|
+
|
|
69
|
+
For advanced workflows (notebook lifecycle, training job diagnosis,
|
|
70
|
+
hyperparameter tuning), search the marketplace:
|
|
71
|
+
`huaweicloud_search_marketplace` query="ModelArts notebook/training/diagnosis"
|
|
72
|
+
→ install via `npx skills add huaweicloud/huaweicloud-skills --skill <name> -y -g`
|
|
73
|
+
→ load and execute.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: huawei-obs
|
|
3
|
-
description:
|
|
3
|
+
description: 'Use when creating, configuring, or managing OBS buckets and objects on Huawei Cloud. Covers bucket creation, lifecycle policies, versioning, static website hosting, CORS, access control (IAM/bucket policy/ACL), cross-region replication, event notifications, and presigned URLs. Triggers on: OBS, bucket, object storage, lifecycle, versioning, static website, CORS, presigned, replication. NOT for: EVS block storage (use huawei-ecs), SFS file storage, CBR backup (use huawei-cbr).'
|
|
4
4
|
version: 1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ version: 1
|
|
|
11
11
|
## Routing Guard: Deploy vs Store
|
|
12
12
|
|
|
13
13
|
- If the developer's goal is to **deploy, host, or preview a web app / static website** (temporary hosting, quick preview), do NOT default to OBS. Present deployment-target options with the sandbox first: ① huawei-sandbox (recommended), ② OBS static hosting, ③ ECS, ④ CCE. Ask: "建议优先部署到沙箱(临时运行环境,可预览访问),也可选 OBS 静态托管/ECS/CCE,你想部署到哪里?"
|
|
14
|
-
- Proceed with OBS only when the developer selects OBS, explicitly asks for OBS, or the intent is long-term static hosting / CDN / file storage.
|
|
14
|
+
- Proceed with OBS only when the developer selects OBS, explicitly asks for OBS, or the intent is long-term static hosting / CDN / file storage. **Deployment intent proceeding on OBS is a resource purchase: load `huawei-iac` for orchestration (cost+balance gate, batch approval, state tracking, ordered destroy) - this skill then supplies the bucket/object commands.** Sandbox choice (huawei-sandbox) bypasses iac - no purchase involved.
|
|
15
15
|
- OBS is a storage service; it is not a general web-hosting default.
|
|
16
16
|
|
|
17
17
|
## Critical: OBS Command Syntax
|
|
@@ -23,11 +23,11 @@ hcloud OBS help # NOT --help
|
|
|
23
23
|
hcloud OBS help <command> # e.g. hcloud OBS help mb
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
| Wrong (API-style)
|
|
27
|
-
|
|
28
|
-
| `OBS CreateBucket` | `OBS mb obs://<bucket>`
|
|
29
|
-
| `OBS PutObject`
|
|
30
|
-
| `OBS DeleteBucket` | `OBS rm obs://<bucket> -r`
|
|
26
|
+
| Wrong (API-style) | Correct (obsutil-style) |
|
|
27
|
+
| ------------------ | ------------------------------- |
|
|
28
|
+
| `OBS CreateBucket` | `OBS mb obs://<bucket>` |
|
|
29
|
+
| `OBS PutObject` | `OBS cp <file> obs://<bucket>/` |
|
|
30
|
+
| `OBS DeleteBucket` | `OBS rm obs://<bucket> -r` |
|
|
31
31
|
|
|
32
32
|
## Overview
|
|
33
33
|
|
|
@@ -35,16 +35,16 @@ Domain expertise for Huawei Cloud Object Storage Service (OBS). Covers bucket/ob
|
|
|
35
35
|
|
|
36
36
|
## Critical Warnings
|
|
37
37
|
|
|
38
|
-
| Trap
|
|
39
|
-
|
|
40
|
-
| Bucket name is global
|
|
41
|
-
| Three-layer permissions
|
|
42
|
-
| Versioning is irreversible
|
|
43
|
-
| OBS uses AK/SK directly
|
|
44
|
-
| Static website via CLI missing
|
|
45
|
-
| **OBS needs separate cred config** | `hcloud configure` is NOT enough for OBS. Before any OBS operation, call `huaweicloud_setup_obs_config` to sync credentials from hcloud profile.
|
|
46
|
-
| **obsutil interactive prompts**
|
|
47
|
-
| **Directory upload adds prefix**
|
|
38
|
+
| Trap | Why |
|
|
39
|
+
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
40
|
+
| Bucket name is global | All users share bucket namespace. Always use a unique name: `{prefix}-{timestamp}` (e.g. `mybucket-20260810155048`) |
|
|
41
|
+
| Three-layer permissions | IAM > Bucket Policy > ACL. Most restrictive wins |
|
|
42
|
+
| Versioning is irreversible | Once enabled, cannot be disabled, only suspended |
|
|
43
|
+
| OBS uses AK/SK directly | NOT IAM tokens. Auth errors mean check AK/SK validity |
|
|
44
|
+
| Static website via CLI missing | KooCLI OBS lacks website config. Use REST API or console |
|
|
45
|
+
| **OBS needs separate cred config** | `hcloud configure` is NOT enough for OBS. Before any OBS operation, call `huaweicloud_setup_obs_config` to sync credentials from hcloud profile. |
|
|
46
|
+
| **obsutil interactive prompts** | `cp`/`rm` without `-f` causes "Please input (y/n)" → Agent hangs (TIMEOUT). Always use `-f` for non-interactive. |
|
|
47
|
+
| **Directory upload adds prefix** | `cp <dir>/ obs://<bucket>/ -r` puts files under `bucket/<dir>/...`. Use `-flat` for root-level files (static sites). Preview with `-dryRun` first. |
|
|
48
48
|
|
|
49
49
|
## OBS Credential Setup (Required Before First Use)
|
|
50
50
|
|
|
@@ -62,21 +62,21 @@ hcloud OBS config -e=<endpoint> -i=<AK> -k=<SK> -t=token
|
|
|
62
62
|
|
|
63
63
|
## Common Workflows
|
|
64
64
|
|
|
65
|
-
| Task
|
|
66
|
-
|
|
67
|
-
| Create bucket
|
|
68
|
-
| List buckets/objects
|
|
69
|
-
| Upload file
|
|
70
|
-
| Upload directory (recursive) | `hcloud OBS cp <dir>/ obs://<bucket>/ -r -f -flat`
|
|
71
|
-
| Download object
|
|
72
|
-
| Set bucket ACL
|
|
73
|
-
| Set object ACL
|
|
74
|
-
| Set lifecycle
|
|
75
|
-
| Set bucket policy
|
|
76
|
-
| Set CORS
|
|
77
|
-
| Delete bucket
|
|
78
|
-
| Presigned URL
|
|
79
|
-
| Object metadata
|
|
65
|
+
| Task | Command |
|
|
66
|
+
| ---------------------------- | ---------------------------------------------------------------------- |
|
|
67
|
+
| Create bucket | `hcloud OBS mb obs://<bucket> -location=<region>` |
|
|
68
|
+
| List buckets/objects | `hcloud OBS ls [obs://<bucket>]` |
|
|
69
|
+
| Upload file | `hcloud OBS cp <file> obs://<bucket>/<key>` |
|
|
70
|
+
| Upload directory (recursive) | `hcloud OBS cp <dir>/ obs://<bucket>/ -r -f -flat` |
|
|
71
|
+
| Download object | `hcloud OBS cp obs://<bucket>/<key> <local-path>` |
|
|
72
|
+
| Set bucket ACL | `hcloud OBS chattri obs://<bucket> -acl=public-read` |
|
|
73
|
+
| Set object ACL | `hcloud OBS chattri obs://<bucket>/<key> -acl=public-read` | Bucket ACL does NOT cascade — anonymous reads need both |
|
|
74
|
+
| Set lifecycle | `hcloud OBS lifecycle obs://<bucket> -method=put -localfile=<json>` |
|
|
75
|
+
| Set bucket policy | `hcloud OBS bucketpolicy obs://<bucket> -method=put -localfile=<json>` |
|
|
76
|
+
| Set CORS | `hcloud OBS cors obs://<bucket> -method=put -localfile=<json>` |
|
|
77
|
+
| Delete bucket | `hcloud OBS rm obs://<bucket> -r` (must be empty) |
|
|
78
|
+
| Presigned URL | `hcloud OBS sign obs://<bucket>/<key> -e=<seconds>` |
|
|
79
|
+
| Object metadata | `hcloud OBS stat obs://<bucket>/<key>` |
|
|
80
80
|
|
|
81
81
|
## Static Website Deployment Workflow
|
|
82
82
|
|
|
@@ -94,22 +94,23 @@ See `references/single-file-share.md` for the full workflow to host one file and
|
|
|
94
94
|
|
|
95
95
|
## Storage Classes
|
|
96
96
|
|
|
97
|
-
| Class
|
|
98
|
-
|
|
99
|
-
| STANDARD
|
|
100
|
-
| STANDARD_IA | Infrequent access
|
|
101
|
-
| ARCHIVE
|
|
97
|
+
| Class | Use Case | Min Storage | Retrieval Fee |
|
|
98
|
+
| ----------- | ------------------- | ----------- | ------------- |
|
|
99
|
+
| STANDARD | Frequently accessed | None | No |
|
|
100
|
+
| STANDARD_IA | Infrequent access | 30 days | Yes |
|
|
101
|
+
| ARCHIVE | Long-term archive | 90 days | Yes (hours) |
|
|
102
102
|
|
|
103
103
|
## Troubleshooting
|
|
104
104
|
|
|
105
|
-
| Error
|
|
106
|
-
|
|
107
|
-
| AccessDenied on bucket
|
|
108
|
-
| BucketAlreadyExists
|
|
109
|
-
| NoSuchKey
|
|
110
|
-
| InvalidAccessKeyId
|
|
111
|
-
| EntityTooLarge
|
|
112
|
-
| OBS --help fails
|
|
105
|
+
| Error | Root Cause -> Fix |
|
|
106
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
107
|
+
| AccessDenied on bucket | IAM/bucket policy/ACL conflict -> Check all three layers |
|
|
108
|
+
| BucketAlreadyExists | Name taken globally -> Generate unique name with timestamp suffix: `{prefix}-{yyyymmddHHMMSS}` |
|
|
109
|
+
| NoSuchKey | Object doesn't exist or wrong region -> Verify key and region |
|
|
110
|
+
| InvalidAccessKeyId | OBS uses AK/SK directly -> Verify AK/SK validity, OBS endpoint, OBS permissions |
|
|
111
|
+
| EntityTooLarge | Single PUT limit 5GB -> Use multipart upload |
|
|
112
|
+
| OBS --help fails | KooCLI OBS uses `help` not `--help` -> Run `hcloud OBS help` |
|
|
113
|
+
| Configuration file is not well-formed | `~/.obsutilconfig` was generated by a non-standard path (CRLF line endings or field-order differences). Even `hcloud OBS --help` fails. Rebuild it with `hcloud OBS config -e=<endpoint> -i=<AK> -k=<SK>` (or `huaweicloud_setup_obs_config`) -> retry |
|
|
113
114
|
|
|
114
115
|
## Security Considerations
|
|
115
116
|
|
|
@@ -4,14 +4,14 @@ From Huawei Cloud marketplace best practices.
|
|
|
4
4
|
|
|
5
5
|
## Naming Rules
|
|
6
6
|
|
|
7
|
-
| Rule
|
|
8
|
-
|
|
9
|
-
| Length
|
|
10
|
-
| Characters
|
|
11
|
-
| No IP format
|
|
12
|
-
| No leading/trailing `-` or `.` | Start and end must be alphanumeric
|
|
13
|
-
| No `..`
|
|
14
|
-
| No `-.` or `.-`
|
|
7
|
+
| Rule | Detail |
|
|
8
|
+
| ------------------------------ | ------------------------------------ |
|
|
9
|
+
| Length | 3-63 characters |
|
|
10
|
+
| Characters | Lowercase letters, numbers, `-`, `.` |
|
|
11
|
+
| No IP format | Cannot be IP address pattern |
|
|
12
|
+
| No leading/trailing `-` or `.` | Start and end must be alphanumeric |
|
|
13
|
+
| No `..` | Adjacent dots forbidden |
|
|
14
|
+
| No `-.` or `.-` | Adjacent dot-hyphen combos forbidden |
|
|
15
15
|
|
|
16
16
|
## Create Bucket
|
|
17
17
|
|
|
@@ -19,11 +19,11 @@ From Huawei Cloud marketplace best practices.
|
|
|
19
19
|
hcloud OBS mb obs://<bucket> [-acl=xxx] [-location=<r>] [-sc=xxx]
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
| Option
|
|
23
|
-
|
|
24
|
-
| `-acl`
|
|
25
|
-
| `-location` | cn-south-1, cn-north-4, ...
|
|
26
|
-
| `-sc`
|
|
22
|
+
| Option | Values | Default |
|
|
23
|
+
| ----------- | --------------------------------------- | -------------- |
|
|
24
|
+
| `-acl` | private, public-read, public-read-write | private |
|
|
25
|
+
| `-location` | cn-south-1, cn-north-4, ... | config default |
|
|
26
|
+
| `-sc` | standard, warm, cold, deep-archive | standard |
|
|
27
27
|
|
|
28
28
|
## Quick Verify
|
|
29
29
|
|
|
@@ -34,12 +34,12 @@ hcloud OBS stat obs://<bucket>
|
|
|
34
34
|
|
|
35
35
|
## Storage Class Guide
|
|
36
36
|
|
|
37
|
-
| Class
|
|
38
|
-
|
|
39
|
-
| standard
|
|
40
|
-
| warm
|
|
41
|
-
| cold
|
|
42
|
-
| deep-archive | Archive
|
|
37
|
+
| Class | Access Frequency | Min Storage | Retrieval Cost |
|
|
38
|
+
| ------------ | ---------------- | ----------- | -------------- |
|
|
39
|
+
| standard | Frequent | None | No |
|
|
40
|
+
| warm | Infrequent | 30 days | Yes |
|
|
41
|
+
| cold | Rare | 90 days | Yes |
|
|
42
|
+
| deep-archive | Archive | 180 days | Yes |
|
|
43
43
|
|
|
44
44
|
## Critical Rules
|
|
45
45
|
|
|
@@ -3,24 +3,29 @@
|
|
|
3
3
|
> KooCLI OBS uses obsutil-style commands. `OBS CreateBucket` → `OBS mb`. `SetBucketWebsite` is NOT supported in KooCLI OBS (use API/SDK).
|
|
4
4
|
|
|
5
5
|
## Create Bucket
|
|
6
|
+
|
|
6
7
|
hcloud OBS mb obs://<bucket> -location=<region>
|
|
7
8
|
|
|
8
9
|
## Lifecycle Rules (JSON)
|
|
10
|
+
|
|
9
11
|
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
"Rules": [{
|
|
13
|
+
"ID": "move-to-ia-after-30d",
|
|
14
|
+
"Status": "Enabled",
|
|
15
|
+
"Filter": {"Prefix": ""},
|
|
16
|
+
"Transitions": [{"Days": 30, "StorageClass": "STANDARD_IA"}],
|
|
17
|
+
"Expiration": {"Days": 365}
|
|
18
|
+
}]
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
## Apply
|
|
22
|
+
|
|
20
23
|
hcloud OBS lifecycle obs://<bucket> -method=put -localfile=<lifecycle.json>
|
|
21
24
|
|
|
22
25
|
## Static Website
|
|
26
|
+
|
|
23
27
|
Not available via KooCLI OBS CLI. Use `hcloud OBS chattri obs://<bucket> -acl=public-read` for bucket ACL, or use API/SDK for website configuration.
|
|
24
28
|
|
|
25
29
|
## Cross-Region Replication
|
|
30
|
+
|
|
26
31
|
Requires: source bucket versioning enabled, destination bucket in different region, replication IAM role.
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
OBS 使用 **obsutil-style** 子命令,不是 API-style 操作名:
|
|
8
8
|
|
|
9
|
-
| 错误写法(API-style) | 正确写法(obsutil-style)
|
|
10
|
-
|
|
11
|
-
| `OBS --help`
|
|
12
|
-
| `OBS CreateBucket`
|
|
13
|
-
| `OBS PutObject`
|
|
14
|
-
| `OBS DeleteBucket`
|
|
15
|
-
| `OBS ListBuckets`
|
|
9
|
+
| 错误写法(API-style) | 正确写法(obsutil-style) |
|
|
10
|
+
| --------------------- | --------------------------------------------- |
|
|
11
|
+
| `OBS --help` | `hcloud OBS help`(无 `--`,`help` 是子命令) |
|
|
12
|
+
| `OBS CreateBucket` | `hcloud OBS mb obs://<bucket>` |
|
|
13
|
+
| `OBS PutObject` | `hcloud OBS cp <file> obs://<bucket>/` |
|
|
14
|
+
| `OBS DeleteBucket` | `hcloud OBS rm obs://<bucket> -r` |
|
|
15
|
+
| `OBS ListBuckets` | `hcloud OBS ls` |
|
|
16
16
|
|
|
17
17
|
## 独立凭证配置
|
|
18
18
|
|
|
@@ -45,6 +45,7 @@ hcloud OBS config -i
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
**规避方法**:
|
|
48
|
+
|
|
48
49
|
1. 先 `-dryRun` 预览实际键名,再执行真实上传
|
|
49
50
|
2. 或先将本地目录重命名为目标前缀名,如 `mv devkit/ root/` 后上传 `root/`
|
|
50
51
|
3. 或使用 `-flat` 参数(如支持)
|
|
@@ -60,11 +61,11 @@ KooCLI OBS **不支持** `SetBucketWebsite` 命令。配置静态网站托管需
|
|
|
60
61
|
|
|
61
62
|
## 权限模型(三层)
|
|
62
63
|
|
|
63
|
-
| 层级
|
|
64
|
-
|
|
65
|
-
| IAM Policy
|
|
66
|
-
| Bucket Policy | 桶级
|
|
67
|
-
| ACL
|
|
64
|
+
| 层级 | 作用域 | 优先级 |
|
|
65
|
+
| ------------- | ----------- | ------ |
|
|
66
|
+
| IAM Policy | 用户/用户组 | 最高 |
|
|
67
|
+
| Bucket Policy | 桶级 | 中 |
|
|
68
|
+
| ACL | 对象级 | 最低 |
|
|
68
69
|
|
|
69
70
|
**关键规则**:三层中**最严格**的生效。Bucket Policy 设为 public-read,但 IAM deny 了 → 结果是 deny。
|
|
70
71
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Host one file and get a shareable link in seconds. Two options:
|
|
4
4
|
|
|
5
|
-
| Option
|
|
6
|
-
|
|
7
|
-
| Presigned URL | Time-limited private link | Keep private
|
|
8
|
-
| Public URL
|
|
5
|
+
| Option | Link type | Bucket/object visibility | Expiry |
|
|
6
|
+
| ------------- | ------------------------- | ----------------------------- | -------------------------- |
|
|
7
|
+
| Presigned URL | Time-limited private link | Keep private | `-e=<seconds>`, max 7 days |
|
|
8
|
+
| Public URL | Permanent public link | Set object `-acl=public-read` | None |
|
|
9
9
|
|
|
10
10
|
## Option 1: Presigned URL (private, time-limited)
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: huawei-rds
|
|
3
|
-
description:
|
|
3
|
+
description: 'Use when creating, configuring, managing, or troubleshooting RDS instances on Huawei Cloud. Covers MySQL, PostgreSQL, SQL Server. Triggers: RDS, MySQL, PostgreSQL, database instance, backup, read replica. NOT for: GaussDB (use huawei-gaussdb), DDS (use huawei-dds-dcs).'
|
|
4
4
|
version: 1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,9 +10,14 @@ version: 1
|
|
|
10
10
|
|
|
11
11
|
Always run `hcloud RDS <Operation> --help` before constructing commands to discover exact parameter names and requirements.
|
|
12
12
|
|
|
13
|
+
## Deployment Routing Guard
|
|
14
|
+
|
|
15
|
+
If this skill was reached via a DEPLOYMENT intent (the database is part of an application deployment, not a standalone ad-hoc operation), this is a cloud resource purchase: load `huawei-iac` first for orchestration (mandatory cost+balance gate, batch approval, session state, ordered destroy), then return here for the exact instance commands. Sandbox-deployed workloads (huawei-sandbox) bypass iac - no purchase involved.
|
|
16
|
+
|
|
13
17
|
## Prerequisites
|
|
14
18
|
|
|
15
19
|
Before creating an RDS instance, you MUST have:
|
|
20
|
+
|
|
16
21
|
- A VPC and subnet (see `huawei-vpc`)
|
|
17
22
|
- A security group with database port open (MySQL=3306, PostgreSQL=5432, SQL Server=1433)
|
|
18
23
|
- Run `hcloud RDS ListFlavors --database_name=<engine> --cli-region=<r>` to get spec codes
|
|
@@ -23,40 +28,42 @@ Before creating an RDS instance, you MUST have:
|
|
|
23
28
|
hcloud RDS <Operation> --cli-region=<region> [--key=value ...]
|
|
24
29
|
```
|
|
25
30
|
|
|
26
|
-
| Rule
|
|
27
|
-
|
|
28
|
-
| Service name
|
|
29
|
-
| Operation
|
|
30
|
-
| Params
|
|
31
|
-
| Array params
|
|
31
|
+
| Rule | Detail |
|
|
32
|
+
| -------------- | --------------------------------------------------------------------------------- |
|
|
33
|
+
| Service name | `RDS` (uppercase) |
|
|
34
|
+
| Operation | PascalCase: `ListInstances`, `CreateManualBackup` |
|
|
35
|
+
| Params | `--key=value` format. JSON params: `--key='{"k":"v"}'` |
|
|
36
|
+
| Array params | 1-based: `--instance_ids.1=xxx` |
|
|
32
37
|
| Password param | Conflicts with KooCLI system param; use `--cli-jsonInput` (see Critical Warnings) |
|
|
33
38
|
|
|
34
39
|
## Critical Warnings
|
|
35
40
|
|
|
36
|
-
| Trap
|
|
37
|
-
|
|
38
|
-
| Engine version immutable
|
|
39
|
-
| Automated backups use OBS
|
|
40
|
-
| Storage auto-scaling off by default | Enable before storage runs out or instance goes read-only
|
|
41
|
-
| `--password` conflicts with KooCLI
|
|
42
|
-
| Volume type must match flavor
|
|
43
|
-
| Flavor not in region
|
|
44
|
-
| `database_name` is case-sensitive
|
|
45
|
-
| Instance creation takes 3–8 min
|
|
46
|
-
| Body `--region` is required
|
|
47
|
-
| Restore creates new instance
|
|
41
|
+
| Trap | Why |
|
|
42
|
+
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| Engine version immutable | Cannot change MySQL to PostgreSQL in-place |
|
|
44
|
+
| Automated backups use OBS | Backup storage incurs separate charges. Set retention period explicitly |
|
|
45
|
+
| Storage auto-scaling off by default | Enable before storage runs out or instance goes read-only |
|
|
46
|
+
| `--password` conflicts with KooCLI | Use `--cli-jsonInput=<file>` with JSON file (see `--cli-jsonInput` section below). The `printf "b\n"` workaround is broken in KooCLI 7.2.12+ |
|
|
47
|
+
| Volume type must match flavor | General→CLOUDSSD; Dedicated→CLOUDSSD\|ESSD; ARM→CLOUDSSD |
|
|
48
|
+
| Flavor not in region | Always `ListFlavors` first. Spec codes vary by region |
|
|
49
|
+
| `database_name` is case-sensitive | Use `MySQL` / `PostgreSQL` / `SQLServer` / `MariaDB` — NOT lower-case `mysql` |
|
|
50
|
+
| Instance creation takes 3–8 min | Status: BUILD→MODIFYING→ACTIVE. Poll every 15s: `hcloud RDS ListInstances --cli-region=<r> --instance_id=<id> \| jq '.instances[0].status'` |
|
|
51
|
+
| Body `--region` is required | CreateInstance body requires `--region=<r>` (same as `--cli-region`) or `DBS.280243` |
|
|
52
|
+
| Restore creates new instance | No in-place restore. Verify target flavor before restoring |
|
|
48
53
|
|
|
49
54
|
## Instance Management
|
|
50
55
|
|
|
51
56
|
### List
|
|
57
|
+
|
|
52
58
|
```bash
|
|
53
59
|
hcloud RDS ListInstances --cli-region=<r>
|
|
54
60
|
hcloud RDS ListFlavors --database_name=<engine> --cli-region=<r>
|
|
55
61
|
hcloud RDS ListDatastores --database_name=<engine> --cli-region=<r>
|
|
56
|
-
hcloud RDS ListEngineFlavors --instance_id=<id> --cli-region=<r>
|
|
62
|
+
hcloud RDS ListEngineFlavors --instance_id=<id> --availability_zone_ids=<az> --ha_mode=<mode> --cli-region=<r>
|
|
57
63
|
```
|
|
58
64
|
|
|
59
65
|
### Create Instance
|
|
66
|
+
|
|
60
67
|
```bash
|
|
61
68
|
hcloud RDS CreateInstance --cli-region=<r> \
|
|
62
69
|
--region=<r> \
|
|
@@ -101,21 +108,22 @@ hcloud RDS CreateInstance --cli-region=<r> \
|
|
|
101
108
|
|
|
102
109
|
> Save as `rds-create.json` then: `hcloud RDS CreateInstance --cli-jsonInput=rds-create.json`. For `project_id`, run `hcloud IAM KeystoneListProjects`.
|
|
103
110
|
|
|
104
|
-
| Param
|
|
105
|
-
|
|
106
|
-
| `--name`
|
|
107
|
-
| `--datastore`
|
|
108
|
-
| `--flavor_ref`
|
|
109
|
-
| `--volume`
|
|
110
|
-
| `--vpc_id`
|
|
111
|
-
| `--subnet_id`
|
|
112
|
-
| `--security_group_id` | Yes
|
|
113
|
-
| `--availability_zone` | Yes
|
|
114
|
-
| `--charge_info`
|
|
115
|
-
| `--password`
|
|
116
|
-
| `--port`
|
|
111
|
+
| Param | Required | Note |
|
|
112
|
+
| --------------------- | -------- | -------------------------------------------------------------------------------------------- |
|
|
113
|
+
| `--name` | Yes | Instance name |
|
|
114
|
+
| `--datastore` | Yes | `--datastore.type=<engine> --datastore.version=<version>` |
|
|
115
|
+
| `--flavor_ref` | Yes | From `ListFlavors` output |
|
|
116
|
+
| `--volume` | Yes | Type matching: General→CLOUDSSD, Dedicated→CLOUDSSD\|ESSD, ARM→CLOUDSSD |
|
|
117
|
+
| `--vpc_id` | Yes | Must exist in target region |
|
|
118
|
+
| `--subnet_id` | Yes | Must exist in target region |
|
|
119
|
+
| `--security_group_id` | Yes | Must have DB port open |
|
|
120
|
+
| `--availability_zone` | Yes | Use AZ code from `NovaListAvailabilityZones` |
|
|
121
|
+
| `--charge_info` | No | `--charge_info.charge_mode=<mode>`. Default postPaid (pay-per-use). Run `--help` for options |
|
|
122
|
+
| `--password` | Yes | 8-32 chars, uppercase+lowercase+digit+special |
|
|
123
|
+
| `--port` | No | Default 3306 (MySQL) / 5432 (PG) / 1433 (SQL Server) |
|
|
117
124
|
|
|
118
125
|
### Modify / Resize
|
|
126
|
+
|
|
119
127
|
```bash
|
|
120
128
|
hcloud RDS StartInstanceRestartAction --instance_id=<id> --cli-region=<r>
|
|
121
129
|
hcloud RDS StartResizeFlavorAction --instance_id=<id> --flavor_ref=<new-id> --cli-region=<r>
|
|
@@ -125,6 +133,7 @@ hcloud RDS UpdateInstanceAlias --instance_id=<id> --alias=<new-name> --cli-regio
|
|
|
125
133
|
```
|
|
126
134
|
|
|
127
135
|
### Delete
|
|
136
|
+
|
|
128
137
|
```bash
|
|
129
138
|
hcloud RDS DeleteInstance --instance_id=<id> --cli-region=<r>
|
|
130
139
|
```
|
|
@@ -145,7 +154,8 @@ hcloud RDS CreateRestoreInstance --instance_id=<id> --backup_id=<id> --name=<new
|
|
|
145
154
|
## Read Replicas
|
|
146
155
|
|
|
147
156
|
```bash
|
|
148
|
-
|
|
157
|
+
# Create a read replica via CreateInstance with --replica_of_id
|
|
158
|
+
hcloud RDS CreateInstance --replica_of_id=<primary-id> --name=<name> --flavor_ref=<id> --volume.type=<vol-type> --volume.size=<size> --cli-region=<r>
|
|
149
159
|
```
|
|
150
160
|
|
|
151
161
|
## Fault Diagnosis
|
|
@@ -154,7 +164,7 @@ hcloud RDS CreateReadReplica --replica_of_id=<primary-id> --name=<name> --flavor
|
|
|
154
164
|
hcloud RDS ListErrorLogs --instance_id=<id> --start_date=2024-01-01T00:00:00Z --end_date=2024-01-31T23:59:59Z --cli-region=<r>
|
|
155
165
|
hcloud RDS ListSlowLogs --instance_id=<id> --start_date=... --end_date=... --cli-region=<r>
|
|
156
166
|
hcloud RDS ShowReplicationStatus --instance_id=<id> --cli-region=<r>
|
|
157
|
-
hcloud RDS ListInstanceDiagnosis --cli-region=<r>
|
|
167
|
+
hcloud RDS ListInstanceDiagnosis --engine=<engine> --cli-region=<r>
|
|
158
168
|
```
|
|
159
169
|
|
|
160
170
|
## Connecting
|
|
@@ -172,41 +182,41 @@ psql -h <private_ip> -p 5432 -U root -d postgres
|
|
|
172
182
|
|
|
173
183
|
If a database client is not installed on the agent's machine, install one:
|
|
174
184
|
|
|
175
|
-
| Platform
|
|
176
|
-
|
|
177
|
-
| **Linux**
|
|
178
|
-
| **macOS**
|
|
179
|
-
| **Windows**
|
|
185
|
+
| Platform | MySQL | PostgreSQL |
|
|
186
|
+
| ---------------- | ------------------------------------------------------------ | -------------------------------------------------------------- |
|
|
187
|
+
| **Linux** | `apt install mysql-client` / `yum install mysql` | `apt install postgresql-client` |
|
|
188
|
+
| **macOS** | `brew install mysql-client` | `brew install libpq` |
|
|
189
|
+
| **Windows** | Download MySQL Workbench or `winget install Oracle.MySQL` | Download pgAdmin or `winget install PostgreSQL.PostgreSQL` |
|
|
180
190
|
| **Python (any)** | `pip install pymysql` then `python -c "import pymysql; ..."` | `pip install psycopg2` then `python -c "import psycopg2; ..."` |
|
|
181
|
-
| **Docker (any)** | `docker run -it --rm mysql:8 mysql -h <ip> -u root -p`
|
|
191
|
+
| **Docker (any)** | `docker run -it --rm mysql:8 mysql -h <ip> -u root -p` | `docker run -it --rm postgres:16 psql -h <ip> -U root` |
|
|
182
192
|
|
|
183
193
|
> If no client can be installed, use the Huawei Cloud **Data Studio** console: https://console.huaweicloud.com/dms/
|
|
184
194
|
|
|
185
195
|
## Mutating Operations (Require Approval)
|
|
186
196
|
|
|
187
|
-
| Operation
|
|
188
|
-
|
|
189
|
-
| `CreateInstance`
|
|
190
|
-
| `DeleteInstance`
|
|
191
|
-
| `StartResizeFlavorAction`
|
|
192
|
-
| `StartInstanceEnlargeVolumeAction` | Online, but irreversible
|
|
193
|
-
| `StartFailover`
|
|
194
|
-
| `CreateRestoreInstance`
|
|
195
|
-
| `CreateManualBackup`
|
|
196
|
-
| `DeleteManualBackup`
|
|
197
|
+
| Operation | Effect |
|
|
198
|
+
| ---------------------------------- | ------------------------------------ |
|
|
199
|
+
| `CreateInstance` | New instance (billing starts) |
|
|
200
|
+
| `DeleteInstance` | Irreversible data loss |
|
|
201
|
+
| `StartResizeFlavorAction` | Brief interruption during switchover |
|
|
202
|
+
| `StartInstanceEnlargeVolumeAction` | Online, but irreversible |
|
|
203
|
+
| `StartFailover` | Primary-standby switchover |
|
|
204
|
+
| `CreateRestoreInstance` | Creates new instance from backup |
|
|
205
|
+
| `CreateManualBackup` | Incurs OBS storage charges |
|
|
206
|
+
| `DeleteManualBackup` | Irreversible |
|
|
197
207
|
|
|
198
208
|
## Troubleshooting
|
|
199
209
|
|
|
200
|
-
| Error
|
|
201
|
-
|
|
202
|
-
| Connection refused
|
|
203
|
-
| Storage full
|
|
204
|
-
| DBS.280241 Invalid storage type | Volume type doesn't match flavor group
|
|
205
|
-
| DBS.280448 Sold out
|
|
206
|
-
| Replication lag
|
|
207
|
-
| Instance stuck BUILDING
|
|
208
|
-
| SYS.0403
|
|
209
|
-
| EIP.7905
|
|
210
|
+
| Error | Root Cause -> Fix |
|
|
211
|
+
| ------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
212
|
+
| Connection refused | SG missing DB port. Add ingress rule |
|
|
213
|
+
| Storage full | Manual resize or enable auto-scaling |
|
|
214
|
+
| DBS.280241 Invalid storage type | Volume type doesn't match flavor group |
|
|
215
|
+
| DBS.280448 Sold out | Try different volume type or AZ |
|
|
216
|
+
| Replication lag | Check `ShowReplicationStatus`. Consider read replica |
|
|
217
|
+
| Instance stuck BUILDING | Check task status: `hcloud RDS ListTasks` |
|
|
218
|
+
| SYS.0403 | SCP policy denies this operation (e.g. security group rules, EIP binding). See `huawei-vpc` troubleshooting |
|
|
219
|
+
| EIP.7905 | EIP quota exceeded — cannot create new EIP for public access. See `huawei-vpc` troubleshooting |
|
|
210
220
|
|
|
211
221
|
## Security
|
|
212
222
|
|