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

Allow updating additional_capabilities #8015

Merged

Conversation

NilsBusche
Copy link
Contributor

@NilsBusche NilsBusche commented Aug 5, 2020

Add update for additional_capabilities.

Allow updating ultra_ssd_enabled without recreation as mentioned in #7556

Fixes #7556

@NilsBusche NilsBusche force-pushed the feature/ultra-ssd-enable-online2 branch 3 times, most recently from 6a1075e to eaf0376 Compare August 5, 2020 09:58
@ghost ghost added size/L and removed size/M labels Aug 5, 2020
@NilsBusche NilsBusche force-pushed the feature/ultra-ssd-enable-online2 branch from eaf0376 to 947abc3 Compare August 5, 2020 10:40
@ghost ghost added size/XL and removed size/L labels Aug 5, 2020
@NilsBusche NilsBusche force-pushed the feature/ultra-ssd-enable-online2 branch from 947abc3 to c8456d9 Compare August 5, 2020 11:10
@NilsBusche NilsBusche marked this pull request as ready for review August 5, 2020 11:43
Allow updating additional_capabilities.
Allow changing ultra_ssd_enabled without recreation, only deallocation.
@NilsBusche NilsBusche force-pushed the feature/ultra-ssd-enable-online2 branch from c8456d9 to 4e2f627 Compare August 11, 2020 07:15
@NilsBusche NilsBusche marked this pull request as draft August 11, 2020 07:40
@NilsBusche NilsBusche force-pushed the feature/ultra-ssd-enable-online2 branch from 4e2f627 to bd1e874 Compare August 11, 2020 07:48
@NilsBusche NilsBusche marked this pull request as ready for review August 11, 2020 09:09
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aside from a couple of minor test bugs this LGTM - thanks for this @NilsBusche

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

called out all of the references to be explicit - but if we can fix these test bugs up then this otherwise LGTM 👍

@NilsBusche
Copy link
Contributor Author

called out all of the references to be explicit - but if we can fix these test bugs up then this otherwise LGTM 👍

Thanks for this advice. All occurrences should be fixed now.

@ghost ghost removed the waiting-response label Aug 11, 2020
@tombuildsstuff tombuildsstuff added this to the v2.25.0 milestone Aug 24, 2020
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for pushing those changes @NilsBusche

@tombuildsstuff
Copy link
Contributor

hey @NilsBusche

Apologies for the delayed re-review here!

I've run the tests for this but it appears the test configurations need to be updated to be deployed into a Zone so that UltraSSD can be used?

Error: Error creating Linux Virtual Machine "acctestVM-200824104601074216" (Resource Group "acctestRG-200824104601074216"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="UltraSSD can be used only with Virtual Machine in an Availability Zone." Target="additionalCapabilities.ultraSSDEnabled"

Thanks!

@NilsBusche
Copy link
Contributor Author

hey @NilsBusche

Apologies for the delayed re-review here!

I've run the tests for this but it appears the test configurations need to be updated to be deployed into a Zone so that UltraSSD can be used?

Error: Error creating Linux Virtual Machine "acctestVM-200824104601074216" (Resource Group "acctestRG-200824104601074216"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="UltraSSD can be used only with Virtual Machine in an Availability Zone." Target="additionalCapabilities.ultraSSDEnabled"

Thanks!

Hi @tombuildsstuff, yes, this is correct. I will add this later.

But why has the automatic Travis CI been run successfully?

@ghost ghost removed the waiting-response label Aug 24, 2020
@tombuildsstuff
Copy link
Contributor

@NilsBusche Travis only runs the Unit Tests (since these are quick) the Acceptance Tests on the other hand are only run in a separate CI system which since they take longer (and cost money, so we trigger these manually)

@NilsBusche NilsBusche force-pushed the feature/ultra-ssd-enable-online2 branch from 7a32b86 to bc570de Compare August 25, 2020 08:43
@NilsBusche
Copy link
Contributor Author

@NilsBusche Travis only runs the Unit Tests (since these are quick) the Acceptance Tests on the other hand are only run in a separate CI system which since they take longer (and cost money, so we trigger these manually)

Hi @tombuildsstuff, thanks for this information. I added the zone attribute. Hopefully now everything is fine.

@ghost ghost removed the waiting-response label Aug 25, 2020
@tombuildsstuff
Copy link
Contributor

tombuildsstuff commented Aug 26, 2020

Tests look good - thanks for pushing those changes @NilsBusche

@tombuildsstuff tombuildsstuff merged commit 1517bf4 into hashicorp:master Aug 26, 2020
tombuildsstuff added a commit that referenced this pull request Aug 26, 2020
@NilsBusche NilsBusche deleted the feature/ultra-ssd-enable-online2 branch August 27, 2020 06:49
@ghost
Copy link

ghost commented Aug 27, 2020

This has been released in version 2.25.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.25.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Sep 26, 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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 26, 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.

Changing ultra_ssd_enabled should not force recreation
2 participants