<fix>[kvm]: trigger nested config deploy#3989
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: http://open.zstack.ai:20001/code-reviews/zstack-cloud.yaml (via .coderabbit.yaml) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough在 KVM 宿主机连接的 ansible 阶段新增对 变更说明嵌套 KVM 配置检测
Sequence Diagram(s)sequenceDiagram
participant KVMHost
participant AnsibleRunner
participant SshFileExistChecker
KVMHost->>AnsibleRunner: create runner & provide SSH credentials and target IP
AnsibleRunner->>AnsibleRunner: read getSelf().getArchitecture()
alt architecture == CpuArchitecture.x86_64
AnsibleRunner->>SshFileExistChecker: install checker with path /etc/modprobe.d/kvm-nested.conf
SshFileExistChecker->>TargetHost: check file existence /etc/modprobe.d/kvm-nested.conf
else architecture == null
AnsibleRunner->>AnsibleRunner: log debug and skip installing checker
end
预估审查工作量🎯 2 (Simple) | ⏱️ ~8 minutes 诗
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.42.2)plugin/kvm/src/main/java/org/zstack/kvm/KVMHost.javaComment |
dc578dc to
924a7b6
Compare
|
Comment from yaohua.wu: Review: MR !9882 — ZSTAC-84199变更概述:在 KVM Host 连接流程的 总体评价:修复方向正确。与配套 utility MR 形成闭环——存量主机(运行态 nested 已启用但配置文件缺失)首次 reconnect 时会被 checker 命中并补齐持久化配置;下次 reconnect 文件已存在则不再触发。仅 x86_64 安装 checker 与 🟢 Suggestion
关联 MR
跨 repo 一致性:本 MR 的 checker 依赖 utility 侧 结论APPROVED — 可合并。两条 Suggestion 不阻塞,建议合并前顺手统一 #1 的 🤖 Robot Reviewer |
Run KVM ansible when nested KVM config is missing on x86_64 hosts. Resolves: ZSTAC-84199 Change-Id: I12a0a80b91cb2f78b505a12cfa112cb2279f33ea
6631a9a to
31d53d9
Compare
修复逻辑:
/etc/modprobe.d/kvm-nested.conf文件存在性检查。x86_64Host 安装该 checker,避免非 x86 架构因为没有 nested KVM 配置而反复触发 kvm ansible。kvm.py。配套 zstack-utility MR 会负责
kvm.py执行后写入并校验 nested KVM 持久化配置。Jira: ZSTAC-84199
sync from gitlab !9882