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
name: Bug report
about: adding a block_device_mappings forces replacement even on non-root volumes
labels: bug, new
Hello,
I have an issue with block_device_mappings which is whenever I try to add or remove a non-root block_device from the list terraform tries to recreate the machine.
Terraform Version
OpenTofu v1.9.0
on linux_amd64
+ provider registry.opentofu.org/outscale/outscale v1.0.0
Terraform Configuration Files
resource"outscale_vm""xxx" {
image_id="ami-xxxx"vm_type="tinav5.c1r1p2"subnet_id=xxx
private_ips=[xxx]
block_device_mappings {
device_name="/dev/sda1"# /bsu {
volume_size=10volume_type="gp2"
}
}
block_device_mappings {
device_name="/dev/xvdb"bsu {
volume_size=4volume_type="gp2"
}
}
block_device_mappings { <<<<<<< this one was added after the vm was created
device_name="/dev/xvdc"bsu {
volume_size=4volume_type="gp2"
}
}
}
Updating/adding additional block_device_mappings to an existing VM is not possible actually with our terraform plugin.
This will come with the hot volume update ref #200 , #310
In your case, you can use the outscale_volume_link resource.
name: Bug report
about: adding a block_device_mappings forces replacement even on non-root volumes
labels: bug, new
Hello,
I have an issue with block_device_mappings which is whenever I try to add or remove a non-root block_device from the list terraform tries to recreate the machine.
Terraform Version
Terraform Configuration Files
### Output
Expected Behavior
I would expect modifying only the device which has device_name "/dev/xvdc" in my case.
Actual Behavior
Terraform tries to modify all the volumes and recreate the instance.
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: