role IP not applying on target node, mmm_control reports it has applied.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-mmm |
New
|
Undecided
|
Unassigned |
Bug Description
I have a master master setup with a third host setup as a monitor (monitor host IP is 192.168.14.238).
output for mmm_control show is as follows:
db1(192.
db2(192.
Problem is every time I execute a move role say from db1 to db2 the output of mmm_control show changes to the following
which is expected
db1(192.
db2(192.
But the address 192.168.14.194 never shows up on 192.168.14.240.
I can't ping it from the monitor either. But if I set it manually on the 14.240 using the confgure_ip script
configure_ip mmm_agent eth0 192.168.14.194 it shows up in output for the "ip addr list" command which again is expected.
Now the interesting thing is if I move the writer role back to db1 192.168.14.194 disappears from db2 but never shows up on db1.
I tried setting db2 to offline just to check if it moves the reader role to db1 and it does that. It shows up in the output of 'ip addr list" on db1.
I am running on centos 5.5.
my common config file is as follows:
active_master_role writer
<host default>
pid_path /var/run/
bin_path /usr/lib/mysql-mmm/
agent_user rep_agent
</host>
<host db1>
ip 192.168.14.239
mode master
peer db2
</host>
<host db2>
ip 192.168.14.240
mode master
peer db1
</host>
<role writer>
hosts db1, db2
ips 192.168.14.194
mode exclusive
</role>
<role reader>
hosts db1, db2
ips 192.168.14.195, 192.168.14.196
mode balanced
</role>
The above file is the same on all 3 hosts. The monitor config file is as follows:
include mmm_common.conf
<monitor>
ip 127.0.0.1
pid_path /var/run/
bin_path /usr/lib/mysql-mmm/
status_path /var/lib/
ping_ips 192.168.14.194, 192.168.14.195, 192.168.14.196, 192.168.14.239, 192.168.14.240
</monitor>
<host default>
</host>
debug 0
Please let me know if you know what I am doing wrong or any way i can to get your more information in order to resolve this issue.
Thanks
I am experiencing the exact same problem on ubuntu 10.10.
The floating IP address for the writer role (10.0.0.20) is not applying on the actual server. However according to mmm_monitor it has.
# mmm_control show (monitor node)
db1(10.0.0.2) master/ONLINE. Roles: reader(10.0.0.21), reader(10.0.0.22), writer(10.0.0.20)
# /var/log/ mysql-mmm/ mmm_mond. log (monitor node)
2011/01/24 08:49:50 FATAL Admin changed state of 'db1' from ONLINE to ADMIN_OFFLINE
2011/01/24 08:49:50 INFO Removing all roles from host 'db1':
2011/01/24 08:49:50 INFO Removed role 'reader(10.0.0.22)' from host 'db1'
2011/01/24 08:49:50 INFO Removed role 'reader(10.0.0.21)' from host 'db1'
2011/01/24 08:49:50 INFO Removed role 'writer(10.0.0.20)' from host 'db1'
2011/01/24 08:51:07 FATAL Admin changed state of 'db1' from ADMIN_OFFLINE to ONLINE
2011/01/24 08:51:07 INFO Orphaned role 'writer(10.0.0.20)' has been assigned to 'db1'
2011/01/24 08:51:07 INFO Orphaned role 'reader(10.0.0.22)' has been assigned to 'db1'
2011/01/24 08:51:07 INFO Orphaned role 'reader(10.0.0.21)' has been assigned to 'db1'
# ip addr list eth1 (db1 node) MULTICAST, UP,LOWER_ UP> mtu 4096 qdisc pfifo_fast state UNKNO d1ff:fe17: 578f/64 scope link
2: eth1: <BROADCAST,
WN qlen 1000
link/ether 00:14:d1:17:57:8f brd ff:ff:ff:ff:ff:ff
inet 10.0.0.2/24 brd 10.0.0.255 scope global eth1
inet 10.0.0.21/32 scope global eth1
inet 10.0.0.22/32 scope global eth1
inet6 fe80::214:
valid_lft forever preferred_lft forever
--------------
MMM should be checking to make sure the ARP applies on the target server, to apply the floating ip. If the ip does not apply it should try again.