sdn: start pod manager before trying to update if VNIDs have changed
Fixes:
@@ -207,6 +207,9 @@ func (node *OsdnNode) Start() error {
if err != nil {
return err
}
+ if err := node.podManager.Start(cniserver.CNIServerSocketPath); err != nil {
+ return err
+ }
if networkChanged {
var pods []kapi.Pod
@@ -223,10 +226,6 @@ func (node *OsdnNode) Start() error {
}
}
- if err := node.podManager.Start(cniserver.CNIServerSocketPath); err != nil {
- return err
- }
-
node.markPodNetworkReady()
return nil
