hashicorp / terraform-provider-softlayer

Terraform SoftLayer provider. Please note: This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://www.terraform.io/docs/providers/softlayer/
Mozilla Public License 2.0
1 stars 7 forks source link

Make SoftLayer provider's timeouts configurable #5

Open hashibot opened 7 years ago

hashibot commented 7 years ago

This issue was originally opened by @bondyk as hashicorp/terraform#9113. It was migrated here as part of the provider split. The original body of the issue is below.


Hi,

Terraform doesn't have a possibility to configure timeout for SoftLayer provider. In case if SoftLayer takes more than 10 minutes to create a new virtual guest than terraform exits with timeout error. It would be great to be able to configure timeout values. Currently timeout values are hard coded here: https://github.com/hashicorp/terraform/blob/master/builtin/providers/softlayer/resource_softlayer_virtual_guest.go (WaitForUpgradeTransactionsToAppear, WaitForPublicIpAvailable, WaitForNoActiveTransactions)

Terraform Version

Terraform v0.7.4

Affected Resource(s)

softlayer_virtual_guest.tor01-dev-ybt-vm-3178-sa: Still creating... (9m50s elapsed)
softlayer_virtual_guest.tor01-dev-ybt-vm-3178-sa: Still creating... (10m0s elapsed)
Error applying plan:

1 error(s) occurred:

softlayer_virtual_guest.tor01-dev-ybt-vm-3178-sa: Error waiting for virtual machine (24570963) to become ready: timeout while waiting for state to become 'idle' (last state: 'active', timeout: 10m0s)

Expected Behavior

It should be possible to configure timeouts for SoftLayer provider:

Terraform exits with timeout error if time for waiting active transactions takes more than 10 minutes

Steps to Reproduce

Use SoftLayer provider to create a new virtual guest

References

albee-jhoney commented 6 years ago

The corresponding resource in the IBM Cloud provider: https://github.com/IBM-Cloud/terraform-provider-ibm is ibm_compute_vm_instance. And, it supports wait_time_minutes; refer to the documentation here: https://ibm-cloud.github.io/tf-ibm-docs/v0.8.0/r/compute_vm_instance.html