Skip to content

Node侧容器操作实现#4

Open
ChesterNotChest wants to merge 15 commits intoNodeKernelfrom
chester-node-kernel
Open

Node侧容器操作实现#4
ChesterNotChest wants to merge 15 commits intoNodeKernelfrom
chester-node-kernel

Conversation

@ChesterNotChest
Copy link
Collaborator

@ChesterNotChest ChesterNotChest commented Feb 15, 2026

功能实现

  • 实现容器启停重启基础功能
  • 完成添加/删除合作者后端逻辑
  • 完善 collaborator 相关方法实现与注释
  • 增强心跳支持,对接 container_status 接口

Bug 修复

  • 修复反注入逻辑问题
  • 修复创建失败后无法删除容器
  • 修复 ROOT 权限移交时的降级用户缺失
  • 修复删除容器全流程中的异常

异常处理与稳定性

  • 全链路改造异常处理,Node 异常可上报至 Web
  • 增加缺失的 config 异常检测
  • 增加 bash 超时回退与 SSH 解析补充
  • 补充创建容器时的同名检查

权限与安全

  • 完善 ROOT 权限移交逻辑(密码规范、用户重建)
    • 把其他用户提升为ROOT就相当于移交了容器ROOT权限。行为是:(1)让root的密码为 [新的对应用户名]123 (如Test123);(2)删旧的Test用户;(3)为原来的root用户创一个新号,密码为[新的对应用户名]123,并设为ADMIN
  • 强化容器操作安全检测

代码质量

  • 补充代码注释
  • 优化异常处理链路

- Create_container 通信补充owner_name字段
- 调整使得初始密码变为:{user_name}+123
- containerstatus补充CREATING、STOPPING、STARTING字段
- 调整Node通信,使得执行完Create_container方法后先由API传回"CREATING"字段
- 迎合Ctrl心跳方法。补充api_bp.post("/container_status")的接收
- 增加了一个bash超时的回退
- 补充了对ssh的解析
- 完成了删除合作者的逻辑
- 修正了remove_collaborator和add_collaborator的一些注释、变量表示
- 修正了一些报错方法。
- 补充了创建容器时的同名检查。
- 修复了 ROOT 权移交时会出现的bug(被降级为admin的用户不存在的问题)
@ChesterNotChest ChesterNotChest changed the title Chester node kernel Node侧容器操作实现 Feb 15, 2026
- 补充了 mount 逻辑,使得各容器的root保存更加安全
- 补充了 swap 参数
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant