Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for Debugf (2.43 sec)

  1. cni/pkg/util/executil.go

    }
    
    func Execute(cmd string, args ...string) error {
    	log.Debugf("Running command: %s %s", cmd, strings.Join(args, " "))
    	externalCommand := exec.Command(cmd, args...)
    	stdout := &bytes.Buffer{}
    	stderr := &bytes.Buffer{}
    	externalCommand.Stdout = stdout
    	externalCommand.Stderr = stderr
    
    	err := externalCommand.Run()
    
    	if len(stdout.String()) != 0 {
    		log.Debugf("Command output: \n%v", stdout.String())
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net.go

    		hostsideProbeIPSet:   probeSet,
    	}
    }
    
    func (s *NetServer) Start(ctx context.Context) {
    	log.Debug("starting ztunnel server")
    	go s.ztunnelServer.Run(ctx)
    }
    
    func (s *NetServer) Stop() {
    	log.Debug("removing host iptables rules")
    	s.iptablesConfigurator.DeleteHostRules()
    
    	log.Debug("destroying host ipset")
    	s.hostsideProbeIPSet.Flush()
    	if err := s.hostsideProbeIPSet.DestroySet(); err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  3. cni/pkg/nodeagent/informers.go

    	switch event.Event {
    	case controllers.EventAdd:
    		log.Debugf("Namespace %s added", ns.Name)
    		s.enqueueNamespace(ns)
    
    	case controllers.EventUpdate:
    		newNs := event.New.(*corev1.Namespace)
    		oldNs := event.Old.(*corev1.Namespace)
    
    		if getModeLabel(oldNs.Labels) != getModeLabel(newNs.Labels) {
    			log.Debugf("Namespace %s updated", newNs.Name)
    			s.enqueueNamespace(newNs)
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables_linux.go

    	"net"
    
    	"github.com/vishvananda/netlink"
    	"golang.org/x/sys/unix"
    )
    
    func AddInpodMarkIPRule(cfg *Config) error {
    	err := forEachInpodMarkIPRule(cfg, netlink.RuleAdd)
    	if errors.Is(err, unix.EEXIST) {
    		log.Debugf("Ignoring exists error adding inpod mark ip rule: %v", err)
    		return nil
    	}
    	return err
    }
    
    func DelInpodMarkIPRule(cfg *Config) error {
    	return forEachInpodMarkIPRule(cfg, netlink.RuleDel)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  5. cni/pkg/repair/netns.go

    			// Not uncommon, many processes are transient and we have a TOCTOU here.
    			// No problem, must not be the one we are after.
    			log.Debugf("failed to open pid %v: %v", p.PID, err)
    			continue
    		}
    		id, err := netlink.GetNetNsIdByFd(fd)
    		_ = unix.Close(fd)
    		if err != nil {
    			log.Debugf("failed to get netns for pid %v: %v", p.PID, err)
    			continue
    		}
    
    		if id != wantID {
    			// Not the network we want, skip
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. cni/pkg/plugin/kubernetes.go

    	config, err := kube.DefaultRestConfig(kubeconfig, "")
    	if err != nil {
    		log.Errorf("Failed setting up kubernetes client with kubeconfig %s", kubeconfig)
    		return nil, err
    	}
    
    	log.Debugf("istio-cni set up kubernetes client with kubeconfig %s", kubeconfig)
    
    	// Create the client
    	return kubernetes.NewForConfig(config)
    }
    
    // getK8sPodInfo returns information of a POD
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin.go

    	var loggedPrevResult any
    	if conf.PrevResult == nil {
    		loggedPrevResult = "none"
    	} else {
    		loggedPrevResult = conf.PrevResult
    	}
    	log.WithLabels("if", args.IfName).Debugf("istio-cni CmdAdd config: %+v", conf)
    	log.Debugf("istio-cni CmdAdd previous result: %+v", loggedPrevResult)
    
    	// Determine if running under k8s by checking the CNI args
    	k8sArgs := K8sArgs{}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/ztunnelserver.go

    	for {
    		log.Debug("accepting conn")
    		conn, err := z.accept()
    		if err != nil {
    			if errors.Is(err, net.ErrClosed) {
    				log.Debug("listener closed - returning")
    				return
    			}
    
    			log.Errorf("failed to accept conn: %v", err)
    			continue
    		}
    		log.Debug("connection accepted")
    		go func() {
    			log.Debug("handling conn")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  9. istioctl/pkg/metrics/metrics.go

    	if err != nil {
    		return 0, fmt.Errorf("query() failure for '%s': %v", query, err)
    	}
    
    	log.Debugf("executing query: %s  result:%s", query, val)
    
    	switch v := val.(type) {
    	case model.Vector:
    		if v.Len() < 1 {
    			log.Debugf("no values for query: %s", query)
    			return 0, nil
    		}
    
    		return float64(v[0].Value), nil
    	default:
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. cni/pkg/repair/repaircontroller.go

    		return nil
    	}
    	return c.ReconcilePod(pod)
    }
    
    func (c *Controller) ReconcilePod(pod *corev1.Pod) (err error) {
    	if !c.matchesFilter(pod) {
    		return // Skip, pod doesn't need repair
    	}
    	repairLog.Debugf("Reconciling pod %s", pod.Name)
    
    	if c.cfg.RepairPods {
    		return c.repairPod(pod)
    	} else if c.cfg.DeletePods {
    		return c.deleteBrokenPod(pod)
    	} else if c.cfg.LabelPods {
    		return c.labelBrokenPod(pod)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top