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: 本地文件分发报错 #1592

Closed
wangyu096 opened this issue Dec 8, 2022 · 3 comments
Closed

bugfix: 本地文件分发报错 #1592

wangyu096 opened this issue Dec 8, 2022 · 3 comments
Assignees
Labels
kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy
Milestone

Comments

@wangyu096
Copy link
Collaborator

Version / Branch / tag

3.6.1-alpha.1

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

报错如下:
image

如何复现?(How to reproduce?)

必现

预期结果(What you expect?)
本地文件分发正常

@wangyu096 wangyu096 added the kind/bug 程序故障Bug,漏洞 label Dec 8, 2022
@wangyu096 wangyu096 self-assigned this Dec 8, 2022
@wangyu096 wangyu096 added this to the V3.6.1 milestone Dec 8, 2022
@wangyu096
Copy link
Collaborator Author

wangyu096 commented Dec 8, 2022

image

执行过程中没有获取到源主机的信息。这里的sourceHost是从step_instance_file.file_source字段来的,查询DB发现这个字段中没有主机信息,应该是文件准备阶段没有设置源主机信息。

进一步定位,发现了根本原因是使用了NFS作为文件存储,代码在<1>处就退出了,没有走<2>的文件源主机获取逻辑,导致后续步骤报错

image

wangyu096 added a commit to wangyu096/bk-job that referenced this issue Dec 8, 2022
wangyu096 added a commit to wangyu096/bk-job that referenced this issue Dec 8, 2022
jsonwan added a commit that referenced this issue Dec 9, 2022
@fabio-he
Copy link
Collaborator

image

@bkjob-bot bkjob-bot added the stage/test Test environment in tencent has been deploy label Dec 14, 2022
@fabio-he
Copy link
Collaborator

fabio-he commented Dec 15, 2022 via email

@bkjob-bot bkjob-bot added the stage/prod Production environment in tencent has been deploy label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug 程序故障Bug,漏洞 stage/prod Production environment in tencent has been deploy stage/test Test environment in tencent has been deploy
Projects
None yet
Development

No branches or pull requests

4 participants