<fix>[compute]: fix VM clone quota check fail#3590
<fix>[compute]: fix VM clone quota check fail#3590zstack-robot-1 wants to merge 1 commit into5.5.12from
Conversation
1.Clone a tenant VM using admin account, quota check didn't base on current role. 2.quota error is overwritten during exception handling. Resolves: ZSTAC-83646 Change-Id: I706f6d6b726b6864746867727269716a796e7677
|
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 (4)
概述本次变更在主机分配链路中新增了会话账户UUID字段支持,并在配额检查前进行管理员权限提前检查。当会话账户为管理员时,绕过后续的VM/账户配额验证逻辑。同时优化了API消息拦截异常的处理路径。 变更详情
代码审查工作量评估🎯 2 (Simple) | ⏱️ ~12 分钟 诗歌
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Comment from yaohua.wu: Review: MR !9451 + !13318 — ZSTAC-83646Jira 背景:Admin clone 租户 VM 时,配额检查使用了 VM owner(租户)的 quota 导致报错;同时 变更概述(跨 2 个 MR):
Warning
Suggestion
✅ 正确性确认
Verdict: APPROVED修复逻辑正确、向后兼容、解决了 Jira 描述的两个子问题。Warning 项为防御性建议,不阻塞合并。 🤖 Robot Reviewer |
1.Clone a tenant VM using admin account, quota check
didn't base on current role.
2.quota error is overwritten during exception handling.
Resolves: ZSTAC-83646
Change-Id: I706f6d6b726b6864746867727269716a796e7677
sync from gitlab !9451