{"record":{"id":"d50595a26ac9ef1a","repo":"kubernetes/kops","slug":"listing-pods-w","errorCode":null,"errorMessage":"listing pods: %w","messagePattern":"listing pods: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/dump/podlogs.go","lineNumber":65,"sourceCode":"func NewPodLogDumper(k8sConfig *rest.Config, artifactsDir string) (*podLogDumper, error) {\n\tk8sConfig.QPS = 50\n\tk8sConfig.Burst = 100\n\tclientSet, err := kubernetes.NewForConfig(k8sConfig)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating clientset: %w\", err)\n\t}\n\treturn &podLogDumper{\n\t\tk8sClient:    clientSet,\n\t\tartifactsDir: artifactsDir,\n\t}, nil\n}\n\nfunc (d *podLogDumper) DumpLogs(ctx context.Context) error {\n\tklog.Info(\"Dumping k8s pod logs\")\n\n\tallPods, err := d.k8sClient.CoreV1().Pods(v1.NamespaceAll).List(ctx, metav1.ListOptions{})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"listing pods: %w\", err)\n\t}\n\n\tjobs := make(chan v1.Pod, len(allPods.Items))\n\tresults := make(chan podLogDumpResult, len(allPods.Items))\n\n\tfor i := 0; i < podLogDumpConcurrency; i++ {\n\t\tgo d.getPodLogs(ctx, jobs, results)\n\t}\n\n\tvar dumpErr error\n\n\tfor _, pod := range allPods.Items {\n\t\tjobs <- pod\n\t}\n\tclose(jobs)\n\n\tfor i := 0; i < len(allPods.Items); i++ {\n\t\tresult := <-results","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/dump/podlogs.go#L47-L83","documentation":"Listing pods across all namespaces failed during toolbox dump, despite the client's raised QPS/burst; an API-server error such as timeout, RBAC denial, or throttling.","triggerScenarios":"Thrown at pkg/dump/podlogs.go:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify API server health and the client's RBAC to list pods cluster-wide","Retry the dump","Check for network instability or client-side throttling"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}