Skip to content

[FEATURE] 安装上报 bk_agent_id 持久化 #781

@ZhuoZhuoCrayon

Description

@ZhuoZhuoCrayon

你想要什么功能
安装上报 bk_agent_id 持久化

为什么需要
节点管理获取 Agent ID,便于后续和 bk_host_id 进行绑定(之前的逻辑 :从 cc 获取 bk_host_id )

建议如何实现
上报 bk_agent_id 可参考 cpu_arch 逻辑:apps/backend/components/collections/agent_new/install.py

  • handle_report_data 方法里添加 bk_agent_id 返回字段,注意兼容 1.x 和 2.0

更新逻辑可参考:apps/backend/components/collections/agent_new/get_agent_id.py update_host_agent_id

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions