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

[BUG] AKS Arc agent connection fails with timeout (aad-proxy) #20

Closed
mitkox opened this issue Dec 13, 2022 · 6 comments
Closed

[BUG] AKS Arc agent connection fails with timeout (aad-proxy) #20

mitkox opened this issue Dec 13, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mitkox
Copy link

mitkox commented Dec 13, 2022

Describe the bug
The Arc agent for AKS is not connecting through a proxy. The Arc-connected machine agent is connected on the same machine and works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Configure proxy in the config file
  2. Connect-AideArc exits with an error when trying the connect the AKS Arc agent
    WARNING: Unable to fetch the Object ID of the Azure AD application used by Azure Arc service. Unable to enable the 'custom-locations' feature. Insufficient privileges to complete the operation.
    WARNING: Please check if the azure-arc namespace was deployed and run 'kubectl get pods -n azure-arc' to check if all the pods are in running state. A possible cause for pods stuck in pending state could be insufficient resources on the kubernetes cluster to onboard to arc.
    ERROR: Unable to install helm release: Error: timed out waiting for the condition Error: arc connect failed.
    False

Expected behavior
AKS Arc agent to connect through a proxy

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • AKS Edge Essentials Version 0.7.22335.1024
  • Kubernetes version 1.23.6
  • Windows Host OS (please complete the following information):
    • Edition: Windows 10 Enterprise
    • Version: 19044
    • Virtual Machine: PC

Additional context
The helm or the Arc agent for AKS EE is not reading the proxy configuration

@mitkox mitkox added the bug Something isn't working label Dec 13, 2022
@parameshbabu
Copy link
Collaborator

@parameshbabu
Copy link
Collaborator

Azure/aks-engine#679

@parameshbabu parameshbabu self-assigned this Dec 13, 2022
@parameshbabu
Copy link
Collaborator

The issue is not related to proxy but timeout on aad-proxy.. updating title

@parameshbabu parameshbabu changed the title [BUG] AKS Arc agent can not connect through a proxy [BUG] AKS Arc agent connection fails with timeout (aad-proxy) Dec 13, 2022
@dnarh
Copy link

dnarh commented Jan 20, 2023

I get the same error when trying to connect a multi-node deployment to Arc. If I connect the deployment to Arc with only one node, before scaling out to the remaining nodes, which is then done after Arc connection has succeeded, it works.

@krdhruva
Copy link

krdhruva commented Feb 6, 2023

@dnarh, @mitkox can you pls confirm whether clusterconnect-agent and config-agent pods are running?
Additionally, can you follow this and share the output?
https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/diagnose-connection-issues#connections-with-a-proxy-server

If you are connecting cluster without proxy server, pls follow below troubleshooting steps.
https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/diagnose-connection-issues#connections-without-a-proxy

@parameshbabu
Copy link
Collaborator

Fixed with #70 and GA updates (Az ConnectedKubernetes 0.8.0 version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants