{"record":{"id":"910235326f1162b0","repo":"kubernetes/kops","slug":"subnet-with-id-q-not-found","errorCode":null,"errorMessage":"subnet with id %q not found","messagePattern":"subnet with id %q not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/subnet.go","lineNumber":242,"sourceCode":"\n\treturn nil\n}\n\nfunc (_ *Subnet) ShouldCreate(a, e, changes *Subnet) (bool, error) {\n\tif fi.ValueOf(e.Shared) {\n\t\tchanges.ResourceBasedNaming = nil\n\t\treturn changes.Tags != nil, nil\n\t}\n\treturn true, nil\n}\n\nfunc (_ *Subnet) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Subnet) error {\n\tctx := context.TODO()\n\tshared := fi.ValueOf(e.Shared)\n\tif shared {\n\t\t// Verify the subnet was found\n\t\tif a == nil {\n\t\t\treturn fmt.Errorf(\"subnet with id %q not found\", fi.ValueOf(e.ID))\n\t\t}\n\t}\n\n\tif strings.HasPrefix(aws.ToString(e.IPv6CIDR), \"/\") {\n\t\tvpcIPv6CIDR := e.VPC.IPv6CIDR\n\t\tif vpcIPv6CIDR == nil {\n\t\t\tcidr, err := findVPCIPv6CIDR(t.Cloud, e.VPC.ID)\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tif cidr == nil {\n\t\t\t\treturn fi.NewTryAgainLaterError(\"waiting for the VPC IPv6 CIDR to be assigned\")\n\t\t\t}\n\t\t\tvpcIPv6CIDR = cidr\n\t\t}\n\n\t\tsubnetIPv6CIDR, err := calculateSubnetCIDR(vpcIPv6CIDR, e.IPv6CIDR)\n\t\tif err != nil {","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/subnet.go#L224-L260","documentation":"The subnet is marked shared (externally managed), so kOps will not create it, but the find phase returned no match — the referenced subnet ID does not exist or is not visible with the configured credentials/VPC.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/subnet.go:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the subnet id exists in the right account/VPC and region","Check the AWS credentials kOps uses can see the shared subnet","Fix the id in the cluster spec or stop marking the subnet as shared"],"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"}