{"record":{"id":"51ad7f6bc5626886","repo":"kubernetes/kops","slug":"failed-to-find-flavor-v-v","errorCode":null,"errorMessage":"failed to find flavor %v: %v","messagePattern":"failed to find flavor (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/instance.go","lineNumber":342,"sourceCode":"\t}\n\n\tif a == nil || fi.ValueOf(a.Status) == errorStatus {\n\t\tserverName, err := generateInstanceName(e)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tklog.V(2).Infof(\"Creating Instance with name: %q\", serverName)\n\n\t\timageName := fi.ValueOf(e.Image)\n\t\timage, err := cloud.GetImage(imageName)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to find image %v: %v\", imageName, err)\n\t\t}\n\n\t\tflavorName := fi.ValueOf(e.Flavor)\n\t\tflavor, err := cloud.GetFlavor(flavorName)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to find flavor %v: %v\", flavorName, err)\n\t\t}\n\n\t\topt := servers.CreateOpts{\n\t\t\tName:      serverName,\n\t\t\tImageRef:  image.ID,\n\t\t\tFlavorRef: flavor.ID,\n\t\t\tNetworks: []servers.Network{\n\t\t\t\t{\n\t\t\t\t\tPort: fi.ValueOf(e.Port.ID),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMetadata:       e.Metadata,\n\t\t\tSecurityGroups: e.SecurityGroups,\n\t\t\tConfigDrive:    e.ConfigDrive,\n\t\t}\n\t\tif e.UserData != nil {\n\t\t\tbytes, err := fi.ResourceAsBytes(e.UserData)\n\t\t\tif err != nil {","sourceCodeStart":324,"sourceCodeEnd":360,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/instance.go#L324-L360","documentation":"The flavor lookup by the configured flavor name failed while preparing to create the instance. The wrapped error means the named Nova flavor is not available to this project/region.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/instance.go:342 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the flavor exists (openstack flavor list)","Update the instance group's machine type to an available flavor","Ensure the flavor is publicly accessible if it is a private one"],"exampleFix":null,"handlingStrategy":"validation","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"}