You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please list the steps required to reproduce the issue, for example:
Create the above file
terraform apply
Edit the file, change the type from C2S to C2M
terraform apply
Expected Behavior
A new C2M server gets created
It is attached to the existing "test-data" volume
Reserved IP is associated with it
Both the original C2S server and its main volume get destroyed.
Actual Behavior
[...]
Error applying plan:
1 error(s) occurred:
* scaleway_volume_attachment.data (destroy): 1 error(s) occurred:
* scaleway_volume_attachment.data: timeout while waiting for state to become 'success' (timeout: 5m0s)
[...]
None of the resources (server, volumes, volume_attachments, ips) get destroyed.
I suspect the issue is with the server not being stopped before trying to detach the volume. (EDIT: maybe not, manually stopping the server does not help)
In this case the best we can probably do is to increase the timeout.
To change volumes on a scaleway server the server needs to be stopped, and to stop a server all data is transfered from the attached volumes. there are some cases in the scaleway community forum where this apparently took more than 24 hours.
From your logs I can see that terraform only waited 5 minutes which is far too short. I'll look into this.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
v0.9.5
Affected Resource(s)
Terraform Configuration Files
C2S
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform apply
Expected Behavior
Actual Behavior
None of the resources (server, volumes, volume_attachments, ips) get destroyed.
I suspect the issue is with the server not being stopped before trying to detach the volume. (EDIT: maybe not, manually stopping the server does not help)
Edit: logs
https://gist.github.com/polymeris/4b74548ee854709ff12a2ea185c1fbce
The text was updated successfully, but these errors were encountered: