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
When trying to detatch a volume from one instance and attaching it to another instance the terraform plan command does not detect the detach and the terraform apply command fails trying to attach the volume without detatching it first.
Terraform Version
$ terraform -v
Terraform v0.7.0
Affected Resource(s)
The issue affects these resources:
openstack_blockstorage_volume_v1
openstack_compute_instance_v2
Terraform Configuration Files
This issue occurs after modifying the configuration file.
The configuration file is a bit long so here it goes the gist
After applying this configuration move the volume object from the test_name instance to the test_name2 instance.
Still the configuration file is a bit long so here gors the gist
Debug Output
The issue is related to two commands. The terraform plan which does not detect the detachment of the volume from the first instance and the terraform apply which fails in attaching the volume to the new isntance
The debug output of the terraform plan command is in this gist
The debug output of the terraform apply command is in this gist
Expected Behavior
The volume should be detached from the first instance and attached to the second one.
Actual Behavior
The terraform plan command detects only a new attachment on the second instance
The terraform apply command fails with
Error applying plan:
1 error(s) occurred:
* openstack_compute_instance_v2.test_name_2: Expected HTTP response code [200] when accessing [POST http://xxx.xxx.xxx.xxx:8774/v2/c660af04fabe41f29787fa27ad3400e9/servers/1b823818-d2b6-4e58-ad6f-d2476507205a/os-volume_attachments], but got 400 instead
{"badRequest": {"message": "Invalid volume: volume 'f8871928-3712-4c7a-bd0b-5bb1e5488358' status must be 'available'. Currently in 'in-use'", "code": 400}}
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 23, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
When trying to detatch a volume from one instance and attaching it to another instance the
terraform plan
command does not detect the detach and theterraform apply
command fails trying to attach the volume without detatching it first.Terraform Version
Affected Resource(s)
The issue affects these resources:
Terraform Configuration Files
This issue occurs after modifying the configuration file.
The configuration file is a bit long so here it goes the gist
After applying this configuration move the
volume
object from thetest_name
instance to thetest_name2
instance.Still the configuration file is a bit long so here gors the gist
Debug Output
The issue is related to two commands. The
terraform plan
which does not detect the detachment of the volume from the first instance and theterraform apply
which fails in attaching the volume to the new isntanceThe debug output of the
terraform plan
command is in this gistThe debug output of the
terraform apply
command is in this gistExpected Behavior
The volume should be detached from the first instance and attached to the second one.
Actual Behavior
The
terraform plan
command detects only a new attachment on the second instanceThe
terraform apply
command fails withSteps to Reproduce
terraform apply
terraform plan
terraform apply
References
The text was updated successfully, but these errors were encountered: