zot24
8/4/2016 - 6:38 PM

debug_output_terraform_issue

module.resource_group.azurerm_resource_group.mod: Creating...
  location: "" => "westeurope"
  name:     "" => "testm1_resource_group_1"
module.resource_group.azurerm_resource_group.mod: Creation complete
module.public_ip.azurerm_public_ip.mod: Creating...
  fqdn:                         "" => "<computed>"
  ip_address:                   "" => "<computed>"
  location:                     "" => "westeurope"
  name:                         "" => "testm1_public_ip_1"
  public_ip_address_allocation: "" => "static"
  resource_group_name:          "" => "testm1_resource_group_1"
module.network_security_group.azurerm_network_security_group.mod: Creating...
  location:            "" => "westeurope"
  name:                "" => "testm1_network_security_group_1"
  resource_group_name: "" => "testm1_resource_group_1"
  security_rule.#:     "" => "<computed>"
module.virtual_network.azurerm_virtual_network.mod: Creating...
  address_space.#:     "" => "1"
  address_space.0:     "" => "10.30.0.0/16"
  location:            "" => "westeurope"
  name:                "" => "testm1_virtual_network_1"
  resource_group_name: "" => "testm1_resource_group_1"
  subnet.#:            "" => "<computed>"
module.storage_account.azurerm_storage_account.mod: Creating...
  account_type:             "" => "Standard_LRS"
  location:                 "" => "westeurope"
  name:                     "" => "testm1storageaccount1"
  primary_access_key:       "" => "<computed>"
  primary_blob_endpoint:    "" => "<computed>"
  primary_file_endpoint:    "" => "<computed>"
  primary_location:         "" => "<computed>"
  primary_queue_endpoint:   "" => "<computed>"
  primary_table_endpoint:   "" => "<computed>"
  resource_group_name:      "" => "testm1_resource_group_1"
  secondary_access_key:     "" => "<computed>"
  secondary_blob_endpoint:  "" => "<computed>"
  secondary_location:       "" => "<computed>"
  secondary_queue_endpoint: "" => "<computed>"
  secondary_table_endpoint: "" => "<computed>"
module.public_ip.azurerm_public_ip.mod: Creation complete
null_resource.ansible_hosts: Creating...
null_resource.ansible_hosts: Provisioning with 'local-exec'...
null_resource.ansible_hosts (local-exec): Executing: /bin/sh -c "echo '[testm1]\n13.95.235.232' > ../ansible/hosts"
null_resource.ansible_hosts: Creation complete
module.virtual_network.azurerm_virtual_network.mod: Creation complete
module.network_security_group.azurerm_network_security_group.mod: Still creating... (10s elapsed)
module.storage_account.azurerm_storage_account.mod: Still creating... (10s elapsed)
module.storage_account.azurerm_storage_account.mod: Creation complete
module.storage_container.azurerm_storage_container.mod: Creating...
  container_access_type: "" => "private"
  name:                  "" => "testm1storagecontainer1"
  properties.%:          "" => "<computed>"
  resource_group_name:   "" => "testm1_resource_group_1"
  storage_account_name:  "" => "testm1storageaccount1"
module.network_security_group.azurerm_network_security_group.mod: Still creating... (20s elapsed)
module.storage_container.azurerm_storage_container.mod: Creation complete
module.storage_blob.azurerm_storage_blob.mod: Creating...
  name:                   "" => "testm1-datadisk1.vhd"
  resource_group_name:    "" => "testm1_resource_group_1"
  size:                   "" => "100000000000"
  storage_account_name:   "" => "testm1storageaccount1"
  storage_container_name: "" => "testm1storagecontainer1"
  type:                   "" => "page"
  url:                    "" => "<computed>"
module.storage_blob.azurerm_storage_blob.mod: Creation complete
module.network_security_group.azurerm_network_security_group.mod: Still creating... (30s elapsed)
module.network_security_group.azurerm_network_security_group.mod: Creation complete
module.sr_web.azurerm_network_security_rule.http: Creating...
  access:                      "" => "Allow"
  destination_address_prefix:  "" => "*"
  destination_port_range:      "" => "80"
  direction:                   "" => "Inbound"
  name:                        "" => "http"
  network_security_group_name: "" => "testm1_network_security_group_1"
  priority:                    "" => "101"
  protocol:                    "" => "Tcp"
  resource_group_name:         "" => "testm1_resource_group_1"
  source_address_prefix:       "" => "*"
  source_port_range:           "" => "*"
module.sr_web.azurerm_network_security_rule.all: Creating...
  access:                      "" => "Allow"
  destination_address_prefix:  "" => "*"
  destination_port_range:      "" => "*"
  direction:                   "" => "Outbound"
  name:                        "" => "all"
  network_security_group_name: "" => "testm1_network_security_group_1"
  priority:                    "" => "100"
  protocol:                    "" => "Tcp"
  resource_group_name:         "" => "testm1_resource_group_1"
  source_address_prefix:       "" => "*"
  source_port_range:           "" => "*"
module.sr_web.azurerm_network_security_rule.https: Creating...
  access:                      "" => "Allow"
  destination_address_prefix:  "" => "*"
  destination_port_range:      "" => "443"
  direction:                   "" => "Inbound"
  name:                        "" => "https"
  network_security_group_name: "" => "testm1_network_security_group_1"
  priority:                    "" => "102"
  protocol:                    "" => "Tcp"
  resource_group_name:         "" => "testm1_resource_group_1"
  source_address_prefix:       "" => "*"
  source_port_range:           "" => "*"
module.subnet.azurerm_subnet.mod: Creating...
  address_prefix:            "" => "10.30.0.0/24"
  ip_configurations.#:       "" => "<computed>"
  name:                      "" => "testm1_subnet_1"
  network_security_group_id: "" => "/subscriptions/614e4618-7e10-4847-be48-a61acdbadff1/resourceGroups/testm1_resource_group_1/providers/Microsoft.Network/networkSecurityGroups/testm1_network_security_group_1"
  resource_group_name:       "" => "testm1_resource_group_1"
  route_table_id:            "" => "<computed>"
  virtual_network_name:      "" => "testm1_virtual_network_1"
module.sr_web.azurerm_network_security_rule.ssh: Creating...
  access:                      "" => "Allow"
  destination_address_prefix:  "" => "*"
  destination_port_range:      "" => "22"
  direction:                   "" => "Inbound"
  name:                        "" => "ssh"
  network_security_group_name: "" => "testm1_network_security_group_1"
  priority:                    "" => "103"
  protocol:                    "" => "Tcp"
  resource_group_name:         "" => "testm1_resource_group_1"
  source_address_prefix:       "" => "*"
  source_port_range:           "" => "*"
module.sr_registry.azurerm_network_security_rule.mod: Creating...
  access:                      "" => "Allow"
  destination_address_prefix:  "" => "*"
  destination_port_range:      "" => "5000"
  direction:                   "" => "Inbound"
  name:                        "" => "registry"
  network_security_group_name: "" => "testm1_network_security_group_1"
  priority:                    "" => "104"
  protocol:                    "" => "Tcp"
  resource_group_name:         "" => "testm1_resource_group_1"
  source_address_prefix:       "" => "*"
  source_port_range:           "" => "*"
module.sr_web.azurerm_network_security_rule.http: Still creating... (10s elapsed)
module.sr_web.azurerm_network_security_rule.all: Still creating... (10s elapsed)
module.sr_web.azurerm_network_security_rule.https: Still creating... (10s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (10s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (10s elapsed)
module.sr_web.azurerm_network_security_rule.http: Still creating... (20s elapsed)
module.sr_web.azurerm_network_security_rule.https: Still creating... (20s elapsed)
module.sr_web.azurerm_network_security_rule.all: Still creating... (20s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (20s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (20s elapsed)
module.sr_web.azurerm_network_security_rule.http: Creation complete
module.sr_web.azurerm_network_security_rule.all: Still creating... (30s elapsed)
module.sr_web.azurerm_network_security_rule.https: Still creating... (30s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (30s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (30s elapsed)
module.sr_web.azurerm_network_security_rule.https: Still creating... (40s elapsed)
module.sr_web.azurerm_network_security_rule.all: Still creating... (40s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (40s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (40s elapsed)
module.sr_web.azurerm_network_security_rule.all: Creation complete
module.sr_web.azurerm_network_security_rule.https: Still creating... (50s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (50s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (50s elapsed)
module.sr_web.azurerm_network_security_rule.https: Still creating... (1m0s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (1m0s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (1m0s elapsed)
module.sr_web.azurerm_network_security_rule.https: Creation complete
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (1m10s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (1m10s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Still creating... (1m20s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (1m20s elapsed)
module.sr_web.azurerm_network_security_rule.ssh: Creation complete
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (1m30s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Still creating... (1m40s elapsed)
module.sr_registry.azurerm_network_security_rule.mod: Creation complete
Error applying plan:

1 error(s) occurred:

* azurerm_subnet.mod: network.SubnetsClient#CreateOrUpdate: Failure responding to request: StatusCode=429 -- Original Error: autorest/azure: Service returned an error. Status=429 Code="RetryableError" Message="A retryable error occured." Details=[{"code":"ReferencedResourceNotProvisioned","message":"Cannot proceed with operation because resource /subscriptions/614e4618-7e10-4847-be48-a61acdbadff1/resourceGroups/testm1_resource_group_1/providers/Microsoft.Network/networkSecurityGroups/testm1_network_security_group_1 used by resource /subscriptions/614e4618-7e10-4847-be48-a61acdbadff1/resourceGroups/testm1_resource_group_1/providers/Microsoft.Network/virtualNetworks/testm1_virtual_network_1/subnets/testm1_subnet_1 is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSecurityRuleOperation."}]

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
make: *** [apply] Error 1