chaosblade-io / chaosblade-box

chaos-platform
216 stars 98 forks source link

t_chaos_probes表似乎存在设计缺陷,存放了probe的安装记录 #17

Open zandwang opened 3 years ago

zandwang commented 3 years ago

问题现象:当探针安装失败时,probes表中存在多条该ip的记录,此时同步ansible配置信息时,在getAnsibleHosts函数处, image 上报key重复错误 Duplicate key ProbesDO(installMode=null, version=null, success=null, ip=192.168.100.26, deviceId=null, hostname=null, clusterId=null, clusterName=null, nodeName=null, agentType=null, status=1, errorMessage=null, lastPingTime=null, lastOnlineTime=null, deployBlade=true)

临时方案:目前只能手动在数据库删除安装失败的数据,才能正确使用同步按钮

建议:probes表,以ip为唯一键,再加一个probes安装记录表

tiny-x commented 3 years ago

It has been fixed in version 0.3.0, please try again. You need to delete the chaosblade schema and again create the chaosblade schema, no longer need to manually create database tables.