From 799369da8162c15b71ac8eda158f603d119ffff7 Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Thu, 11 Feb 2016 03:54:12 -0800 Subject: [PATCH] getNetworksFromStore should not fail on inconsistent network state Signed-off-by: Madhu Venugopal --- libnetwork/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnetwork/store.go b/libnetwork/store.go index 4e639c4761..c7c6928dbf 100644 --- a/libnetwork/store.go +++ b/libnetwork/store.go @@ -139,7 +139,8 @@ func (c *controller) getNetworksFromStore() ([]*network, error) { ec := &endpointCnt{n: n} err = store.GetObject(datastore.Key(ec.Key()...), ec) if err != nil { - return nil, fmt.Errorf("could not find endpoint count key %s for network %s while listing: %v", datastore.Key(ec.Key()...), n.Name(), err) + log.Warnf("could not find endpoint count key %s for network %s while listing: %v", datastore.Key(ec.Key()...), n.Name(), err) + continue } n.Lock()