corosync binding to 127.0.01 instead of the correct interface [closed]

asked 2015-01-14 05:29:17 -0600

sneha_27 gravatar image
I have a problem with the setup of corosync. I have two openstack controllers which I want to use as the nodes in the cluster for corosync. 
The ip of the first node is 192.168.100.4
The ip of the second node is 100.158.1.3
The 2 controllers can ping each other.

My corosync.conf file contains the following lines:

    interface {
                    ringnumber: 0
                    bindnetaddr: 192.168.100.0
                    mcastaddr: 239.255.1.1
                    mcastport: 5405
                    ttl: 1
            }
             interface {
                    ringnumber: 1
                    bindnetaddr: 100.158.1.0
                    mcastaddr: 239.255.1.2
                    mcastport: 5405
           }

corosync starts succesfully on both the nodes.

When I run corosync-cfgtool -s on the controller with IP 192.168.100.4:
[root@controller ~]# corosync-cfgtool -s
Printing ring status.
Local node ID 73705664
RING ID 0
    id  = 192.168.100.4
    status  = ring 0 active with no faults
RING ID 1
    id  = 127.0.0.1
    status  = ring 1 active with no faults

routing table:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
100.158.1.0     192.168.100.6   255.255.255.0   UG        0 0          0 eth0
10.100.0.0      0.0.0.0         255.255.128.0   U         0 0          0 eth1
10.100.0.0      0.0.0.0         255.255.128.0   U         0 0          0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 br-ex
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 br-int
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 br-tun
0.0.0.0         10.100.1.1      0.0.0.0         UG        0 0          0 eth2



When I run corosync-cfgtool -s on the controller with IP 100.158.1.3:
[root@controller ~]# corosync-cfgtool -s
Printing ring status.
Local node ID 16777343
RING ID 0
    id  = 127.0.0.1
    status  = ring 0 active with no faults
RING ID 1
    id  = 100.158.1.3
    status  = ring 1 active with no faults

routing table:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.100.0   100.158.1.1     255.255.255.0   UG        0 0          0 eth0
100.158.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.100.0.0      0.0.0.0         255.255.128.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by smaffulli
close date 2015-01-14 14:41:39.894181

Comments

corosync is not openstack. You may want to ask on corosync site.

smaffulli gravatar imagesmaffulli ( 2015-01-14 14:42:05 -0600 )edit