obd部署ocp报错

[root@8c1 example]# obd cluster component add demo -c all-components.yaml
Get local repositories and plugins ok
Open ssh connection ok
[ERROR] OBD-1019: component oceanbase-ce is already in cluster
[ERROR] OBD-1019: component obproxy-ce is already in cluster
[ERROR] OBD-1019: component obagent is already in cluster
[ERROR] OBD-1019: component prometheus is already in cluster
[ERROR] OBD-1019: component grafana is already in cluster
[ERROR] Failed to add components for demo
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: b2183b24-e897-11ef-b6d5-0800272fad69
If you want to view detailed obd logs, please run: obd display-trace b2183b24-e897-11ef-b6d5-0800272fad69

1 个赞

执行这个看下obd display-trace b2183b24-e897-11ef-b6d5-0800272fad69

2 个赞

[2025-02-12 00:46:10.814] [DEBUG] - Found for grafana-py_script_status-7.5.17 for grafana-7.5.17
[2025-02-12 00:46:10.814] [DEBUG] - Call plugin grafana-py_script_status-7.5.17 for grafana-7.5.17-1-1bf1f338d3a344 5d8599dc6902e7aeed4de4e0d6
[2025-02-12 00:46:10.814] [DEBUG] - import status
[2025-02-12 00:46:10.814] [DEBUG] - add status ref count to 1
[2025-02-12 00:46:10.815] [DEBUG] – local execute: cat /root/grafana/run/grafana.pid
[2025-02-12 00:46:10.818] [DEBUG] – exited code 0
[2025-02-12 00:46:10.819] [DEBUG] – local execute: ls /proc/14491
[2025-02-12 00:46:10.823] [DEBUG] – exited code 0
[2025-02-12 00:46:10.823] [DEBUG] - sub status ref count to 0
[2025-02-12 00:46:10.823] [DEBUG] - export status
[2025-02-12 00:46:10.823] [DEBUG] - plugin grafana-py_script_status-7.5.17 result: True
[2025-02-12 00:46:10.824] [DEBUG] - Searching status_check plugin for components …
[2025-02-12 00:46:10.824] [DEBUG] - Searching status_check plugin for general-7.5.17–None
[2025-02-12 00:46:10.824] [DEBUG] - Found for general-py_script_status_check-0.1 for general-7.5.17
[2025-02-12 00:46:10.824] [DEBUG] - Call plugin general-py_script_status_check-0.1 for grafana-7.5.17-1-1bf1f338d3a 3445d8599dc6902e7aeed4de4e0d6
[2025-02-12 00:46:10.825] [DEBUG] - plugin general-py_script_status_check-0.1 result: True
[2025-02-12 00:46:10.861] [ERROR] OBD-1019: component oceanbase-ce is already in cluster
[2025-02-12 00:46:10.861] [ERROR] OBD-1019: component obproxy-ce is already in cluster
[2025-02-12 00:46:10.861] [ERROR] OBD-1019: component obagent is already in cluster
[2025-02-12 00:46:10.861] [ERROR] OBD-1019: component prometheus is already in cluster
[2025-02-12 00:46:10.861] [ERROR] OBD-1019: component grafana is already in cluster
[2025-02-12 00:46:10.864] [ERROR] Failed to add components for demo
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 9
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 8
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 7
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 6
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 5
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 4
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 3
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 2
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2025-02-12 00:46:10.865] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2025-02-12 00:46:10.865] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2025-02-12 00:46:10.865] [DEBUG] - exclusive lock /root/.obd/lock/deploy_demo release, count 0
[2025-02-12 00:46:10.865] [DEBUG] - unlock /root/.obd/lock/deploy_demo
[2025-02-12 00:46:10.866] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2025-02-12 00:46:10.866] [DEBUG] - unlock /root/.obd/lock/global
[2025-02-12 00:46:10.866] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-02-12 00:46:10.866] [INFO] Trace ID: b2183b24-e897-11ef-b6d5-0800272fad69
[2025-02-12 00:46:10.866] [INFO] If you want to view detailed obd logs, please run: obd display-trace b2183b24-e897 -11ef-b6d5-0800272fad69

从报错来看,是重复添加了,可以执行obd cluster list确认下

image

按照人家的建议执行

改了查看还是默认值

当前问题解决了么