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

[Bug]同步全部组件失败之后,选择取消和卸载已安装组件,出现同类型组件全部disabled #558

Open
tyut22316 opened this issue Mar 17, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tyut22316
Copy link

tyut22316 commented Mar 17, 2023

KubeOperator 版本
v3.16.4

Kubernetes 版本
v1.22.16

Bug 描述
集群只安装了metrics-server与Ingress-nginx,执行组件同步时,选择同步全部,此时触发了同步失败 全部组件都显示失败,在失败选项全部选择取消和卸载,此时traefik和ingress的button会变为不可选,返回的disable属性为true,检查数据库,component下遗留一条脏数据,message提示为task cancel 但是前端ui上 不会显示失败。

截图

image-20230317173644909
组件已安装的是有metrics-server与Ingress-nginx.

+++

image-20230317170746512
显示失败的时候 没有识别到ingress-controller 和traefik

image-20230317170806332
此时错误的message 全部是task cancel

+++

image-20230317171348249
等待全部取消和卸载之后 此时两个启用按钮 都变成了不可选

+++
image-20230317173145480
此时检查请求返回均为disabled

+++
image-20230317171536215
数据库 遗留有脏数据 失败的信息 message仍然为task cancel 但是页面不显示 失败状态
等待手动删除数据库记录之后 组件可选 恢复使用。

@wanghe-fit2cloud
Copy link
Collaborator

感谢反馈。

@wanghe-fit2cloud wanghe-fit2cloud added the bug Something isn't working label Mar 19, 2023
@tyut22316
Copy link
Author

我重新复现了这个问题 依然是 同步全部组件 ,此次监控着数据库的内容 此时traefik出现了两条记录 同步前是未启用的组件 该类型enable的是ingress-nginx 但是却出现了不同版本的traefik记录
image
于是我尝试在页面执行了一次禁用traefik 只删除了一条traefik 页面状态仍然查询到的是第一条failed的记录 于是我第二次执行 禁用traefik 页面的状态改为了销毁中
可能跟查询时候 只取了单次记录有关系 可能和同步逻辑中 涉及到同类型组件的同步存在问题 稍后我会查看如何修改
image
状态更新为销毁中
组件的任务 也可以证明我是连续点击了两次禁用组件
image
等待两次TASK执行完成后
image
页面的状态 更新为正常状态

@tyut22316
Copy link
Author

tyut22316 commented Mar 21, 2023

另外我在调用delete的时候
image
查询的结果是failed那条记录 版本是2.6.1
image
执行delete请求后
image
数据库命中的却是2.4.8版本
image

delete的命中是否存在bug
另外仔细查看后。这里traefik有三个版本 2.4.8 2.6.1 2.2.1 我的删除task里面 却只记录了两次
image
有一次delete 没有记录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants