Skip to content

Commit

Permalink
fix 123
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 26, 2024
1 parent 4ff72c2 commit 42fb85c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from backend.flow.engine.bamboo.scene.mysql.common.slave_recover_switch import slave_migrate_switch_sub_flow
from backend.flow.engine.bamboo.scene.mysql.common.uninstall_instance import uninstall_instance_sub_flow
from backend.flow.plugins.components.collections.common.download_backup_client import DownloadBackupClientComponent
from backend.flow.plugins.components.collections.common.pause import PauseComponent
from backend.flow.plugins.components.collections.mysql.clear_machine import MySQLClearMachineComponent
from backend.flow.plugins.components.collections.mysql.exec_actuator_script import ExecuteDBActuatorScriptComponent
from backend.flow.plugins.components.collections.mysql.mysql_db_meta import MySQLDBMetaComponent
Expand Down Expand Up @@ -200,7 +201,8 @@ def non_standby_slaves_upgrade_subflow(
root_id, parent_global_data, relation_cluster_ids, old_slave_ip, new_slave_ip
)
sub_pipeline.add_parallel_sub_pipeline(switch_sub_pipeline_list)

# 切换完成后,确认卸载旧的从节点
sub_pipeline.add_act(act_name=_("确认卸载旧实例"), act_component_code=PauseComponent.code, kwargs={})
# 卸载旧从节点
uninstall_svr_sub_pipeline = build_uninstall_sub_pipeline(
root_id, parent_global_data, old_slave_ip, relation_cluster_ids, cluster_cls.bk_cloud_id, ports
Expand Down
9 changes: 4 additions & 5 deletions dbm-ui/backend/flow/utils/mysql/mysql_act_playload.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,10 @@ def get_install_mysql_payload(self, **kwargs) -> dict:
for port in install_mysql_ports:
mysql_config[port] = copy.deepcopy(init_mysql_config[port])
port_str = str(port)
if self.cluster["is_upgrade"]:
if port_str in old_configs.keys():
mysql_config[port] = self.deal_mysql_config(
db_version=version_no, init_configs=mysql_config[port], origin_configs=old_configs[port_str]
)
if port_str in old_configs.keys():
mysql_config[port] = self.deal_mysql_config(
db_version=version_no, init_configs=mysql_config[port], origin_configs=old_configs[port_str]
)
logger.debug("install config:", mysql_config)

drs_account, dbha_account = self.get_super_account()
Expand Down

0 comments on commit 42fb85c

Please sign in to comment.