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

[AS] autoscaling group with min > 0 can't be destroyed #529

Closed
outcatcher opened this issue Jun 26, 2020 · 0 comments
Closed

[AS] autoscaling group with min > 0 can't be destroyed #529

outcatcher opened this issue Jun 26, 2020 · 0 comments
Assignees
Milestone

Comments

@outcatcher
Copy link
Contributor

Terraform Version

0.12.27

Affected Resource(s)

  • opentelekomcloud_as_group_v1

Terraform Configuration Files

https://gist.github.com/outcatcher/ad0a98db81479060bc1123e69474a1dc

Expected Behavior

AS group deleted

Actual Behavior

Error: [DEBUG] Can't delete the ASGroup "d6a783f3-0171-4bc5-89a7-c3071f43b8ee": The instance number after the removal will less than the min number 1, modify the min number to zero first.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply -auto-approve
  2. terraform destroy -auto-approve
@outcatcher outcatcher added this to the v1.20.0 milestone Aug 31, 2020
@outcatcher outcatcher removed this from the v1.20.0 milestone Sep 11, 2020
@outcatcher outcatcher added this to the v1.22.1 milestone Nov 12, 2020
@lego963 lego963 self-assigned this Nov 24, 2020
otc-zuul bot pushed a commit that referenced this issue Nov 25, 2020
Fix issue with delete request in `as_group`

Summary of the Pull Request
Add update min_instance_number before delete
PR Checklist

 Refers to: #529
 Tests added/passed.
 Documentation updated.
 Schema updated.

Acceptance Steps Performed
=== RUN   TestAccASV1Group_basic
--- PASS: TestAccASV1Group_basic (96.70s)
=== RUN   TestAccASV1Group_RemoveWithSetMinNumber
--- PASS: TestAccASV1Group_RemoveWithSetMinNumber (150.02s)
PASS

Process finished with exit code 0

Reviewed-by: None <None>
Reviewed-by: Anton Sidelnikov <None>
Reviewed-by: Anton Kachurin <katchuring@gmail.com>
@lego963 lego963 closed this as completed Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants