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

Unable to create storage account #1833

Closed
landro opened this issue Aug 27, 2018 · 6 comments
Closed

Unable to create storage account #1833

landro opened this issue Aug 27, 2018 · 6 comments

Comments

@landro
Copy link

landro commented Aug 27, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Azure Provider version: 1.13.0

Affected Resource(s)

  • azurerm_storage_account

Terraform Configuration Files

provider "azurerm" {
  version = "1.13.0"
}

resource "azurerm_storage_account" "production" {
  name = "productionsignering"
  resource_group_name = "${azurerm_resource_group.production.name}"

  location = "${azurerm_resource_group.production.location}"

  account_kind = "BlobStorage"
  account_tier = "Standard"

  account_replication_type = "LRS" // RAGRS
  access_tier = "Hot"

  enable_blob_encryption = true
  enable_https_traffic_only = true
  account_encryption_source = "Microsoft.Storage"

  network_rules {
    virtual_network_subnet_ids = ["${azurerm_subnet.kubernetes.id}"]
  }

}

Debug Output

azurerm_storage_account.production: Still creating... (10s elapsed)
...
azurerm_storage_account.production: Still creating... (3m40s elapsed)
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: 2018/08/27 14:48:18 [DEBUG] AzureRM Request:
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: GET /subscriptions/UUID/providers/Microsoft.Storage/locations/westeurope/asyncoperations/UUID?monitor=true&api-version=2017-10-01 HTTP/1.1
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Host: management.azure.com
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: User-Agent: Go/go1.10.3 (amd64-darwin) go-autorest/v10.12.0 Azure-SDK-For-Go/v18.0.0 storage/2017-10-01;HashiCorp-Terraform-v0.11.3
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Authorization: Bearer asdfsadfasdfasdf
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Accept-Encoding: gzip
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4:
2018-08-27T14:48:18.329+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4:
2018-08-27T14:48:18.622+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: 2018/08/27 14:48:18 [DEBUG] AzureRM Response for https://management.azure.com/subscriptions/uuid/providers/Microsoft.Storage/locations/westeurope/asyncoperations/uuid?monitor=true&api-version=2017-10-01:
2018-08-27T14:48:18.622+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: HTTP/1.1 400 Bad Request
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Content-Length: 523
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Cache-Control: no-cache
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Content-Type: application/json
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Date: Mon, 27 Aug 2018 12:48:17 GMT
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Expires: -1
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Pragma: no-cache
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: Strict-Transport-Security: max-age=31536000; includeSubDomains
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: X-Content-Type-Options: nosniff
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: X-Ms-Correlation-Request-Id: uuid
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: X-Ms-Ratelimit-Remaining-Subscription-Reads: 11991
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: X-Ms-Request-Id: 24a57e7a-4ac3-4397-873e-f28a16d02134
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4: X-Ms-Routing-Request-Id: WESTEUROPE:20180827T124818Z:uuid
2018-08-27T14:48:18.623+0200 [DEBUG] plugin.terraform-provider-azurerm_v1.13.0_x4:
2018/08/27 14:48:18 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* azurerm_storage_account.production: Error waiting for Azure Storage Account "productionsignering" to be created: pollingTrackerPut#checkForErrors: the response did not contain a body: StatusCode=0
2018/08/27 14:48:18 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

Expected Behavior

Storage account should have been created

Actual Behavior

Storage account was not created.
To me, this looks like an issue with the API binding and possibly even with the API endpoint. First of all,
GET /subscriptions/UUID/providers/Microsoft.Storage/locations/westeurope/asyncoperations/UUID?monitor=true&api-version=2017-10-01 should not return a 400 bad request. In addition, the response returned does not contain a response body even if the Content-Length response header indicates otherwise.

Steps to Reproduce

  1. terraform apply

Important Factoids

Tried this in both North Europe and West Europe with same result.

@tombuildsstuff tombuildsstuff added bug service/storage upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR labels Aug 30, 2018
@WodansSon
Copy link
Collaborator

@landro I am unable to repro this issue, can you confirm this is still happening?

@WodansSon WodansSon added this to the Soon milestone Sep 11, 2018
@WodansSon WodansSon self-assigned this Sep 11, 2018
@tombuildsstuff
Copy link
Contributor

I may be wrong, but I have a feeling this may have been fixed by upgrading to v10.15.4 of github.com/Azure/go-autorest which was merged yesterday and will go out in the next release?

@landro
Copy link
Author

landro commented Sep 13, 2018

Upgraded to 1.14.0 - still getting the same result. Will try to build the plugin from master to see if that works better.

@landro
Copy link
Author

landro commented Sep 13, 2018

Tested with master. Works as expected. Thanks!

@landro landro closed this as completed Sep 13, 2018
@tombuildsstuff
Copy link
Contributor

@landro great thanks for confirming - that'll ship as a part of v1.15 soon ™️ :)

@tombuildsstuff tombuildsstuff removed upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR waiting-response labels Sep 13, 2018
@tombuildsstuff tombuildsstuff modified the milestones: Soon, Being Sorted Oct 25, 2018
@ghost
Copy link

ghost commented Mar 6, 2019

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 👉 [email protected]. Thanks!

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

No branches or pull requests

3 participants