{"record":{"id":"011af274b3ad8a70","repo":"kubernetes/kops","slug":"error-getting-s-v","errorCode":null,"errorMessage":"error getting %s: %v","messagePattern":"error getting (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"util/pkg/vfs/swiftfs.go","lineNumber":439,"sourceCode":"\tclient, err := p.getClient(ctx)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tcreateFileLockSwift.Lock()\n\tdefer createFileLockSwift.Unlock()\n\n\t// Check if exists.\n\tif _, err := RetryWithBackoff(swiftReadBackoff, func() (bool, error) {\n\t\tklog.V(4).Infof(\"Getting file %q\", p)\n\n\t\t_, err := swiftobject.Get(ctx, client, p.bucket, p.key, swiftobject.GetOpts{}).Extract()\n\t\tif err == nil {\n\t\t\treturn true, nil\n\t\t} else if isSwiftNotFound(err) {\n\t\t\treturn true, os.ErrNotExist\n\t\t} else {\n\t\t\treturn false, fmt.Errorf(\"error getting %s: %v\", p, err)\n\t\t}\n\t}); err == nil {\n\t\treturn os.ErrExist\n\t} else if !os.IsNotExist(err) {\n\t\treturn err\n\t}\n\n\terr = p.createBucket()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treturn p.WriteFile(ctx, data, acl)\n}\n\nfunc (p *SwiftPath) createBucket() error {\n\tctx := context.TODO()\n","sourceCodeStart":421,"sourceCodeEnd":457,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/util/pkg/vfs/swiftfs.go#L421-L457","documentation":"Returned inside SwiftPath.CreateFile's existence-probe retry loop when a Swift object GET fails with something other than success or 404. The probe cannot determine whether the object exists — auth, permission, or transient proxy errors — so the not-exist (proceed to create) vs exists decision cannot be made and the loop keeps retrying until backoff is exhausted.","triggerScenarios":"Thrown at util/pkg/vfs/swiftfs.go:439 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check Swift credentials and read permission on the container","Let RetryWithBackoff absorb transient proxy errors; a persistent failure indicates a catalog/endpoint problem"],"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"}