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

Fixes issue when we need to attach/detach data disks #778

Closed
wants to merge 44 commits into from

Conversation

VaijanathB
Copy link
Contributor

If we wanted to attach and detach a dataDisk after the VM creation, this was causing reprovisioning of the VM. By removing these two flags, now we can create new data disks and attach them to the existing vm.

Test cases run

  1. Create a VM. Then attach a Data Disk
  2. Detach a data Disk from the VM.
  3. Delete VM to delete the resources too.

This is a blocking issue for Sapient who are relying on Terraform for their third party tool.
The fix should fix this issue. #85

tombuildsstuff and others added 20 commits February 3, 2018 15:25
…property is set

This currently fails against the `master` branch:

```
$ acctests azurerm TestAccAzureRMPublicIpStatic_basic
=== RUN   TestAccAzureRMPublicIpStatic_basic
--- FAIL: TestAccAzureRMPublicIpStatic_basic (70.86s)
	testing.go:459: Step 0 error: Check failed: Check 2/3 error: azurerm_public_ip.test: Attribute 'ip_address' expected to be set
FAIL
exit status 1
FAIL	github.com/terraform-providers/terraform-provider-azurerm/azurerm	70.886s
```

But will pass once #772 is merged:

```
$ acctests azurerm TestAccAzureRMPublicIpStatic_basic
=== RUN   TestAccAzureRMPublicIpStatic_basic
--- PASS: TestAccAzureRMPublicIpStatic_basic (83.19s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	83.219s
```
Set ip address on public_ip regardless of dns settings.
This provides a way to work around #582 by using the Azure Portal
to attach disks.
`azurerm_public_ip`: Adding an acceptance test to check that the `ip_address` property is set
Fixes #785

Tests pass:

```
$ acctests azurerm TestAccDataSourceAzureRMStorageAccount_
=== RUN   TestAccDataSourceAzureRMStorageAccount_basic
--- PASS: TestAccDataSourceAzureRMStorageAccount_basic (86.65s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	86.675s
```
- Updated the highlight on the Virtual Network Data Source
- Added website documentation
…way-data-source

New Data Source: `azurerm_virtual_network_gateway`
- Update the azure-sdk-for-go to v12.4.0-beta since this is the version
  that introduced 2017-12-01/compute
- Change all 2017-03-30/compute import statements to 2017-12-01/compute
…account

New Data Source: `azurerm_storage_account`
```
$ acctests azurerm TestAccDataSourceAzureRMBuiltInRoleDefinition_reader
=== RUN   TestAccDataSourceAzureRMBuiltInRoleDefinition_reader
--- PASS: TestAccDataSourceAzureRMBuiltInRoleDefinition_reader (12.15s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	12.185s
```
Fixing the Role Definition Data Source test
Set ignore case function for diffs on the managed data disk ids.
tf-release-bot and others added 13 commits February 6, 2018 23:09
`azurerm_subnet` - add support for Service Endpoints
Update the compute API to 2017-12-01 / upgrading to Azure SDK v12.4
…-source-crash

Data Source: `azurerm_virtual_network` - Fixing a crash when the DhcpOptions aren't specified
```
$ acctests azurerm TestAccAzureRMContainerGroup_
=== RUN   TestAccAzureRMContainerGroup_linuxBasic
--- PASS: TestAccAzureRMContainerGroup_linuxBasic (65.69s)
=== RUN   TestAccAzureRMContainerGroup_linuxBasicUpdate
--- PASS: TestAccAzureRMContainerGroup_linuxBasicUpdate (67.84s)
=== RUN   TestAccAzureRMContainerGroup_linuxComplete
--- PASS: TestAccAzureRMContainerGroup_linuxComplete (70.88s)
=== RUN   TestAccAzureRMContainerGroup_windowsBasic
--- PASS: TestAccAzureRMContainerGroup_windowsBasic (70.94s)
=== RUN   TestAccAzureRMContainerGroup_windowsComplete
--- PASS: TestAccAzureRMContainerGroup_windowsComplete (59.38s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	334.768s
```
…up-tests

Container Group: updating to use a Windows image
Grammar fixes to index.html.markdown
Added an option to have 0 in disk_size_gb property of managed_disk
@tombuildsstuff
Copy link
Contributor

the VM tests pass:

screen shot 2018-02-08 at 09 49 08

@tombuildsstuff
Copy link
Contributor

@VaijanathB would you be able to rebase this PR?

@VaijanathB
Copy link
Contributor Author

This is being merged as part of "Fix reprovisioning of VM when we attach and detach data disk. #813"

@VaijanathB VaijanathB closed this Feb 8, 2018
@VaijanathB VaijanathB deleted the FixDataDiskAttachRecreate branch February 8, 2018 20:01
@ghost
Copy link

ghost commented Mar 30, 2020

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 👉 hashibot-feedback@hashicorp.com. Thanks!

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

Successfully merging this pull request may close these issues.

8 participants