obd cluster destroy test后希望list不再显示

【产品名称】

oceanbase3.1.1

【问题描述】

obd cluster destroy test后,list还能显示如下:

[root@ocp ~]# obd cluster list

±-------------------------------------------------+

| Cluster List |

±-----±------------------------±----------------+

| Name | Configuration Path | Status (Cached) |

±-----±------------------------±----------------+

| test | /root/.obd/cluster/test | destroyed |

| jyc | /root/.obd/cluster/jyc | running

上述列表看到test已经destoryed,如何彻底清理掉,让list不再显示呢?

之前, 保留destroyed 的状态, 是方便下一次 可以不带配置文件 就可以重新再部署一次, 我们大批量跑test 的时候, 这个比较方便

如果你觉得这个设计不合理, 可以到github 给我们提个issue, 大家讨论一下  https://github.com/oceanbase/obdeploy/issues

有一个hack的方式

$ rm -rf ~/.obd/cluster/${destroyed}

${destroyed} 为你删除的cluster 的名字






1 个赞