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

bugfix: ipv6地址的主机没有安装gse agent或者在cmdb没有agentId, 会被job拦截 #1842

Closed
wangyu096 opened this issue Mar 16, 2023 · 2 comments
Assignees
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞

Comments

@wangyu096
Copy link
Collaborator

Version / Branch / tag

3.7.x

出了什么问题?(What Happened?)

ipv6地址的主机没有安装gse agent或者在cmdb没有agentId, 会被job拦截
image

如何复现?(How to reproduce?)

见问题描述

预期结果(What you expect?)

  1. job不拦截没有agentId的主机执行任务
  2. Job执行的时候对这些没有agentId的主机设置状态为“未安装”,并且不会下发作业;跟ipv4主机的逻辑保持一致
@wangyu096 wangyu096 added the kind/bug 程序故障Bug,漏洞 label Mar 16, 2023
@wangyu096 wangyu096 self-assigned this Mar 16, 2023
@nekzhang
Copy link
Collaborator

讨论纪要备忘: @wangyu096

  1. Job 不拦截包含没有agentId的主机的任务请求(保留原版本设计,Agent状态不影响下发)
  2. 对于没有agentId的,统一在错误中归类为“Agent未安装”,并且在下发给GSE的任务中过滤掉这类主机,由Job自行处理
  3. Job后台提供配置开关能力,对于这种场景提供两种模式(快速失败-任务直接被拦截/后置处理-任务不会被拦截,仅在结果中显示错误)的支持

@wangyu096
Copy link
Collaborator Author

第三点单独拆分需求 #1860

wangyu096 added a commit that referenced this issue Mar 21, 2023
bugfix: ipv6地址的主机没有安装gse agent或者在cmdb没有agentId, 会被job拦截 #1842
jsonwan added a commit that referenced this issue Apr 7, 2023
bugfix: ipv6地址的主机没有安装gse agent或者在cmdb没有agentId, 会被job拦截 #1842
wangyu096 added a commit to wangyu096/bk-job that referenced this issue Apr 7, 2023
wangyu096 added a commit that referenced this issue Apr 7, 2023
bugfix: ipv6地址的主机没有安装gse agent或者在cmdb没有agentId, 会被job拦截 #1842
@bkjob-bot bkjob-bot added the done 已上线到正式环境并验收通过 label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

3 participants