Skip to content

迁移目标选择不排除已被其他 CNClaim 占用的 Pod #584

@xzxiong

Description

@xzxiong

父 issue

#581

问题

当 unit-agent 的 migrator 触发 CN 迁移时,operator 选择迁移目标 Pod 的逻辑不校验目标 Pod 是否已被其他 CNClaim 绑定。

在实际案例中:

  • claim hxf8r 已迁移到 cn-pf8m6(14:40:28 完成)
  • claim 57459 后来也被迁移到 cn-pf8m6(15:26:06),目标与 hxf8r 冲突

建议修复

迁移目标选择时,应排除已被其他 CNClaim 的 spec.podName 引用的 Pod,或检查目标 Pod 的 PodClaimedByLabel 是否已指向其他 claim。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions