{"record":{"id":"a5d1d039fd6ec4d1","repo":"kubernetes/kops","slug":"linode-subnets-must-all-use-the-same-region-found","errorCode":null,"errorMessage":"linode subnets must all use the same region; found %q and %q","messagePattern":"linode subnets must all use the same region; found %q and %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/linodemodel/network.go","lineNumber":69,"sourceCode":"\t\tif subnet.Region == \"\" {\n\t\t\treturn fmt.Errorf(\"linode subnet %q requires a region\", subnetName)\n\t\t}\n\t\tif subnet.CIDR == \"\" {\n\t\t\treturn fmt.Errorf(\"linode subnet %q requires a CIDR\", subnetName)\n\t\t}\n\n\t\tnormalizedSubnetName := linode.NormalizeLinodeLabel(b.ClusterName() + \"-\" + subnet.Name)\n\t\tif previousSubnetName, found := seenSubnetNames[normalizedSubnetName]; found {\n\t\t\treturn fmt.Errorf(\"linode subnets %q and %q normalize to the same label %q\", previousSubnetName, subnetName, normalizedSubnetName)\n\t\t}\n\t\tseenSubnetNames[normalizedSubnetName] = subnetName\n\n\t\tif region == \"\" {\n\t\t\tregion = subnet.Region\n\t\t\tcontinue\n\t\t}\n\t\tif subnet.Region != region {\n\t\t\treturn fmt.Errorf(\"linode subnets must all use the same region; found %q and %q\", region, subnet.Region)\n\t\t}\n\t}\n\n\tname := linode.NormalizeLinodeLabel(b.ClusterName())\n\tdescription := fmt.Sprintf(\"kOps VPC for %s\", b.ClusterName())\n\tvpcTask := &linodetasks.VPC{\n\t\tName:        new(name),\n\t\tLifecycle:   b.Lifecycle,\n\t\tDescription: new(description),\n\t\tRegion:      new(region),\n\t}\n\tc.AddTask(vpcTask)\n\n\tfor _, subnet := range b.Cluster.Spec.Networking.Subnets {\n\t\tsubnetName := linode.NormalizeLinodeLabel(b.ClusterName() + \"-\" + subnet.Name)\n\t\tsubnetTask := &linodetasks.Subnet{\n\t\t\tName:      new(subnetName),\n\t\t\tLifecycle: b.Lifecycle,","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/linodemodel/network.go#L51-L87","documentation":"Fires while building the Linode network model: the first subnet encountered sets the region, and a later subnet in the cluster spec declared a different Region. Linode clusters are effectively single-region, so all subnets must use the same region.","triggerScenarios":"Thrown at pkg/model/linodemodel/network.go:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Edit the cluster spec so every subnet and instance group uses the same Linode region","Remove stray subnets left over from a region change before re-running `kops update`"],"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"}