Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

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

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|ofprotodpifupcall(misshandler)|INFO|received packet on unassociated datapath port 6 2015-01-28T12:49:27.092Z|00002|ofprotodpifupcall(misshandler)|INFO|received packet on unassociated datapath port 6 2015-01-28T12:49:27.092Z|00003|ofprotodpifupcall(misshandler)|INFO|received packet on unassociated datapath port 6 2015-01-28T12:49:27.092Z|00004|ofprotodpifupcall(misshandler)|INFO|received packet on unassociated datapath port 6 2015-01-28T12:49:27.093Z|00005|ofprotodpifupcall(misshandler)|INFO|received packet on unassociated datapath port 6 2015-01-28T12:49:27.201Z|00005|netdev|WARN|failed to set flags for network device tapce5c5b33-92: No such device 2015-01-28T12:49:27.229Z|00006|netdevlinux|WARN|ioctl(SIOCGIFINDEX) on tapce5c5b33-92 device failed: No such device 2015-01-28T12:49:27.229Z|00007|bridge|INFO|bridge br-int: added interface int-br-mgmt on port 235 2015-01-28T12:49:27.229Z|00008|bridge|INFO|bridge br-int: added interface patch-tun on port 236 2015-01-28T12:49:27.229Z|00009|bridge|INFO|bridge br-tun: added interface patch-int on port 1 2015-01-28T12:49:27.229Z|00010|bridge|INFO|bridge br-mgmt: added interface phy-br-mgmt on port 3 2015-01-28T12:49:27.229Z|00011|bridge|INFO|bridge br-int: using datapath ID 00000668a5e41f4a 2015-01-28T12:49:27.229Z|00012|netdevlinux|WARN|tapce5c5b33-92: removing policing failed: No such device 2015-01-28T12:49:27.229Z|00013|connmgr|INFO|br-int: added service controller "punix:/var/run/openvswitch/br-int.mgmt" 2015-01-28T12:49:27.229Z|00014|connmgr|INFO|br-int: added primary controller "tcp:192.168.56.10:6633" 2015-01-28T12:49:27.229Z|00015|rconn|INFO|br-int<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:27.229Z|00016|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:27.229Z|00017|rconn|INFO|br-int<->tcp:192.168.56.10:6633: waiting 1 seconds before reconnect 2015-01-28T12:49:27.229Z|00018|bridge|INFO|bridge br-tun: using datapath ID 000006b34b0e8d46 2015-01-28T12:49:27.229Z|00019|connmgr|INFO|br-tun: added service controller "punix:/var/run/openvswitch/br-tun.mgmt" 2015-01-28T12:49:27.229Z|00020|bridge|INFO|bridge br-mgmt: using datapath ID 000008002797e24e 2015-01-28T12:49:27.229Z|00021|connmgr|INFO|br-mgmt: added service controller "punix:/var/run/openvswitch/br-mgmt.mgmt" 2015-01-28T12:49:27.229Z|00022|connmgr|INFO|br-mgmt: added primary controller "tcp:192.168.56.10:6633" 2015-01-28T12:49:27.229Z|00023|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:27.229Z|00024|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:27.229Z|00025|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: waiting 1 seconds before reconnect 2015-01-28T12:49:27.236Z|00026|rconn|INFO|br-int<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:27.236Z|00027|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:27.236Z|00028|rconn|INFO|br-int<->tcp:192.168.56.10:6633: waiting 2 seconds before reconnect 2015-01-28T12:49:27.236Z|00029|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:27.236Z|00030|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:27.236Z|00031|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: waiting 2 seconds before reconnect 2015-01-28T12:49:27.260Z|00032|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.0.2 2015-01-28T12:49:29.233Z|00033|rconn|INFO|br-int<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:29.233Z|00034|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:29.233Z|00035|rconn|INFO|br-int<->tcp:192.168.56.10:6633: waiting 4 seconds before reconnect 2015-01-28T12:49:29.233Z|00036|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:29.233Z|00037|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:29.233Z|00038|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: waiting 4 seconds before reconnect 2015-01-28T12:49:31.759Z|00039|bridge|INFO|bridge br-int: added interface int-br-mgmt on port 235 2015-01-28T12:49:31.914Z|00040|bridge|INFO|bridge br-mgmt: added interface phy-br-mgmt on port 3 2015-01-28T12:49:32.532Z|00041|bridge|INFO|bridge br-tun: added interface br-tun on port 65534 2015-01-28T12:49:32.533Z|00042|bridge|INFO|bridge br-tun: using datapath ID 00004e0073005740 2015-01-28T12:49:32.533Z|00043|connmgr|INFO|br-tun: added service controller "punix:/var/run/openvswitch/br-tun.mgmt" 2015-01-28T12:49:32.695Z|00044|bridge|INFO|bridge br-int: added interface patch-tun on port 236 2015-01-28T12:49:32.852Z|00045|bridge|INFO|bridge br-tun: added interface patch-int on port 1 2015-01-28T12:49:33.235Z|00046|rconn|INFO|br-int<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:33.235Z|00047|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:33.235Z|00048|rconn|INFO|br-int<->tcp:192.168.56.10:6633: continuing to retry connections in the background but suppressing further logging 2015-01-28T12:49:33.235Z|00049|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: connecting... 2015-01-28T12:49:33.235Z|00050|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:33.235Z|00051|rconn|INFO|br-mgmt<->tcp:192.168.56.10:6633: continuing to retry connections in the background but suppressing further logging 2015-01-28T12:49:36.995Z|00052|memory|INFO|24048 kB peak resident set size after 10.0 seconds 2015-01-28T12:49:36.995Z|00053|memory|INFO|facets:6 ofconns:2 ports:10 rules:55 subfacets:9 2015-01-28T12:49:40.234Z|00054|ofproto|INFO|br-int: 4 flowmods in the 1 s starting 10 s ago (3 adds, 1 deletes) 2015-01-28T12:49:41.235Z|00055|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:41.235Z|00056|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:41.235Z|00057|failopen|WARN|Could not connect to controller (or switch failed controller's post-connection admission control policy) for 15 seconds, failing open 2015-01-28T12:49:41.336Z|00058|ofproto|INFO|br-mgmt: 3 flowmods 10 s ago (2 adds, 1 deletes) 2015-01-28T12:49:43.234Z|00059|ofproto|INFO|br-tun: 11 flowmods in the 2 s starting 10 s ago (10 adds, 1 deletes) 2015-01-28T12:49:49.234Z|00060|rconn|WARN|br-int<->tcp:192.168.56.10:6633: connection failed (Connection refused) 2015-01-28T12:49:49.235Z|00061|rconn|WARN|br-mgmt<->tcp:192.168.56.10:6633: connection failed (Connection refused)

Can anyone help me to find the solution.

Thanks, Sudharsan