You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my agent is hosted on a VMSS VMs, using Kubernetes or otherwise, I would expect the agent to operate normally.
Current behavior
Agent encounters the following error
2025-01-27T19:09:21.164Z DEBU Initializing instance metadata client. cloud/clients.go:1000
2025-01-27T19:09:21.251Z ERRO [DB:SERVIC] Failed to handle connection. error:[
ERROR REPORT:
Original Error: *exported.ResponseError GET https://management.azure.com/subscriptions/obfuscated-subscription-uuid/resourceGroups/example-resource-group/providers/Microsoft.Compute/virtualMachines/6
--------------------------------------------------------------------------------
RESPONSE 404: 404 Not Found
ERROR CODE: ResourceNotFound
--------------------------------------------------------------------------------
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Compute/virtualMachines/6' under resource group 'example-resource-group' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"
}
}
--------------------------------------------------------------------------------
Stack Trace:
github.com/gravitational/teleport/lib/cloud/azure/vm.go:141 github.com/gravitational/teleport/lib/cloud/azure.(*vmClient).Get
github.com/gravitational/teleport/lib/srv/db/common/auth.go:1094 github.com/gravitational/teleport/lib/srv/db/common.(*dbAuth).getCurrentAzureVM
github.com/gravitational/teleport/lib/utils/fncache.go:241 github.com/gravitational/teleport/lib/utils.FnCacheGetWithTTL[...].func1
github.com/gravitational/teleport/lib/utils/fncache.go:313 github.com/gravitational/teleport/lib/utils.(*FnCache).get.func1
runtime/asm_amd64.s:1700 runtime.goexit
User Message: GET https://management.azure.com/subscriptions/obfuscated-subscription-uuid/resourceGroups/example-resource-group/providers/Microsoft.Compute/virtualMachines/6
--------------------------------------------------------------------------------
RESPONSE 404: 404 Not Found
ERROR CODE: ResourceNotFound
--------------------------------------------------------------------------------
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Compute/virtualMachines/6' under resource group 'example-resource-group' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"
}
}
--------------------------------------------------------------------------------
] addr:111.111.111.111:56285 db/server.go:1034
@zmb3 This issue is different. The problem is that we're using the wrong resource ID to fetch the VMSS identities (used to connect to the database). This is due to the metadata field we use for regular VMs returning the wrong resource ID when we request from a VMSS.
The other issue is more related to the fact the VMSS is not returned on the list of VMs API used by the VM discovery flow.
Expected behavior
If my agent is hosted on a VMSS VMs, using Kubernetes or otherwise, I would expect the agent to operate normally.
Current behavior
Agent encounters the following error
The resource target is wrong:
It should be:
Impacted versions
Verified on 17.x, but this probably impacts all versions at the time of writing this
Recreation steps
Configure a database agent on a VMSS VMs in Azure
Relevant Teleport config example:
Workaround
Use a regular Azure VM until a fix is available
The text was updated successfully, but these errors were encountered: