Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: 导入作业,目标主机可能匹配的不对 #3287

Open
liuliaozhong opened this issue Nov 13, 2024 · 0 comments
Open

perf: 导入作业,目标主机可能匹配的不对 #3287

liuliaozhong opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
backlog 需求初始状态,等待产品进行评估 kind/enhancement 功能改进特性

Comments

@liuliaozhong
Copy link
Collaborator

liuliaozhong commented Nov 13, 2024

假设场景,从A环境导出作业到B环境,
导出的作业在A环境中,目标主机关键信息:hostId=1,ip=xx.xx.xx.10,cloudId=0
在B环境中,也有hostId=1的主机信息:hostId=1,ip=xx.xx.xx.100,cloudId=2
如果把A环境作业导入到B环境,该作业导入到B环境后,目标主机信息就是hostId=1,ip=xx.xx.xx.100,cloudId=2,对用户来说,虽然在A环境、B环境都存在一样的hostId,即使它是唯一,但是在不同的环境代表不同的信息,这里用户期望的目标主机不是xx.xx.xx.100,而是期望无效。

因此,在导入作业时,校验目标环境hostId存在的同时,也校验云区域+IP是否匹配,如果不匹配则认为该主机无效,是不是比较合理

@liuliaozhong liuliaozhong added kind/enhancement 功能改进特性 backlog 需求初始状态,等待产品进行评估 labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog 需求初始状态,等待产品进行评估 kind/enhancement 功能改进特性
Projects
None yet
Development

No branches or pull requests

2 participants