last_error="Connection refused", state=BACKOFF. Unable to connect controller

asked 2015-01-28 01:24:33 -0800

sudharsanraghavan gravatar image

Hi All,

I'm not able to connect ODL from OpenVSwitch.

I have started ODL with of.address & of.port in the config.ini as, of.listenPort=6633 of.address = 192.168.56.10 [controller IP]

I have configured the manager and controller in OVS as :

ovs-vsctl show output is :

root@vm1:/var/log/openvswitch# ovs-vsctl show 6038b00e-85f1-488f-ba35-394c48b4ae68 Manager "tcp:192.168.56.10:6640" isconnected: true Bridge br-tun Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port br-tun Interface br-tun type: internal Bridge br-mgmt Controller "tcp:192.168.56.10:6633" Port "eth1" Interface "eth1" Port br-mgmt Interface br-mgmt type: internal Port phy-br-mgmt Interface phy-br-mgmt type: patch options: {peer=int-br-mgmt} Bridge br-int Controller "tcp:192.168.56.10:6633" failmode: secure Port "tapce5c5b33-92" tag: 1 Interface "tapce5c5b33-92" type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port br-int Interface br-int type: internal Port int-br-mgmt Interface int-br-mgmt type: patch options: {peer=phy-br-mgmt} Port "qvof3aeeaa6-48" tag: 1 Interface "qvof3aeeaa6-48" ovs_version: "2.0.2"

When I did a telnet as,

  1. Checked the ovsdb connection & is working fine root@vm1:/var/log/openvswitch# telnet 192.168.56.10 6640 Trying 192.168.56.10... Connected to 192.168.56.10. Escape character is '^]'. {"id":"28d9af23-9378-4a60-a218-8b895e48563f","method":"getschema","params":["OpenvSwitch"]}^] telnet> q Connection closed.

  2. Checked the OF connection which is failing root@vm1:/var/log/openvswitch# telnet 192.168.56.10 6633 Trying 192.168.56.10... telnet: Unable to connect to remote host: Connection refused root@vm1:/var/log/openvswitch#

Error messages from the openvswitch logs: 2015-01-28T14:12:07.234Z|01850|fail_open|WARN|Could not connect to controller (or switch failed controller's post-connection admission control policy) for 15 seconds, failing open 2015-01-28T14:45:39.234Z|02754|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T14:45:39.236Z|02755|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused)

Error messages from controller: osgi> 2015-01-28 09:41:04.828 EST [nioEventLoopGroup-4-1] INFO o.o.ovsdb.plugin.ConnectionService - Connection to Node : OVS|192.168.56.10:46412 closed

When I checked the status of controller in controller table, the state is "BACKOFF":

Controller table uuid connectionmode controllerburstlimit controllerratelimit enableasyncmessages externalids inactivityprobe isconnected localgateway localip localnetmask maxbackoff otherconfig role status target


c2dde7e3-1093-4014-acc7-7b1893e6046d [] [] [] [] {} [] false [] [] [] [] {} other {lasterror="Connection refused", state=BACKOFF} "tcp:192.168.56.10:6633" f4bfa6bb-bc07-4f9a-a633-62ed47a649d8 [] [] [] [] {} [] false [] [] [] [] {} other {lasterror="Connection refused", state=BACKOFF} "tcp:192.168.56.10:6633"

FlowSampleCollector_Set table

Some more ovswitch logs:

2015-01-28T12:49:26.981Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovs-vswitchd.log 2015-01-28T12:49:26.981Z|00002|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting... 2015-01-28T12:49:26.987Z|00003|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected 2015-01-28T12:49:27.092Z|00004|netdevlinux|INFO|ioctl(SIOCGIFHWADDR) on tapce5c5b33-92 device failed: No such device 2015-01-28T12:49:27.092Z|00001 ... (more)

edit retag flag offensive close merge delete