Add debugging statements
Closes:
Approved by: mheon
@@ -63,6 +63,8 @@ func (r *Runtime) createNetNS(ctr *Container) (err error) {
}
}()
+ logrus.Debugf("Made network namespace at %s for container %s", ctrNS.Path(), ctr.ID())
+
podNetwork := getPodNetwork(ctr.ID(), ctr.Name(), ctrNS.Path(), ctr.config.PortMappings)
if err := r.netPlugin.SetUpPod(podNetwork); err != nil {
@@ -118,6 +120,8 @@ func (r *Runtime) teardownNetNS(ctr *Container) error {
return nil
}
+ logrus.Debugf("Tearing down network namespace at %s for container %s", ctr.state.NetNS.Path(), ctr.ID())
+
portMappings, err := portMappingToHostport(ctr.config.PortMappings)
if err != nil {
logrus.Errorf("Failed to generate port mappings for container %s: %v", ctr.ID(), err)
