kiranchavala commented on PR #213:
URL:
https://github.com/apache/cloudstack-terraform-provider/pull/213#issuecomment-3322425547
@Pearl1594
Hitting the timeout issue
Terraform is updating the resources when only
"cloudstack_autoscale_vm_group" state is changed from enable to disable
cloudstack_autoscale_vm_profile.vm_profile
cloudstack_loadbalancer_rule.autoscale_lb
```
terraform apply
data.cloudstack_counter.existing_cpu_counter: Reading...
cloudstack_ipaddress.lb_public_ip: Refreshing state...
[id=42462dce-96ad-47d0-909d-8e56a465f3e1]
cloudstack_autoscale_vm_profile.vm_profile: Refreshing state...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca]
data.cloudstack_counter.existing_cpu_counter: Read complete after 0s
[id=4b27ead4-8c8b-11f0-b0ae-1e0092000273]
cloudstack_condition.scale_up_condition: Refreshing state...
[id=f06c5d82-121b-499d-bb47-30771b2e2a18]
cloudstack_condition.scale_down_condition: Refreshing state...
[id=355f52df-5667-41b9-9307-ecad0ea4d21e]
cloudstack_loadbalancer_rule.autoscale_lb: Refreshing state...
[id=59fc77ed-b5c4-4dab-8b6e-7239981a4ede]
cloudstack_firewall.http_firewall: Refreshing state...
[id=42462dce-96ad-47d0-909d-8e56a465f3e1]
cloudstack_autoscale_policy.scale_down_policy: Refreshing state...
[id=f380822c-984c-4dfc-ae9a-40364e8d410c]
cloudstack_autoscale_policy.scale_up_policy: Refreshing state...
[id=90e4bb1b-189d-412b-9678-5737c2180b66]
cloudstack_autoscale_vm_group.vm_group: Refreshing state...
[id=c4d718c9-22de-4014-aa73-1133858a1dad]
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:
# cloudstack_loadbalancer_rule.autoscale_lb has changed
~ resource "cloudstack_loadbalancer_rule" "autoscale_lb" {
id = "59fc77ed-b5c4-4dab-8b6e-7239981a4ede"
+ member_ids = [
+ "02ea6652-88e6-4599-bd39-2c9769a8b9e3",
]
name = "autoscale-lb-rule"
# (8 unchanged attributes hidden)
}
Unless you have made equivalent changes to your configuration, or ignored
the relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# cloudstack_autoscale_vm_group.vm_group will be updated in-place
~ resource "cloudstack_autoscale_vm_group" "vm_group" {
- display = true -> null
id = "c4d718c9-22de-4014-aa73-1133858a1dad"
- interval = 30 -> null
name = "simple-autoscale-group2"
~ state = "enable" -> "disable"
# (7 unchanged attributes hidden)
}
# cloudstack_autoscale_vm_profile.vm_profile will be updated in-place
~ resource "cloudstack_autoscale_vm_profile" "vm_profile" {
~ display = false -> true
id = "00196cec-b4ac-47de-8066-a8a70fb7b9ca"
# (11 unchanged attributes hidden)
}
# cloudstack_loadbalancer_rule.autoscale_lb will be updated in-place
~ resource "cloudstack_loadbalancer_rule" "autoscale_lb" {
id = "59fc77ed-b5c4-4dab-8b6e-7239981a4ede"
~ member_ids = [
- "02ea6652-88e6-4599-bd39-2c9769a8b9e3",
]
name = "autoscale-lb-rule"
# (8 unchanged attributes hidden)
}
Plan: 0 to add, 3 to change, 0 to destroy.
Changes to Outputs:
+ load_balancer_members = []
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
cloudstack_loadbalancer_rule.autoscale_lb: Modifying...
[id=59fc77ed-b5c4-4dab-8b6e-7239981a4ede]
cloudstack_autoscale_vm_profile.vm_profile: Modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca]
cloudstack_loadbalancer_rule.autoscale_lb: Modifications complete after 2s
[id=59fc77ed-b5c4-4dab-8b6e-7239981a4ede]
cloudstack_autoscale_vm_profile.vm_profile: Still modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca, 00m10s elapsed]
cloudstack_autoscale_vm_profile.vm_profile: Still modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca, 00m20s elapsed]
cloudstack_autoscale_vm_profile.vm_profile: Still modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca, 00m30s elapsed]
cloudstack_autoscale_vm_profile.vm_profile: Still modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca, 00m40s elapsed]
cloudstack_autoscale_vm_profile.vm_profile: Still modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca, 00m50s elapsed]
cloudstack_autoscale_vm_profile.vm_profile: Still modifying...
[id=00196cec-b4ac-47de-8066-a8a70fb7b9ca, 01m00s elapsed]
╷
│ Error: Autoscale VM groups must be disabled before updating profile:
Autoscale VM groups must be disabled before updating profile: Timeout waiting
for VM groups to reach state 'disabled' after 60 seconds
│
│ with cloudstack_autoscale_vm_profile.vm_profile,
│ on main.tf line 87, in resource "cloudstack_autoscale_vm_profile"
"vm_profile":
│ 87: resource "cloudstack_autoscale_vm_profile" "vm_profile" {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]