gopher-net / docker-ovs-plugin

An Open vSwitch Plugin for Docker's Libnetwork
Apache License 2.0
76 stars 31 forks source link

Lengthen timer for netlink link for OVS bridge, exit 1 if retries fail. #28

Closed nerdalert closed 9 years ago

nerdalert commented 9 years ago

Need to add a 2nd retry before to give more time for the netlink link from the OVS bridge being created to finish. If after 4 seconds total the added OVS bridge never gets the associated netlink link then exiting the driver since I believe its an underlying OS issue at that point that needs some troubleshooting.

INFO[0000] OVS network driver initialized successfully
DEBU[0024] Handshake completed
DEBU[0024] error retrieving new OVS bridge link [ ovsbr-docker0 ] likely a race issue between ovs and netlink, retrying in 1 second..
ERRO[0026] Error retrieving the new OVS bridge from netlink: Link not found
DEBU[0026] Error assigning address:[ 172.18.40.1/24 ] on bridge:[ ovsbr-docker0 ]  with an error of: Link not found
WARN[0026] No IP address found on bridge: [ ovsbr-docker0 ]: Link not found
2015/08/19 03:47:05 http: panic serving @: runtime error: invalid memory address or nil pointer dereference
goroutine 17 [running]:
net/http.func·011()
    /usr/local/go/src/net/http/server.go:1130 +0xbb
github.com/gopher-net/docker-ovs-plugin/plugin/ovs.(*driver).interfaceUP(0xc208074000, 0x8aa550, 0xd, 0x0, 0x0)
    /home/brent/go/src/github.com/gopher-net/docker-ovs-plugin/plugin/ovs/driver.go:423 +0x8e
github.com/gopher-net/docker-ovs-plugin/plugin/ovs.(*driver).createEndpoint(0xc208074000, 0x7f8dd726fcb8, 0xc2080750e0, 0xc20801fd40)