{"record":{"id":"8aa1f9d688bcec3d","repo":"cilium/cilium","slug":"failed-to-collect-cilium-operator-gops-stats-w","errorCode":null,"errorMessage":"failed to collect cilium-operator gops stats: %w","messagePattern":"failed to collect cilium-operator gops stats: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"cilium-cli/sysdump/sysdump.go","lineNumber":1340,"sourceCode":"\t\t},\n\t\t{\n\t\t\tCreatesSubtasks: true,\n\t\t\tDescription:     \"Collecting gops stats from Cilium pods\",\n\t\t\tQuick:           true,\n\t\t\tTask: func(_ context.Context) error {\n\t\t\t\tif err := c.SubmitGopsSubtasks(c.CiliumPods, ciliumAgentContainerName); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to collect Cilium gops: %w\", err)\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tCreatesSubtasks: true,\n\t\t\tDescription:     \"Collecting gops stats from Cilium-operator pods\",\n\t\t\tQuick:           true,\n\t\t\tTask: func(ctx context.Context) error {\n\t\t\t\tif err := c.SubmitGopsSubtasks(c.CiliumOperatorPods, ciliumOperatorContainerName); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to collect cilium-operator gops stats: %w\", err)\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tCreatesSubtasks: true,\n\t\t\tDescription:     \"Collecting gops stats from Hubble pods\",\n\t\t\tQuick:           true,\n\t\t\tTask: func(ctx context.Context) error {\n\t\t\t\tp, err := c.Client.ListPods(ctx, c.Options.CiliumNamespace, metav1.ListOptions{\n\t\t\t\t\tLabelSelector: c.Options.HubbleLabelSelector,\n\t\t\t\t})\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to get Hubble pods: %w\", err)\n\t\t\t\t}\n\t\t\t\tif err := c.SubmitGopsSubtasks(FilterPods(p, c.NodeList), hubbleContainerName); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to collect Hubble gops: %w\", err)\n\t\t\t\t}","sourceCodeStart":1322,"sourceCodeEnd":1358,"githubUrl":"https://github.com/cilium/cilium/blob/ac7b90affa4baf0642e6685319d56907b3a73a6d/cilium-cli/sysdump/sysdump.go#L1322-L1358","documentation":"Same gops collection mechanism as the Cilium agent task, but targeting cilium-operator pods and the cilium-operator container. It is returned when SubmitGopsSubtasks fails for the operator pod list, typically because operator pods are absent, not running, or not exec-able. Cause is wrapped with %w.","triggerScenarios":"c.SubmitGopsSubtasks(c.CiliumOperatorPods, ciliumOperatorContainerName) returns an error in the 'Collecting gops stats from Cilium-operator pods' task of Run.","commonSituations":"cilium-operator not deployed (e.g. using clustermesh-apiserver-only setups or HA operator renamed); operator pods crash-looping; container name changed between Cilium versions; exec RBAC missing.","solutions":["Check operator pods: kubectl get pods -n kube-system -l io.cilium/app=operator","Verify the operator deployment exists for your install mode (cilium-operator vs cilium-operator-generic)","Confirm container name cilium-operator matches your Cilium version","Ensure pods/exec RBAC permissions"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// verify operator pods exist before gops collection\npods, err := clientset.CoreV1().Pods(ns).List(ctx, metav1.ListOptions{LabelSelector: \"io.cilium/app=operator\"})\nif err != nil || len(pods.Items) == 0 { log.Printf(\"no cilium-operator pods found; skipping operator gops\") }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Confirm the cilium-operator deployment exists for your install mode","Check operator pods are Running before the sysdump","Match the cilium-operator container name to your Cilium version","Grant pods/exec RBAC"],"tags":["kubernetes","cilium","gops","operator","sysdump"],"backgroundTag":"gops-collection-failed","analyzedSha":"ac7b90affa4baf0642e6685319d56907b3a73a6d","analyzedAt":"2026-08-31T18:27:15.868Z","schemaVersion":2},"datasetVersion":"2026-08-31T19:17:28.585Z"}