You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "ferdinandopaes (via GitHub)" <gi...@apache.org> on 2025/04/30 20:43:59 UTC
[I] Error using AutoScaleProfile [cloudstack-terraform-provider]
ferdinandopaes opened a new issue, #173:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173
Hi,
I'm facing an error when I try create an AutoScaleProfile.
`Error`
```
Error: Error creating AutoScaleVmProfile : json: cannot unmarshal object into Go struct field CreateAutoScaleVmProfileResponse.otherdeployparams of type string
```
This error is showed with no `other_deploy_params`.
When I use other_deploy_params, adding just one argument, I have another error:
```
Error: Error creating AutoScaleVmProfile : CloudStack API error 431 (CSExceptionErrorCode: 9999): Unable to execute API command autoscalevmprofile due to invalid value networkids=7750f61d-749a-4b2b-966c-d8c5dc268ab6 for parameter otherdeployparams
```
`autoscale.tf` example
```
resource "cloudstack_autoscale_vm_profile" "this" {
service_offering = var.size
template = var.template_id
zone = var.zone
other_deploy_params = {
networkids = var.subnet.id
}
}
```
--
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: dev-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error using AutoScaleProfile [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #173:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173#issuecomment-3163939382
Able to reproduce the issue
```
Enter a value: yes
cloudstack_autoscale_vm_profile.this: Creating...
╷
│ Error: Error creating AutoScaleVmProfile : json: cannot unmarshal object into Go struct field CreateAutoScaleVmProfileResponse.otherdeployparams of type string
│
│ with cloudstack_autoscale_vm_profile.this,
│ on main.tf line 8, in resource "cloudstack_autoscale_vm_profile" "this":
│ 8: resource "cloudstack_autoscale_vm_profile" "this" {
│
```
--
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: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error using AutoScaleProfile [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #173:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173#issuecomment-3298676591
@ferdinandopaes #213 will solve the issue
--
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: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error using AutoScaleProfile [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala closed issue #173: Error using AutoScaleProfile
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173
--
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: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error using AutoScaleProfile [cloudstack-terraform-provider]
Posted by "vishesh92 (via GitHub)" <gi...@apache.org>.
vishesh92 commented on issue #173:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173#issuecomment-3222828869
Created a PR https://github.com/apache/cloudstack-go/pull/117
Once the above PR is merged and there is a cloudstack-go release, the fix will require upgrading cloudstack-go
--
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: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error using AutoScaleProfile [cloudstack-terraform-provider]
Posted by "vishesh92 (via GitHub)" <gi...@apache.org>.
vishesh92 commented on issue #173:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173#issuecomment-3219421448
This needs a fix in cloudstack-go or CloudStack backend. The root cause is that the map value should have a key called `name`. But the cloudstack-go is hardcoding that key as 'key`. This is due to inconsistency between handling of Map type params in different way in CloudStack.
--
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: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error using AutoScaleProfile [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #173:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/173#issuecomment-3332620329
closing as #213 is merged
--
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: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org