<feature>[storage]: register and take over sblk#3543
<feature>[storage]: register and take over sblk#3543zstack-robot-1 wants to merge 1 commit intofeature-zsv-5.0.0-vm-registrationfrom
Conversation
APIImpact Resolves: ZSV-10000 Change-Id: I70637377776e777070676c6a6c616e74786b6667
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (22)
Walkthrough本PR引入两个新的主存储管理API:一致性检查(GET端点)和存储接管(PUT端点),以及相应的SDK、文档和基础处理器实现。主要包括消息类、应答类、中文文档、SDK操作类和处理器实现。 Changes
Sequence DiagramsequenceDiagram
participant Client
participant Server
participant PrimaryStorageBase
participant Storage System
rect rgba(100, 150, 255, 0.5)
Note over Client,Storage System: 一致性检查流程
Client->>Server: GET /primary-storage/{uuid}/consistency
Server->>PrimaryStorageBase: handle(APICheckPrimaryStorageConsistencyMsg)
PrimaryStorageBase->>PrimaryStorageBase: 检查存储类型是否支持
alt 存储类型不支持
PrimaryStorageBase-->>Server: 返回错误应答
else 存储类型支持
PrimaryStorageBase->>Storage System: 执行一致性检查
Storage System-->>PrimaryStorageBase: 返回检查结果
PrimaryStorageBase-->>Server: 返回一致性应答
end
Server-->>Client: APICheckPrimaryStorageConsistencyReply
end
rect rgba(150, 200, 100, 0.5)
Note over Client,Storage System: 存储接管流程
Client->>Server: PUT /primary-storage/{uuid}/takeover
Server->>PrimaryStorageBase: handle(APITakeoverPrimaryStorageMsg)
PrimaryStorageBase->>PrimaryStorageBase: 检查存储类型是否支持
alt 存储类型不支持
PrimaryStorageBase-->>Server: 返回错误事件
else 存储类型支持
PrimaryStorageBase->>Storage System: 执行接管操作
Storage System-->>PrimaryStorageBase: 返回库存及重连结果
PrimaryStorageBase-->>Server: 发布事件
end
Server-->>Client: APITakeoverPrimaryStorageEvent
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 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)
📝 Coding Plan
Comment |
|
Comment from yaohua.wu: Review: MR !9403 (zstack) — register and take over sblk关联 MR: premium !13245 | zstack-utility !6777 Critical无。 Warning无。 Suggestion
Verdict: APPROVEDAPI 定义清晰:
无阻塞问题。详细 review 见 premium !13245 评论。 🤖 Robot Reviewer |
APIImpact
Resolves: ZSV-10000
Change-Id: I70637377776e777070676c6a6c616e74786b6667
sync from gitlab !9403