在OCP上发起了一个任务,重启集群(该集群是不可用状态),任务执行到stop zone就停止了,然后一直卡在这里,停止也停止不了,请问如何才能将该任务直接关掉,重新发起一个新的任务
2022-09-16 16:39:53.856 WARN 361 — [pool-manual-subtask-executor8,71311d133f2e4cab,42abdcf1b9e7] c.a.o.c.m.t.model.SubtaskInstanceEntity : Cancel subtask, id=3156449, context=Context{parallelIdx=-1, stringMap={cluster_name=obcccis, prohibit_rollback=false, former_cluster_status=UNAVAILABLE, target_zone_status=RUNNING, task_instance_id=3131433, task_operation=cancel, zone_name=zone1, ob_cluster_id=1657092367, cluster_id=2, ocpagent_service_name=agent, target_cluster_status=RUNNING, latest_execution_start_time=2022-09-16T16:38:33.077+08:00, sub_task_instance_id=3156449}, listMap={1657092367.obcccis.zone2.server_ids=[3], server_ids=[2], 1657092367.obcccis.zone3.server_ids=[4], 1657092367.obcccis.zone1.host_ids=[2], 1657092367.obcccis.zone1.server_ids=[2], 1657092367.obcccis.zone3.host_ids=[4], host_ids=[2], zone_names=[zone1, zone2, zone3], 1657092367.obcccis.zone2.host_ids=[3]}}, executor=192.168.200.178
2022-09-16 16:39:53.858 INFO 361 — [pool-manual-subtask-executor8,71311d133f2e4cab,42abdcf1b9e7] c.a.o.c.m.t.model.SubtaskInstanceEntity : Set state for subtask: 3156449, current state: FAILED, new state: FAILED
1、在ocp meta 的元数据里修改以下2张表: ob_zone/ob_cluster
select * from ob_zone;
select * from ob_cluster;
update ob_zone set status=‘RUNNING’ where id=‘xxx’;
update ob_cluster set status=‘RUNNING’ where id=‘xxx’;
说明这里的id 替换为对应status是RESTARTING记录的id
2、第一步修改完成后,在ocp页面要选择强制重启集群(下拉框),因为看描述当前集群是不可用的状态。
ocp_meta租户的root密码忘记了,登录不上去,在哪里可以找到或是修改这个root的密码吗
参考这篇帖子进行重置: