-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
details changes are not beeing applied #58
Milestone
Comments
please reboot the instance and u can see the changes .. |
Able to reproduce the issue i belive this is because the terraform code (resourceCloudStackInstanceUpdate) doesn't have the details parameter
https://cloudstack.apache.org/api/apidocs-4.19/apis/updateVirtualMachine.html cc @vishesh92 |
@vishesh92 |
Wondering if this is also related - apache/cloudstack#6865 |
This was referenced Jan 24, 2025
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
when an instance is using a custom offering and you change cpu and/or memory in details parameter terraform apply shows the change but the instance itself not. Even if instance is shutdown to scale it, it does not work.
Config:
resource "cloudstack_instance" "VM1" {
name = "TERRAFORMVM1"
service_offering = "custom"
template = id
network_id = id
zone = "zone1"
expunge = true
root_disk_size = 10
details = {"cpuNumber" = "1", "memory" = "1024"}
}
Do a terraform apply and the instance will be created with cpu and memory from config.
Now edit one or both of them and do a terraform apply again. terraform is showing the changes and says is has been successfully finished, but the instance on CS still has the old values.
The text was updated successfully, but these errors were encountered: