application-gateway-kubernetes-ingress icon indicating copy to clipboard operation
application-gateway-kubernetes-ingress copied to clipboard

Error during AGIC install through Helm

Open ramesh569 opened this issue 9 months ago • 5 comments

Describe the bug i am trying to deploy AGIC through Helm but i am getting following error

Error getting route table '/subscriptions/xxxxxxx/resourceGroups/MC_rg-aksfl-poc_xxxxx_westeurope/providers/Microsoft.Network/routeTables/aks-agentpool-xxxx-routetable' (this is relevant for AKS clusters using 'Kubenet' network plugin): network.RouteTablesClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.Network/routeTables/aks-agentpool-27994938-routetable' under resource group 'MC_rg-xxxx-poc_akspocfl_westeurope' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"

To Reproduce Provided roles to UMI as below contributor role on AppGw level reader role on AppGw resource group Networkcontributor on appgw Vnet level

Ingress Controller details C:\Users\DubbaR\Desktop>kubectl logs ingress-azure-6574bffd46-tlmpj I0129 10:35:57.159564 1 utils.go:113] Using verbosity level 3 from environment variable APPGW_VERBOSITY_LEVEL I0129 10:35:57.189561 1 supported_apiversion.go:70] server version is: 1.30.7 I0129 10:35:57.199082 1 environment.go:294] KUBERNETES_WATCHNAMESPACE is not set. Watching all available namespaces. I0129 10:35:57.199103 1 main.go:118] Using User Agent Suffix='ingress-azure-6574bffd46-tlmpj' when communicating with ARM I0129 10:35:57.199203 1 main.go:137] Application Gateway Details: Subscription="7c7e46e9-d9dd-4caa-9421-d2e065966670" Resource Group="rg-hub-rcpflpoc" Name="appgwflpoc" I0129 10:35:57.199214 1 auth.go:58] Creating authorizer using Default Azure Credentials I0129 10:35:57.199225 1 httpserver.go:57] Starting API Server on :8123 I0129 10:35:57.199315 1 client.go:133] Getting Application Gateway configuration. I0129 10:35:57.711915 1 main.go:184] Ingress Controller will observe all namespaces. I0129 10:35:57.828717 1 client.go:250] Error getting route table '/subscriptions/xxxxxx/resourceGroups/MC_rg-aksfl-poc_akspocfl_europe/providers/Microsoft.Network/routeTables/aks-agentpool-27994938-routetable' (this is relevant for AKS clusters using 'Kubenet' network plugin): network.RouteTablesClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.Network/routeTables/aks-agentpool-27994938-routetable' under resource group 'MC_rg-aksfl-poc_akspocfl_westeurope' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"

ramesh569 avatar Jan 29 '25 10:01 ramesh569

@akshaysngupta do you have any idea by chance

ramesh569 avatar Jan 29 '25 10:01 ramesh569

Using Azure CNI but experiencing the same issue.

Gomolemo-Matsunyane avatar Feb 19 '25 12:02 Gomolemo-Matsunyane

@ramesh569 what version of AGIC are you deploying?

Gomolemo-Matsunyane avatar Feb 19 '25 12:02 Gomolemo-Matsunyane

i'm using agic 1.8.0 and getting same error. I'm not using azure CNI and getting same error. The only difference is my deploy is passing and everything works fine but kubernetes is logging out error on each agic apply on application gateway. Any idea how to turn off azure cni support so i don't get errors like this? ps: same helm configuration works without any errors on 1.7.7 version

karloefd95 avatar Apr 01 '25 13:04 karloefd95

I had to downgrade to version 1.7.3 to get it work. The issue is the version of the AGIC.

Gomolemo-Matsunyane avatar Apr 01 '25 18:04 Gomolemo-Matsunyane