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

fix get_obproxy_version on rca #326

Merged
merged 14 commits into from
Jul 15, 2024
Merged
2 changes: 1 addition & 1 deletion example/operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ obcluster:
container_name: observer
home_path: /home/admin/oceanbase
data_dir: /home/admin/oceanbase/store
redo_Dir: /home/admin/oceanbase/store
redo_dir: /home/admin/oceanbase/store
ip: xx.xx.xx.xx
global:
# if running obdiag in kubernetes, please delete the kubernetes_config_file
Expand Down
7 changes: 1 addition & 6 deletions handler/rca/rca_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,7 @@ def __init__(self, context):
obproxy_version = ""
try:
if len(context_obproxy_nodes) > 0:
obproxy_version = get_obproxy_version(
True,
context_obproxy_nodes[0]["ssher"],
context_obproxy_nodes[0]["home_path"],
self.stdio,
)
obproxy_version = get_obproxy_version(context)
except Exception as e:
self.stdio.warn("RCAHandler.init Failed to get obproxy version. Error:{0}".format(e))
if obproxy_version != "":
Expand Down
Loading