{"record":{"id":"0d6047d8b553aecf","repo":"kubernetes/kops","slug":"error-building-root-volume-options-v","errorCode":null,"errorMessage":"error building root volume options: %v","messagePattern":"error building root volume options: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/awsmodel/spotinst.go","lineNumber":288,"sourceCode":"\t\t\tgroup.HealthCheckType = new(strings.ToUpper(v))\n\t\t}\n\t}\n\n\t// Spot percentage.\n\tif group.SpotPercentage == nil {\n\t\tgroup.SpotPercentage = defaultSpotPercentage(ig)\n\t}\n\n\t// Instance profile.\n\tgroup.IAMInstanceProfile, err = b.LinkToIAMInstanceProfile(ig)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error building iam instance profile: %v\", err)\n\t}\n\n\t// Root volume.\n\tgroup.RootVolumeOpts, err = b.buildRootVolumeOpts(ig)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error building root volume options: %v\", err)\n\t}\n\n\t// Tenancy.\n\tif ig.Spec.Tenancy != \"\" {\n\t\tgroup.Tenancy = new(ig.Spec.Tenancy)\n\t}\n\n\t// Security groups.\n\tgroup.SecurityGroups, err = b.buildSecurityGroups(c, ig)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error building security groups: %v\", err)\n\t}\n\n\t// SSH key.\n\tgroup.SSHKey, err = b.LinkToSSHKey()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error building ssh key: %v\", err)\n\t}","sourceCodeStart":270,"sourceCodeEnd":306,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/awsmodel/spotinst.go#L270-L306","documentation":"Deriving the root volume options for the elastigroup failed; the instance group's root volume spec (size/type/IOPS combination) is invalid or unsupported for SpotInst.","triggerScenarios":"Thrown at pkg/model/awsmodel/spotinst.go:288 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the instance group's rootVolume settings form a valid combination","Simplify to a standard gp2/gp3 configuration","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-12T07:17:12.445Z"}