{"record":{"id":"b68fde6d8d2a6cb9","repo":"kubernetes/kops","slug":"error-listing-tags-v","errorCode":null,"errorMessage":"error listing tags: %v","messagePattern":"error listing tags: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/elastic_ip.go","lineNumber":111,"sourceCode":"\t\t\t\tklog.V(2).Infof(\"Found ElasticIP AllocationID %q via NatGateway\", *allocationID)\n\t\t\t}\n\t\t}\n\t}\n\n\t// Find via tag on subnet\n\t// TODO: Deprecated, because doesn't round-trip with terraform\n\tif allocationID == nil && publicIP == nil && e.TagOnSubnet != nil && e.TagOnSubnet.ID != nil {\n\t\tvar filters []ec2types.Filter\n\t\tfilters = append(filters, awsup.NewEC2Filter(\"key\", \"AssociatedElasticIp\"))\n\t\tfilters = append(filters, awsup.NewEC2Filter(\"resource-id\", *e.TagOnSubnet.ID))\n\n\t\trequest := &ec2.DescribeTagsInput{\n\t\t\tFilters: filters,\n\t\t}\n\n\t\tresponse, err := cloud.EC2().DescribeTags(ctx, request)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error listing tags: %v\", err)\n\t\t}\n\n\t\tif response == nil || len(response.Tags) == 0 {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\tif len(response.Tags) != 1 {\n\t\t\treturn nil, fmt.Errorf(\"found multiple tags for: %v\", e)\n\t\t}\n\t\tt := response.Tags[0]\n\t\tpublicIP = t.Value\n\t\tklog.V(2).Infof(\"Found public IP via tag: %v\", *publicIP)\n\t}\n\n\tif publicIP != nil || allocationID != nil {\n\t\trequest := &ec2.DescribeAddressesInput{}\n\t\tif allocationID != nil {\n\t\t\trequest.AllocationIds = []string{fi.ValueOf(allocationID)}","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/elastic_ip.go#L93-L129","documentation":"DescribeTags failed while performing the deprecated TagOnSubnet ElasticIP lookup (subnet carrying an AssociatedElasticIp tag); this is a raw AWS EC2 API error, not a lookup miss.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/elastic_ip.go:111 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check EC2 DescribeTags permissions and network access, then retry","Prefer AssociatedNatGatewayRouteTable or an explicit allocationID over the deprecated TagOnSubnet mechanism"],"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"}