Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 268 for Debugf (0.06 sec)

  1. cni/pkg/log/uds.go

    		log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    		return cniLog{}, false
    	}
    	var msg cniLog
    	if err := json.Unmarshal(raw["msg"], &msg.Msg); err != nil {
    		log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    		return cniLog{}, false
    	}
    	if err := json.Unmarshal(raw["level"], &msg.Level); err != nil {
    		log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 19:12:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables_linux.go

    	"golang.org/x/sys/unix"
    
    	"istio.io/istio/pkg/ptr"
    )
    
    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)
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Sep 06 09:44:28 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. cmd/metacache-bucket.go

    	return &bucketMetacache{
    		bucket:     bucket,
    		caches:     make(map[string]metacache, 10),
    		cachesRoot: make(map[string][]string, 10),
    	}
    }
    
    func (b *bucketMetacache) debugf(format string, data ...interface{}) {
    	if serverDebugLog {
    		console.Debugf(format+"\n", data...)
    	}
    }
    
    // findCache will attempt to find a matching cache for the provided options.
    // If a cache with the same ID exists already it will be returned.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. 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())
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher.go

    		log.Errorf("Failed to unmarshal CNI plugin event: %v", err)
    		return msg, err
    	}
    
    	log.Debugf("Deserialized CNI plugin event: %+v", msg)
    	return msg, nil
    }
    
    func (s *CniPluginServer) ReconcileCNIAddEvent(ctx context.Context, addCmd CNIPluginAddEvent) error {
    	log := log.WithLabels("cni-event", addCmd)
    
    	log.Debugf("netns: %s", addCmd.Netns)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. 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:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. 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
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. cni/pkg/install/cniconfig.go

    			return cniConfigFilepath, err
    		}
    		cniConfigFilepath += "list"
    	}
    
    	installLog.Infof("created CNI config %s", cniConfigFilepath)
    	installLog.Debugf("CNI config: %s", pluginConfig)
    	return cniConfigFilepath, nil
    }
    
    // If configured as chained CNI plugin, waits indefinitely for a main CNI config file to exist before returning
    // Or until cancelled by parent context
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/net.go

    	log.WithLabels("delete", isDelete).Debugf("removing pod from the mesh")
    
    	// Aggregate errors together, so that if part of the cleanup fails we still proceed with other steps.
    	var errs []error
    
    	// Whether pod is already deleted or not, we need to let go of our netns ref.
    	openNetns := s.currentPodSnapshot.Take(string(pod.UID))
    	if openNetns == nil {
    		log.Debug("failed to find pod netns during removal")
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. cni/pkg/monitoring/monitoring.go

    			log.Errorf("error running monitoring http server: %s", err)
    		}
    	}()
    	go func() {
    		<-stop
    		err := monitoringServer.Close()
    		log.Debugf("monitoring server terminated: %v", err)
    	}()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 09 07:54:01 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top