-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Resource - azurerm_hpc_cache_blob_nfs_target
#11671
Conversation
azurerm_hpc_blob_nfs_target
azurerm_hpc_cache_blob_nfs_target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @magodo - overall this looks good aside from a couple comments. running the tests i'm seeing failures thou:
------- Stdout: -------
=== RUN TestAccHPCCacheBlobNFSTarget_accessPolicy
=== PAUSE TestAccHPCCacheBlobNFSTarget_accessPolicy
=== CONT TestAccHPCCacheBlobNFSTarget_accessPolicy
testing.go:620: Step 1/8 error: Error running apply: exit status 1
Error: Error waiting for HPC Cache "acctest-HPCC-210519233234713607" (Resource Group "acctestRG-storage-210519233234713607") to finish provisioning: Code="CreateResourceTimeout" Message="Timed out creating Azure resources. Please delete the cache and try again."
with azurerm_hpc_cache.test,
on terraform_plugin_test.tf line 134, in resource "azurerm_hpc_cache" "test":
134: resource "azurerm_hpc_cache" "test" {
testing_new.go:21: WARNING: destroy failed, so remote objects may still exist and be subject to billing
testing_new.go:21: failed to destroy: exit status 1
Error: deleting Subnet: (Name "acctestsub-210519233234713607" / Virtual Network Name "acctest-VN-210519233234713607" / Resource Group "acctestRG-storage-210519233234713607"): network.SubnetsClient#Delete: Failure sending request: StatusCode=0 -- Original Error: Code="InUseSubnetCannotBeDeleted" Message="Subnet acctestsub-210519233234713607 is in use by /subscriptions/*******/resourceGroups/ACCTESTRG-STORAGE-210519233234713607/providers/Microsoft.Network/networkInterfaces/prod-8ab244be-172b-4ee1-84ad-ca72a7c1562e-cluster-nic-0/ipConfigurations/primary and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet." Details=[]
------- Stdout: -------
=== RUN TestAccHPCCacheBlobNFSTarget_basic
=== PAUSE TestAccHPCCacheBlobNFSTarget_basic
=== CONT TestAccHPCCacheBlobNFSTarget_basic
testing.go:620: Step 1/2 error: Error running apply: exit status 1
Error: Error waiting for Storage Target: (Name "acctest-HPCCTGT-puzqr" / Cache Name "acctest-HPCC-210519233234668059" / Resource Group "acctestRG-storage-210519233234668059"): Code="AscInternalError" Message="Error encountered deploying the storage target: 'acctest-HPCCTGT-puzqr'."
with azurerm_hpc_cache_blob_nfs_target.test,
on terraform_plugin_test.tf line 144, in resource "azurerm_hpc_cache_blob_nfs_target" "test":
144: resource "azurerm_hpc_cache_blob_nfs_target" "test" {
--- FAIL: TestAccHPCCacheBlobNFSTarget_basic (1360.13s)
FAIL
------- Stderr: -------
2021/05/19 23:32:34 [DEBUG] not using binary driver name, it's no longer needed
2021/05/19 23:32:34 [DEBUG] not using binary driver name, it's no longer needed
------- Stdout: -------
=== RUN TestAccHPCCacheBlobNFSTarget_requiresImport
=== PAUSE TestAccHPCCacheBlobNFSTarget_requiresImport
=== CONT TestAccHPCCacheBlobNFSTarget_requiresImport
testing.go:620: Step 1/2 error: Error running apply: exit status 1
Error: Error creating Storage Target: (Name "acctest-HPCCTGT-rhfbg" / Cache Name "acctest-HPCC-210519235513184265" / Resource Group "acctestRG-storage-210519235513184265"): storagecache.StorageTargetsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidParameter" Message="Target storage account or container does not exist or hasn't sufficient permissions." Target="storageTarget.blobNfs.target"
with azurerm_hpc_cache_blob_nfs_target.test,
on terraform_plugin_test.tf line 144, in resource "azurerm_hpc_cache_blob_nfs_target" "test":
144: resource "azurerm_hpc_cache_blob_nfs_target" "test" {
--- FAIL: TestAccHPCCacheBlobNFSTarget_requiresImport (1353.34s)
FAIL
------- Stderr: -------
2021/05/19 23:55:12 [DEBUG] not using binary driver name, it's no longer needed
2021/05/19 23:55:13 [DEBUG] not using binary driver name, it's no longer needed
azurerm/internal/services/hpccache/hpc_cache_blob_nfs_target_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/hpccache/hpc_cache_blob_nfs_target_resource.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still have a test failure:
------- Stdout: -------
=== RUN TestAccHPCCacheBlobNFSTarget_requiresImport
=== PAUSE TestAccHPCCacheBlobNFSTarget_requiresImport
=== CONT TestAccHPCCacheBlobNFSTarget_requiresImport
testing.go:620: Step 1/2 error: Error running apply: exit status 1
Error: Error waiting for Storage Target: (Name "acctest-HPCCTGT-7gtxo" / Cache Name "acctest-HPCC-210601181157052404" / Resource Group "acctestRG-storage-210601181157052404"): Code="InternalExecutionError" Message="An internal execution error occurred."
with azurerm_hpc_cache_blob_nfs_target.test,
on terraform_plugin_test.tf line 115, in resource "azurerm_hpc_cache_blob_nfs_target" "test":
115: resource "azurerm_hpc_cache_blob_nfs_target" "test" {
--- FAIL: TestAccHPCCacheBlobNFSTarget_requiresImport (1740.02s)
FAIL
------- Stderr: -------
2021/06/01 18:11:56 [DEBUG] not using binary driver name, it's no longer needed
2021/06/01 18:11:56 [DEBUG] not using binary driver name, it's no longer needed
@katbyte I'm still discussing with the service team for this kind of random failures. I'm wondering whether we can merge this PR with these intermittent issue existing, since these are issues on service side. |
@magodo i've not been able to get a clean run in TC and it seems this is a constant failure now:
|
@katbyte The service team is still looking into these errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This functionality has been released in v2.65.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR implements a new HPC resource:
azurerm_hpc_cache_blob_nfs_target
. Note that due to the level of NFS support of storage account, the test can be only passed in limited regions (incl. west europe, eastus, etc.).Test Result