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

r/kubernetes_cluster: Only setting the VnetSubnetID when it's != "" #1158

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

tombuildsstuff
Copy link
Contributor

There was a breaking change in the Kubernetes API released recently which means the API will fail when submitting an empty string for a Subnet ID. This PR fixes this failing test, which started this morning:

Fixes:

------- Stdout: -------
=== RUN   TestAccAzureRMKubernetesCluster_basic
--- FAIL: TestAccAzureRMKubernetesCluster_basic (55.13s)
    testing.go:513: Step 0 error: Error applying: 1 error(s) occurred:

        * azurerm_kubernetes_cluster.test: 1 error(s) occurred:

        * azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '' at path 'properties.agentPoolProfiles[0].vnetSubnetID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."
FAIL

Passing test:

$ acctests azurerm TestAccAzureRMKubernetesCluster_basic
=== RUN   TestAccAzureRMKubernetesCluster_basic
--- PASS: TestAccAzureRMKubernetesCluster_basic (1713.63s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	1713.661s

Fixes:

```
------- Stdout: -------
=== RUN   TestAccAzureRMKubernetesCluster_basic
--- FAIL: TestAccAzureRMKubernetesCluster_basic (55.13s)
    testing.go:513: Step 0 error: Error applying: 1 error(s) occurred:

        * azurerm_kubernetes_cluster.test: 1 error(s) occurred:

        * azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '' at path 'properties.agentPoolProfiles[0].vnetSubnetID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."
FAIL
```

Passing test:

```
$ acctests azurerm TestAccAzureRMKubernetesCluster_basic
=== RUN   TestAccAzureRMKubernetesCluster_basic
--- PASS: TestAccAzureRMKubernetesCluster_basic (1713.63s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	1713.661s
```
@tombuildsstuff
Copy link
Contributor Author

Fixes #1160

@tombuildsstuff
Copy link
Contributor Author

Ignoring some AKS capacity issues - the tests pass:

screen shot 2018-04-24 at 21 50 05

@tombuildsstuff tombuildsstuff merged commit 7f993c9 into master Apr 24, 2018
@tombuildsstuff tombuildsstuff deleted the aks-agentpool-vnet branch April 24, 2018 19:50
tombuildsstuff added a commit that referenced this pull request Apr 24, 2018
@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants