Comments (3)
I haven't added orig(or new)master_ssh_user argument since I didn't realize it is necessary.
Passing ssh* is easy. The below patch will work. I'll add this in the next version.
diff --git a/lib/MHA/MasterRotate.pm b/lib/MHA/MasterRotate.pm
index 8a8c60b..e81f58c 100644
--- a/lib/MHA/MasterRotate.pm
+++ b/lib/MHA/MasterRotate.pm
@@ -394,6 +394,8 @@ sub switch_master($$$$) {
if ( $new_master->{master_ip_online_change_script} ) {
my $command =
"$new_master->{master_ip_online_change_script} --command=start --orig_master_host=$orig_master->{hostname} --orig_master_ip=$orig_master->{ip} --orig_master_port=$orig_master->{port} --orig_master_user=$orig_master->{escaped_user} --orig_master_password=$orig_master->{escaped_password} --new_master_host=$new_master->{hostname} --new_master_ip=$new_master->{ip} --new_master_port=$new_master->{port} --new_master_user=$new_master->{escaped_user} --new_master_password=$new_master->{escaped_password}";
- $command .= " --orig_master_ssh_user=$orig_master->{ssh_user}";
- $command .= " --newe_master_ssh_user=$new_master->{ssh_user}";
$command .= $orig_master->get_ssh_args_if( 1, "orig", 1 );
$command .= $new_master->get_ssh_args_if( 2, "new", 1 );
$log->info(
from mha4mysql-manager.
Thanks for the update. Will there be an associated release with this enhancement?
from mha4mysql-manager.
The patch is committed to the GitHub branch, and will be included in the next release.
from mha4mysql-manager.
Related Issues (20)
- There is no ssh_port parameter in the master_ip_failover template HOT 1
- Download problem
- Centos7.8 mha0.58 installation error reported
- MHA binlog setting check failed, need to set --start_file or --binlog_prefix HOT 1
- monitor lock released after re-connect when connection loss
- when i start mha mamanger node,i found the error Wed Sep 2 15:09:37 2020 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations. Failed to get IP address on host xxxxxx.
- MHA mysql command failed with rc 1:0! HOT 1
- Checking if super_read_only is defined and turned on..DBD::mysql::st execute failed: Unknown system variable 'super_read_only' at /usr/local/share/perl5/MHA/SlaveUtil.pm line 245.
- Failover might not work when Master_Log_File changed
- 能不能发布一版python 版本的 能不能不用root 免密登录 用mysql用户来做免密登录?
- can't find the MHA::slaveUtil file HOT 1
- Question about run mha on Ubuntu 20.04,mariadb 10.3.25 HOT 2
- socket leak with mha 0.56
- special character issue.
- 加入电源shutdown脚本报错
- Health check times when an error is detected
- MHA unknown variable 'default-character-set=utf8mb4'
- ssh check error
- ssh check failed if manager node deployed on a backup slave server
- [info] Executing SSH check script: exit 0 hanging HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mha4mysql-manager.