Skip to content
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

Open
sbrueseke opened this issue Apr 27, 2023 · 4 comments · Fixed by #91 · May be fixed by #158
Open

details changes are not beeing applied #58

sbrueseke opened this issue Apr 27, 2023 · 4 comments · Fixed by #91 · May be fixed by #158
Assignees
Milestone

Comments

@sbrueseke
Copy link

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.

@dseralathan
Copy link

please reboot the instance and u can see the changes ..

@rohityadavcloud rohityadavcloud added this to the v0.5.0 milestone Sep 12, 2023
@kiranchavala
Copy link
Collaborator

Able to reproduce the issue

i belive this is because the terraform code (resourceCloudStackInstanceUpdate) doesn't have the details parameter

func resourceCloudStackInstanceUpdate(d *schema.ResourceData, meta interface{}) error {

https://cloudstack.apache.org/api/apidocs-4.19/apis/updateVirtualMachine.html

cc @vishesh92

@CodeBleu
Copy link
Collaborator

@vishesh92
I'm still having this issue - #148

@CodeBleu CodeBleu reopened this Dec 10, 2024
@CodeBleu
Copy link
Collaborator

CodeBleu commented Dec 10, 2024

Wondering if this is also related - apache/cloudstack#6865

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
6 participants