<fix>[vm]: avoid StopVmGC stopping live vm#3972
Open
zstack-robot-2 wants to merge 1 commit into
Open
Conversation
Only allow StopVmGC to send StopVmOnHypervisorMsg while the VM is still Stopped. If the VM has already been started again before the GC runs, cancel the GC job instead. Resolves: ZSTAC-84174 Change-Id: Ib58111c4237bd41abc7c9b0d1b4e05f9bee24ec4
|
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)
总体概览该变更在StopVmGC中添加了针对VM状态的守卫逻辑,当VM不处于Stopped状态时将取消垃圾回收完成;同时添加了集成测试来验证VM重新启动后此保护机制的正确行为。 变更内容VM停止垃圾回收状态守卫
代码评审工作量估算🎯 2 (简单) | ⏱️ ~10 分钟 诗歌献礼
🚥 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)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Only allow StopVmGC to send StopVmOnHypervisorMsg while the VM is still Stopped. If the VM has already been started again before the GC runs, cancel the GC job instead.
Resolves: ZSTAC-84174
Change-Id: Ib58111c4237bd41abc7c9b0d1b4e05f9bee24ec4
sync from gitlab !9863