Skip to content

Commit

Permalink
fix(mysql): 回退标准化改动 TencentBlueKing#7644
Browse files Browse the repository at this point in the history
  • Loading branch information
xfwduke committed Oct 29, 2024
1 parent 7ef55c9 commit 84a3f4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def standardize(self):
need_random_pass_cluster_ids=list(set(self.data["infos"]["cluster_ids"])),
)

standardize_pipe.add_sub_pipeline(self._build_trans_module_sub(clusters=cluster_objects))

standardize_pipe.add_sub_pipeline(self._build_instantiate_mysql_config_sub(clusters=cluster_objects))

# 为了代码方便这里稍微特殊点
Expand Down Expand Up @@ -114,8 +116,6 @@ def standardize(self):
]
)

standardize_pipe.add_sub_pipeline(self._build_trans_module_sub(clusters=cluster_objects))

logger.info(_("构建TenDBHA集群标准化流程成功"))
standardize_pipe.run_pipeline(is_drop_random_user=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def standardize(self):
data=self.data,
need_random_pass_cluster_ids=list(set(self.data["infos"]["cluster_ids"])),
)

standardize_pipe.add_sub_pipeline(self._build_trans_module_sub(clusters=cluster_objects))
standardize_pipe.add_sub_pipeline(self._build_instantiate_config_sub(clusters=cluster_objects))

spider_master_ips = {}
Expand Down Expand Up @@ -128,8 +128,6 @@ def standardize(self):
if spider_mnt_ips:
standardize_pipe.add_sub_pipeline(self._build_spider_mnt_sub(ips=spider_mnt_ips))

standardize_pipe.add_sub_pipeline(self._build_trans_module_sub(clusters=cluster_objects))

logger.info(_("构建TenDBCluster集群标准化流程成功"))
standardize_pipe.run_pipeline(is_drop_random_user=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def standardize(self):
need_random_pass_cluster_ids=list(set(self.data["infos"]["cluster_ids"])),
)

standardize_pipe.add_sub_pipeline(self._build_trans_module_sub(clusters=cluster_objects))
standardize_pipe.add_sub_pipeline(self._build_instantiate_mysql_config_sub(clusters=cluster_objects))

storage_ips = {}
Expand All @@ -84,7 +85,7 @@ def standardize(self):
self._build_storage_sub(ips=storage_ips),
]
)
standardize_pipe.add_sub_pipeline(self._build_trans_module_sub(clusters=cluster_objects))

logger.info(_("构建TenDBSingle集群标准化流程成功"))
standardize_pipe.run_pipeline(is_drop_random_user=True)

Expand Down

0 comments on commit 84a3f4d

Please sign in to comment.