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

BadGatewayConnection when using the action #8

Closed
argamanza opened this issue Jan 5, 2020 · 2 comments
Closed

BadGatewayConnection when using the action #8

argamanza opened this issue Jan 5, 2020 · 2 comments
Assignees

Comments

@argamanza
Copy link

Expected Behavior

The action should pass successfully and the workflow should start using the K8S context i choose as its Kubernetes context.

Actual Behavior

The actions hangs for few minutes and then fails with the message:

##[error]{"error":{"code":"BadGatewayConnection","message":"The network connectivity issue encountered for 'Microsoft.ContainerService'; cannot fulfill the request."}}
##[error]Node run failed with exit code 1

2020-01-05_16-20

Steps to Reproduce the Problem

  1. Use aks-set-context action as follows:
# Set the target AKS cluster
- name: Set k8s context
  uses: Azure/aks-set-context@v1
  with:
    creds: "${{ env.azure_service_principal }}"
    resource-group: abcd-qa
    cluster-name: abcd-qa-k8s
  1. Trigger the workflow.

Notes

  1. The same workflow worked just minutes before this issue began to occur - same workflow with exactly the same YAML and exactly the same credentials etc.
    Nothing was changed neither in the workflow nor the environment!
  2. I tried recreating a service principal using az ad sp create-for-rbac --sdk-auth and changed the workflow to use that, it didn't help.
@thesattiraju
Copy link
Contributor

Is the value of your azure_service_principal just your service principle ID? or is it the output i.e. the JSON of that command?

@thesattiraju
Copy link
Contributor

Closing this. Feel free to open this issue if you're still facing that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants