{"record":{"id":"60267e48d11a6264","repo":"kubernetes/kops","slug":"cannot-parse-vfs-path-q-v","errorCode":null,"errorMessage":"cannot parse VFS path %q: %v","messagePattern":"cannot parse VFS path %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/gcemodel/storageacl.go","lineNumber":188,"sourceCode":"\n\t\t\tc.AddTask(&gcetasks.StorageBucketIAM{\n\t\t\t\tName:                 s(\"objectadmin-\" + bucket + \"-serviceaccount-\" + nameForTask),\n\t\t\t\tLifecycle:            b.Lifecycle,\n\t\t\t\tBucket:               s(bucket),\n\t\t\t\tMemberServiceAccount: serviceAccountRole.ServiceAccount,\n\t\t\t\tRole:                 s(\"roles/storage.objectAdmin\"),\n\t\t\t})\n\t\t}\n\n\t\t// Add bucket read permissions if we need to read from the bucket\n\t\treadablePaths, err := iam.ReadableStatePaths(b.Cluster, nodeRole)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif len(readablePaths) != 0 {\n\t\t\tp, err := vfs.Context.BuildVfsPath(b.Cluster.Spec.ConfigStore.Base)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"cannot parse VFS path %q: %v\", b.Cluster.Spec.ConfigStore.Base, err)\n\t\t\t}\n\n\t\t\tgcsPath, ok := p.(*vfs.GSPath)\n\t\t\tif !ok {\n\t\t\t\tklog.Warningf(\"unknown path, can't apply IAM policy: %q\", p)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tbucket := gcsPath.Bucket()\n\t\t\tif buckets.Has(bucket) {\n\t\t\t\t// Already marked as writeable; we can skip\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tbuckets.Insert(bucket)\n\n\t\t\tnameForTask := strings.ToLower(string(role))\n\n\t\t\tklog.Warningf(\"adding bucket level read IAM to gs://%s for role %q\", bucket, role)\n","sourceCodeStart":170,"sourceCodeEnd":206,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/gcemodel/storageacl.go#L170-L206","documentation":"Building a VFS path from a state path that needs bucket-read IAM binding failed; one of the cluster's configured state/config paths is not a parseable VFS URI.","triggerScenarios":"Thrown at pkg/model/gcemodel/storageacl.go:188 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the state/config store paths in the cluster spec for valid VFS syntax","Fix or remove the malformed path","Re-run kops update"],"exampleFix":null,"handlingStrategy":"try-catch","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-12T12:17:11.808Z"}