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

ibm_is_snapshot - Unable to set timeouts #2989

Closed
DanielFarrarCO opened this issue Aug 16, 2021 · 3 comments · Fixed by #2991
Closed

ibm_is_snapshot - Unable to set timeouts #2989

DanielFarrarCO opened this issue Aug 16, 2021 · 3 comments · Fixed by #2991
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@DanielFarrarCO
Copy link

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

Terraform v1.0.4 - IBM Cloud version 1.29.0

Affected Resource(s)

  • ibm_is_snapshot

Terraform Configuration Files

Reference:
https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_snapshot

Basic Snapshot Create:
resource "ibm_is_snapshot" "testacc_snapshot" {
name = "testsnapshot"
source_volume = ibm_is_instance.testacc_instance.volume_attachments[0].volume_id
}

Debug Output

Error: timeout while waiting for state to become 'stable, failed' (last state: 'pending', timeout: 10m0s)

Expected Behavior

Snapshot create process should be able to monitor during length of creation.

Other modules allow you to edit the default timeouts for create/update/delete but this one has not yet implemented.

Actual Behavior

Disks with a large amount of data to sync which take more than 10 minutes to complete are unable to exceed the default 10 minute timeout.

Steps to Reproduce

Create disk with large amount of data, take snapshot with:

  1. terraform apply
@astha-jain
Copy link
Contributor

@ujjwal-ibm Can you please take a look?

@uibm
Copy link
Collaborator

uibm commented Aug 17, 2021

@DanielFarrarCO

Snapshot do support timeouts, please use the timeouts attribute as done in other resources.

  timeouts {
    create = "15m"
    delete = "15m"
  }

Added a documentation update

@kavya498 kavya498 added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Aug 17, 2021
@DanielFarrarCO
Copy link
Author

Thanks for the documentation update! I'll pass this along to the Ansible team so that timeouts can be added to the Ansible modules as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
4 participants