Azure-Samples / Azure-Samples/azure-sdk-for-go-samples

Error when running AKS cluster creation test

Open
#246 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
309
Forks
187
PR merge metrics
No merged PRs in 30d

Description

Thank you for your contribution and feedback! Help us review faster by providing the following information:

This issue is a: (mark with an x)

  • bug report
  • request for new sample
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

None of the above. This is a new-user issue.

Steps to reproduce:

  1. Git clone the repo
  2. Setup the needed AZURE env variables
  3. Run the AKS cluster creation test

Errors and log messages:

$ go test -v ./compute/
=== RUN ExampleCreateAKS
2019/03/05 16:12:59 creating resource group 'azure-samples-go-CreateAKS-yImO0' on location: westus2
2019/03/05 16:15:09 cannot get the AKS cluster create or update future response: Code="NotFound" Message="resources.DeploymentsClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="DeploymentNotFound" Message="Deployment '018a8773-902c-4912-941f-3173d2dd0ca7' could not be found.""
2019/03/05 16:15:09 created AKS cluster
2019/03/05 16:15:09 cannot get AKS managed cluster gosdk-aks-w20XVKVUAI from resource group azure-go-samples: containerservice.ManagedClustersClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceGroupNotFound" Message="Resource group 'azure-go-samples' could not be found."
2019/03/05 16:15:09 retrieved AKS cluster
2019/03/05 16:15:09 containerservice.ManagedClustersClient#Delete: Failure sending request: StatusCode=404 -- Original Error: Code="ResourceGroupNotFound" Message="Resource group 'azure-go-samples' could not be found."
2019/03/05 16:15:09 deleted AKS cluster
2019/03/05 16:15:09 deleting resources
--- FAIL: ExampleCreateAKS (129.93s)

Expected behavior:

An AKS cluster will be created followed by a deletion of the same cluster.

OS and Go versions:

$ go version
go version go1.11.5 darwin/amd64

Mac OS version 10.13.6

Further info:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running go test -v ./compute/ and inspect the ExampleCreateAKS test referenced in the failure. Trace the AKS creation, retrieval, and deletion steps and compare them with the logged Azure 404 errors; done means the example creates and deletes the same cluster successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, kubernetes
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.