What steps will reproduce the problem?
1. Setup mmm 1.2.3 on CentOS 5.3
2. Start mmm_mon on monitoring host
3. Run "ip addr" on DB hosts shows no role IPs
What is the expected output? What do you see instead?
I should see:
# ip addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:ba:50:fe brd ff:ff:ff:ff:ff:ff
inet 10.1.1.82/24 brd 10.1.1.255 scope global eth0
inet 10.1.1.90/32 scope global eth0
inet 10.1.1.92/32 scope global eth0
inet6 fe80::20c:29ff:feba:50fe/64 scope link
valid_lft forever preferred_lft forever
but the role ip addresses are not being assigned even though it thinks they
have. I see:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:ba:50:fe brd ff:ff:ff:ff:ff:ff
inet 10.1.1.82/24 brd 10.1.1.255 scope global eth0
inet6 fe80::20c:29ff:feba:50fe/64 scope link
valid_lft forever preferred_lft forever
What version of the product are you using? On what operating system?
MMM 1.2.3, CentOS 5.3, Perl v5.8.8
Please provide any additional information below.
When I start mmm_mon on the monitoring host it all looks good:
Starting MMM Monitor daemon: MySQL Multi-Master Replication Manager
Version: 1.2.3
Reading config file: 'mmm_mon.conf'
$VAR1 = {
'db01' => {
'roles' => [
'reader(10.1.1.92;)',
'writer(10.1.1.90;)'
],
'version' => '0',
'state' => 'ONLINE'
},
'db02' => {
'roles' => [
'reader(10.1.1.91;)'
],
'version' => '0',
'state' => 'ONLINE'
}
};
Role: 'reader(10.1.1.92;)'
Adding role: 'reader' with ip '10.1.1.92' to host 'db01'
Role: 'writer(10.1.1.90;)'
Adding role: 'writer' with ip '10.1.1.90' to host 'db01'
Role: 'reader(10.1.1.91;)'
Adding role: 'reader' with ip '10.1.1.91' to host 'db02'
Ok
Even though the IPs are shown, they are not allocated on the DB servers.
The mmm-debug.log on the DB servers also look OK. DB01 shows:
[2009-07-24 10:36:26]: 1636: Listener: Connect!
[2009-07-24 10:36:26]: 1636: SET_STATUS 0, ONLINE,
reader(10.1.1.92;),writer(10.1.1.90;), db01
[2009-07-24 10:36:26]: 1636: Old roles: $VAR1 = [
'reader(10.1.1.92;)',
'writer(10.1.1.90;)'
];
[2009-07-24 10:36:26]: 1636: New roles: $VAR1 = [
'reader(10.1.1.92;)',
'writer(10.1.1.90;)'
];
[2009-07-24 10:36:26]: 1636: State: ONLINE
[2009-07-24 10:36:26]: 1636: Daemon: Answer = 'OK: Status applied
successfully!'
[2009-07-24 10:36:26]: 1636: Listener: Disconnect!
If I run check_ip manually on the DB hosts the IPs are assigned OK, so not
sure why the monitoring host is not able to set these.
I've tried making the change in 'lib/ifconfig.pm' from issue 42 but that
didn't help.
Original issue reported on code.google.com by z0m...@gmail.com on 24 Jul 2009 at 2:42
Original issue reported on code.google.com by
z0m...@gmail.com
on 24 Jul 2009 at 2:42