kubernetes/kops · error

error listing tags: %v

Error message

error listing tags: %v

What it means

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.

Source

Thrown at upup/pkg/fi/cloudup/awstasks/elastic_ip.go:111

				klog.V(2).Infof("Found ElasticIP AllocationID %q via NatGateway", *allocationID)
			}
		}
	}

	// Find via tag on subnet
	// TODO: Deprecated, because doesn't round-trip with terraform
	if allocationID == nil && publicIP == nil && e.TagOnSubnet != nil && e.TagOnSubnet.ID != nil {
		var filters []ec2types.Filter
		filters = append(filters, awsup.NewEC2Filter("key", "AssociatedElasticIp"))
		filters = append(filters, awsup.NewEC2Filter("resource-id", *e.TagOnSubnet.ID))

		request := &ec2.DescribeTagsInput{
			Filters: filters,
		}

		response, err := cloud.EC2().DescribeTags(ctx, request)
		if err != nil {
			return nil, fmt.Errorf("error listing tags: %v", err)
		}

		if response == nil || len(response.Tags) == 0 {
			return nil, nil
		}

		if len(response.Tags) != 1 {
			return nil, fmt.Errorf("found multiple tags for: %v", e)
		}
		t := response.Tags[0]
		publicIP = t.Value
		klog.V(2).Infof("Found public IP via tag: %v", *publicIP)
	}

	if publicIP != nil || allocationID != nil {
		request := &ec2.DescribeAddressesInput{}
		if allocationID != nil {
			request.AllocationIds = []string{fi.ValueOf(allocationID)}

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Check EC2 DescribeTags permissions and network access, then retry
  2. Prefer AssociatedNatGatewayRouteTable or an explicit allocationID over the deprecated TagOnSubnet mechanism
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/awstasks/elastic_ip.go:111 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05). Data as JSON: /api/errors/b68fde6d8d2a6cb9. Report an issue: GitHub.