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

azurerm_storage_share refresh state fails 'with context deadline exceeded' #12447

Closed
doherty100 opened this issue Jul 1, 2021 · 2 comments
Closed

Comments

@doherty100
Copy link

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 (and AzureRM Provider) Version

Terraform v1.0.1
on linux_amd64

  • provider registry.terraform.io/hashicorp/azurerm v2.65.0
  • provider registry.terraform.io/hashicorp/random v3.1.0

Affected Resource(s)

  • azurerm_storage_share
  • azurerm_private_endpoint

Terraform Configuration Files

resource "azurerm_storage_share" "storage_share_01" {
  name                 = "fs-${random_id.random_id_storage_share_01_name.hex}-001"
  storage_account_name = azurerm_storage_account.storage_account_01.name
  quota                = var.storage_share_quota_gb
}

resource "azurerm_private_endpoint" "storage_account_01_private_endpoint_file" {
  name                = "pend-${random_id.random_id_storage_account_01_private_endpoint_file_name.hex}-001"
  resource_group_name = azurerm_resource_group.resource_group_01.name
  location            = azurerm_resource_group.resource_group_01.location
  subnet_id           = azurerm_subnet.vnet_shared_01_subnets["PrivateLink"].id
  tags                = var.tags

  private_service_connection {
    name                           = "azure_files"
    private_connection_resource_id = azurerm_storage_account.storage_account_01.id
    is_manual_connection           = false
    subresource_names              = ["file"]
  }
}

Debug Output

https://gist.github.com/doherty100/a0efbf227f6bc93a488b8136a3ff6f93

Panic Output

Expected Behaviour

Terraform refresh should succeed.

Actual Behaviour

│ Error: shares.Client#GetProperties: Failure sending request: StatusCode=0 -- Original Error: context deadline exceeded

│ with azurerm_storage_share.storage_share_01,
│ on 40-storage.tf line 87, in resource "azurerm_storage_share" "storage_share_01":
│ 87: resource "azurerm_storage_share" "storage_share_01" {

Steps to Reproduce

  1. terraform apply
  2. terraform refresh

Important Factoids

  • Private endpoints are configured for Azure Files endpoints associated with this share.
  • This is new behavior, this same configuration worked with previous releases of azurerm provider.

References

@tombuildsstuff
Copy link
Contributor

This'll be fixed by #2977 - please subscribe to that issue for updates

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2021
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

4 participants