terraform-provider-ibm
terraform-provider-ibm copied to clipboard
failure on ibm_is_instance_group_manager destroy unhealthy wanted target healthy
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 other comments that do not add relevant new information or questions, 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 CLI and Terraform IBM Provider Version
Affected Resource(s)
- ibm_is_instance_group_manager
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.
Actual Behavior
ibm_is_instance_group_manager.instance_group_manager: Destroying... [id=r006-ac70b741-bb6b-4dad-8b32-36716cf4fd41/r006-6d226635-cd76-4dba-93e0-73e8c125de41]
ibm_is_instance_group_manager.instance_group_manager: Still destroying... [id=r006-ac70b741-bb6b-4dad-8b32-36716cf4fd...6-6d226635-cd76-4dba-93e0-73e8c125de41, 10s elapsed]
ibm_is_instance_group_manager.instance_group_manager: Still destroying... [id=r006-ac70b741-bb6b-4dad-8b32-36716cf4fd...6-6d226635-cd76-4dba-93e0-73e8c125de41, 20s elapsed]
╷
│ Error: unexpected state 'unhealthy', wanted target 'healthy'. last error: %!s(<nil>)
Few problems:
- Can not tell which resource failed
- unhealthy must be a temporary state - try again and it finishes successfully
Steps to Reproduce
I have not been able to come up with a cut down. You can follow the steps here:
In an IBM cloud shell or on your laptop
git clone https://github.com/IBM-Cloud/vsi-ci-cd
cd vsi-ci-cd
cp template.local.env local.env
vi local.env
tfswitch; # if needed
wget https://releases.hashicorp.com/packer/1.8.3/packer_1.8.3_linux_amd64.zip
unzip packer_1.8.3_linux_amd64.zip
PATH=`pwd`:$PATH
make
make clean; # failure happens on clean
-
terraform apply
Important Factoids
References
- #0000