apache / apache/cloudstack-terraform-provider

Provider does not allow dynamic scaling

Open
#273 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
53
Forks
67
Avg merge
3d 14h
Merged PRs (30d)
15

Description

Hello there,

it seems like the provider does not allow dynamic scaling of instances.
Currently the provider calls `updateVirtualMachine` everytime something has changed on a `cloudstack_instance` resource. This updates the compute instance in CloudStack Management but does not change the actual VM.
To actually change the VM `scaleVirtualMachine` must be called.

The provider should check if `details.cpuNumber`, `details.cpuSpeed` or `details.memory` has changed and call `scaleVirtualMachine` prior to `updateVirtualMachine` or skip `updateVirtualMachine` at all when nothing else changed.

Thank you for looking into this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.