Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance error code #757

Open
acumino opened this issue Nov 29, 2023 · 0 comments
Open

Enhance error code #757

acumino opened this issue Nov 29, 2023 · 0 comments
Labels
area/ops-productivity Operator productivity related (how to improve operations) kind/enhancement Enhancement, improvement, extension lifecycle/stale Nobody worked on this for 6 months (will further age) platform/azure Microsoft Azure platform/infrastructure

Comments

@acumino
Copy link
Member

acumino commented Nov 29, 2023

How to categorize this issue?

/area ops-productivity
/kind enhancement
/platform azure

What would you like to be added:
If Public IP used in a resource group is already referenced in another resource group, below error occurs. It should be categorized as user error mostly ErrorRetryableInfraDependencies.

* failed to update Public IP Association for NAT Gateway "shoot--test--test-nat-gateway" (Resource Group "shoot--test--test"): network.NatGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="PublicIPAddressInUse" Message="Resource /subscriptions/<omitted>/resourceGroups/shoot--test--test/providers/Microsoft.Network/natGateways/shoot--test--test-nat-gateway is referencing public IP address /subscriptions/<omitted>/resourceGroups/hc-dev-test-static-ip/providers/Microsoft.Network/publicIPAddresses/zonal-1-1-0-ebjt that is already allocated to resource /subscriptions/<omitted>/resourceGroups/shoot--test--test2-haas/providers/Microsoft.Network/natGateways/shoot--test--test2-haas-nat-gateway." Details=[]
  with azurerm_nat_gateway_public_ip_association.nat-ip-user-provided-association-0,
  on main.tf line 98, in resource "azurerm_nat_gateway_public_ip_association" "nat-ip-user-provided-association-0":
  98: resource "azurerm_nat_gateway_public_ip_association" "nat-ip-user-provided-association-0" {
* failed to update Public IP Association for NAT Gateway "shoot--test--test-nat-gateway" (Resource Group "shoot--test--test"): network.NatGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="PublicIPAddressInUse" Message="Resource /subscriptions/<omitted>/resourceGroups/shoot--test--test/providers/Microsoft.Network/natGateways/shoot--test--test-nat-gateway is referencing public IP address /subscriptions/<omitted>/resourceGroups/hc-dev-test-static-ip/providers/Microsoft.Network/publicIPAddresses/zonal-1-1-1-ebjt that is already allocated to resource /subscriptions/<omitted>/resourceGroups/shoot--test--test2-haas/providers/Microsoft.Network/natGateways/shoot--test--test2-haas-nat-gateway." Details=[]
  with azurerm_nat_gateway_public_ip_association.nat-ip-user-provided-association-1,
  on main.tf line 108, in resource "azurerm_nat_gateway_public_ip_association" "nat-ip-user-provided-association-1":
 108: resource "azurerm_nat_gateway_public_ip_association" "nat-ip-user-provided-association-1" {
* failed to update Public IP Association for NAT Gateway "shoot--test--test-nat-gateway" (Resource Group "shoot--test--test"): network.NatGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="PublicIPAddressInUse" Message="Resource /subscriptions/<omitted>/resourceGroups/shoot--test--test/providers/Microsoft.Network/natGateways/shoot--test--test-nat-gateway is referencing public IP address /subscriptions/<omitted>/resourceGroups/hc-dev-test-static-ip/providers/Microsoft.Network/publicIPAddresses/zonal-1-1-2-ebjt that is already allocated to resource /subscriptions/<omitted>/resourceGroups/shoot--test--test2-haas/providers/Microsoft.Network/natGateways/shoot--test--test2-haas-nat-gateway." Details=[]
  with azurerm_nat_gateway_public_ip_association.nat-ip-user-provided-association-2,
  on main.tf line 118, in resource "azurerm_nat_gateway_public_ip_association" "nat-ip-user-provided-association-2":
 118: resource "azurerm_nat_gateway_public_ip_association" "nat-ip-user-provided-association-2" {]

Why is this needed:

@gardener-robot gardener-robot added area/ops-productivity Operator productivity related (how to improve operations) kind/enhancement Enhancement, improvement, extension platform/azure Microsoft Azure platform/infrastructure labels Nov 29, 2023
@gardener-robot gardener-robot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ops-productivity Operator productivity related (how to improve operations) kind/enhancement Enhancement, improvement, extension lifecycle/stale Nobody worked on this for 6 months (will further age) platform/azure Microsoft Azure platform/infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants