IBM-tfproviders / terraform-provider-vsphere

Mozilla Public License 2.0
5 stars 5 forks source link

Cannot resize the disk - root disk resize fails and other disks gets recreated #2

Closed rachappag closed 7 years ago

rachappag commented 7 years ago

The disk resize attempts to recreate the disk with new size - Delete the existing disk and create new disk with new size.

Hence other than root(boot) disk resize, endup loosing data due to disk recreation. Root disk resize fails due to vpshere API error ( boot disk deletion not allowed on running VM )

santoshananda commented 7 years ago

Terraform today delete-creates the disk, that it created, when the disk is resized. This has been handled and resize operation just extends the existing disk instead of delete-creating it.

santoshananda commented 7 years ago

Closed by pull request https://github.com/IBM-tfproviders/terraform-provider-vsphere/pull/16