Skip to content

UpdateVolume (hot) #200

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

Open
outscale-toa opened this issue Oct 18, 2022 · 4 comments
Open

UpdateVolume (hot) #200

outscale-toa opened this issue Oct 18, 2022 · 4 comments
Assignees
Labels

Comments

@outscale-toa
Copy link
Member

outscale-toa commented Oct 18, 2022

Description

Comportement actuel: l'action update (sur la size / iops) des volumes dans terraform n'est pas implémenté.

Le comportement est donc une re-récréation:

-     un-attach (si besoin)
-     suppression de l'ancien volume
-     creation du nouveau volume
-     attachement (si besoin)


Quand on pourra update à chaud, on pourra donc l'implémenter et sans dépendance au state de la vm.

@chrnin
Copy link

chrnin commented Aug 26, 2024

Bonjour, est-ce que l'implémentation de cette feature est à l'ordre du jour ?

@outscale-toa
Copy link
Member Author

Bonjour @chrnin,
Oui, elle est en cours de développement par notre équipe API.
Merci,

@nschmerber-doca
Copy link

Hello !

Just a little adding to the problem, it happens too when you umount / dis-attach the volume.
Or even worth , no need of a VM.

terraform version : 1.11

With a VM

Sequence :

  1. create a VM with TF
  2. create a volume and a volume link resource to see it in the VM
  3. format / mount / put test files in the VM
  4. umount the volume
  5. remove the outscale_volume_link resource (not the volume)
  6. At this point the VM doesnt see anymore the disk
  7. try to change the size of the volume resource
  8. Terraform plans to destroy the volume to create a new one ..

Even with no VM

In fact you can just try just this :

resource "outscale_volume" "vol" {
subregion_name = "cloudgouv-eu-west-1b"
size = 20
volume_type = "standard"
}

  • terraform apply -> OK
  • change the size :

resource "outscale_volume" "vol" {
subregion_name = "cloudgouv-eu-west-1b"
size = 20
volume_type = "standard" #it also fails with "gp2"
}

  # outscale_volume.vol must be replaced
-/+ resource "outscale_volume" "vol" {
      ~ creation_date  = "2025-05-16T20:56:23.300Z" -> (known after apply)
      ~ id             = "vol-a3560964" -> (known after apply)
      ~ iops           = 150 -> (known after apply)
      ~ linked_volumes = [] -> (known after apply)
      + request_id     = (known after apply)
      ~ size           = 10 -> 20 # forces replacement
      + snapshot_id    = (known after apply)
      ~ state          = "available" -> (known after apply)
      ~ volume_id      = "vol-a3560964" -> (known after apply)
        # (2 unchanged attributes hidden)
    }

Thanks in advance.

Nicolas

@outscale-toa
Copy link
Member Author

outscale-toa commented May 19, 2025

Hi Nicolas (@nschmerber-doca)

Actually update volume or block device mapping (size/iops/volume_type) is not implemented in terraform provider yet.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants