Skip to content

Instantly share code, notes, and snippets.

@loderunner
Last active August 5, 2019 10:42
Show Gist options
  • Save loderunner/a662846be8cde938b58e9941d63cb1b2 to your computer and use it in GitHub Desktop.
Save loderunner/a662846be8cde938b58e9941d63cb1b2 to your computer and use it in GitHub Desktop.
Terraform Issue #3939 logs
$ terraform apply -var 'region=eastus' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Creating...
azurerm_resource_group.main: Creation complete after 1s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Creating...
azurerm_storage_account.blob_storage: Still creating... [10s elapsed]
azurerm_storage_account.blob_storage: Still creating... [20s elapsed]
azurerm_storage_account.blob_storage: Creation complete after 22s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
Error: Error creating Container "loderunnerbugtest" (Account "loderunnerbugteststorage" / Resource Group "loderunner-bugtest-resources"): containers.Client#Create: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.\nRequestId:54e1ad00-d01e-003e-1a77-4b1959000000\nTime:2019-08-05T10:19:29.8201076Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
on terraform.tf line 23, in resource "azurerm_storage_container" "blob_container":
23: resource "azurerm_storage_container" "blob_container" {
$ terraform apply -var 'region=eastus' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
Error: Error creating Container "loderunnerbugtest" (Account "loderunnerbugteststorage" / Resource Group "loderunner-bugtest-resources"): containers.Client#Create: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.\nRequestId:be8ceed4-401e-0003-1e77-4b6f42000000\nTime:2019-08-05T10:20:24.4028418Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
on terraform.tf line 23, in resource "azurerm_storage_container" "blob_container":
23: resource "azurerm_storage_container" "blob_container" {
$ terraform destroy -var 'region=eastus' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_account.blob_storage: Destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_account.blob_storage: Destruction complete after 3s
azurerm_resource_group.main: Destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 10s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 20s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 30s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 40s elapsed]
azurerm_resource_group.main: Destruction complete after 47s
Destroy complete! Resources: 2 destroyed.
$ terraform apply -var 'region=eastus' -var 'storage_kind=StorageV2' -auto-approve
azurerm_resource_group.main: Creating...
azurerm_resource_group.main: Creation complete after 1s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Creating...
azurerm_storage_account.blob_storage: Still creating... [10s elapsed]
azurerm_storage_account.blob_storage: Still creating... [20s elapsed]
azurerm_storage_account.blob_storage: Still creating... [30s elapsed]
azurerm_storage_account.blob_storage: Still creating... [40s elapsed]
...SNIP...
azurerm_storage_account.blob_storage: Still creating... [7m50s elapsed]
azurerm_storage_account.blob_storage: Still creating... [8m0s elapsed]
azurerm_storage_account.blob_storage: Still creating... [8m10s elapsed]
azurerm_storage_account.blob_storage: Still creating... [8m20s elapsed]
azurerm_storage_account.blob_storage: Creation complete after 8m29s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
Error: Error creating Container "loderunnerbugtest" (Account "loderunnerbugteststorage" / Resource Group "loderunner-bugtest-resources"): containers.Client#Create: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.\nRequestId:b7e31f87-f01e-0029-6879-4bb052000000\nTime:2019-08-05T10:32:07.9773075Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
on terraform.tf line 23, in resource "azurerm_storage_container" "blob_container":
23: resource "azurerm_storage_container" "blob_container" {
$ terraform apply -var 'region=eastus' -var 'storage_kind=StorageV2' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
Error: Error creating Container "loderunnerbugtest" (Account "loderunnerbugteststorage" / Resource Group "loderunner-bugtest-resources"): containers.Client#Create: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.\nRequestId:8800c860-801e-0033-4779-4bd18d000000\nTime:2019-08-05T10:32:52.4922658Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
on terraform.tf line 23, in resource "azurerm_storage_container" "blob_container":
23: resource "azurerm_storage_container" "blob_container" {
$ terraform destroy -var 'region=eastus' -var 'storage_kind=StorageV2' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
Error: Error reading queue properties for AzureRM Storage Account "loderunnerbugteststorage": queues.Client#SetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.\nRequestId:c8dca901-a003-00cf-0179-4bbcc7000000\nTime:2019-08-05T10:34:47.9055089Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
$ terraform apply -var 'region=francecentral' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Creating...
azurerm_resource_group.main: Creation complete after 1s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Creating...
azurerm_storage_account.blob_storage: Still creating... [10s elapsed]
azurerm_storage_account.blob_storage: Creation complete after 18s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
azurerm_storage_container.blob_container: Creation complete after 2s [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
Apply complete! Resources: 3 added, 0 changed, 0 destroyed.
$ terraform apply -var 'region=francecentral' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Refreshing state... [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
$ terraform destroy -var 'region=francecentral' -var 'storage_kind=BlobStorage' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Refreshing state... [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
azurerm_storage_container.blob_container: Destroying... [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
azurerm_storage_container.blob_container: Destruction complete after 1s
azurerm_storage_account.blob_storage: Destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_account.blob_storage: Destruction complete after 1s
azurerm_resource_group.main: Destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 10s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 20s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 30s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 40s elapsed]
azurerm_resource_group.main: Destruction complete after 45s
Destroy complete! Resources: 3 destroyed.
$ terraform apply -var 'region=francecentral' -var 'storage_kind=StorageV2' -auto-approve
azurerm_resource_group.main: Creating...
azurerm_resource_group.main: Creation complete after 1s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Creating...
azurerm_storage_account.blob_storage: Still creating... [10s elapsed]
azurerm_storage_account.blob_storage: Still creating... [20s elapsed]
azurerm_storage_account.blob_storage: Creation complete after 25s [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Creating...
azurerm_storage_container.blob_container: Creation complete after 0s [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
Apply complete! Resources: 3 added, 0 changed, 0 destroyed.
$ terraform apply -var 'region=francecentral' -var 'storage_kind=StorageV2' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
Error: Error reading queue properties for AzureRM Storage Account "loderunnerbugteststorage": queues.Client#SetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "\ufeff<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.\nRequestId:4f3b32b0-5003-0026-5976-4b6345000000\nTime:2019-08-05T10:16:30.5046053Z</Message></Error>" error: invalid character 'ï' looking for beginning of value
$ terraform destroy -var 'region=francecentral' -var 'storage_kind=StorageV2' -auto-approve
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_storage_account.blob_storage: Refreshing state... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_container.blob_container: Refreshing state... [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
azurerm_storage_container.blob_container: Destroying... [id=https://loderunnerbugteststorage.blob.core.windows.net/loderunnerbugtest]
azurerm_storage_container.blob_container: Destruction complete after 0s
azurerm_storage_account.blob_storage: Destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources/providers/Microsoft.Storage/storageAccounts/loderunnerbugteststorage]
azurerm_storage_account.blob_storage: Destruction complete after 1s
azurerm_resource_group.main: Destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-2468562782f2/resourceGroups/loderunner-bugtest-resources]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 10s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 20s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 30s elapsed]
azurerm_resource_group.main: Still destroying... [id=/subscriptions/ecadb7db-4c02-47b5-9d5b-...rceGroups/loderunner-bugtest-resources, 40s elapsed]
azurerm_resource_group.main: Destruction complete after 45s
Destroy complete! Resources: 3 destroyed.
provider "azurerm" {
version = "~> 1.32.1"
}
variable "region" {}
variable "storage_kind" {}
resource "azurerm_resource_group" "main" {
name = "loderunner-bugtest-resources"
location = "${var.region}"
}
resource "azurerm_storage_account" "blob_storage" {
name = "loderunnerbugteststorage"
resource_group_name = "${azurerm_resource_group.main.name}"
location = "${azurerm_resource_group.main.location}"
account_kind = "${var.storage_kind}"
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "blob_container" {
name = "loderunnerbugtest"
storage_account_name = "${azurerm_storage_account.blob_storage.name}"
container_access_type = "blob"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment