You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "jeanvetorello (via GitHub)" <gi...@apache.org> on 2025/10/15 12:46:13 UTC
[I] Feature Request: Add support for serviceofferingdetails in cloudstack_service_offering resource for GPU configuration [cloudstack-terraform-provider]
jeanvetorello opened a new issue, #246:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/246
## Feature Request: Support for `serviceofferingdetails` in `cloudstack_service_offering`
### **Problem Statement**
Currently, the `cloudstack_service_offering` resource doesn't support configuring `serviceofferingdetails`, which is essential for GPU instances that require `pciDevice` and `vgpuType` parameters.
### **Current Limitation**
Users cannot create GPU service offerings directly with Terraform
### **Proposed Solution**
Add support for `serviceofferingdetails` in the schema, similar to how other CloudStack Terraform providers handle it.
**Suggested Schema:**
```hcl
resource "cloudstack_service_offering" "gpu_offering" {
name = "gpu-a6000"
display_text = "GPU A6000 Instance"
cpu_number = 4
memory = 16384
# New feature request
service_offering_details = {
pciDevice = "Group of NVIDIA A6000 GPUs"
vgpuType = "A6000-8A"
}
}
Implementation Notes
The CloudStack API supports serviceofferingdetails in createServiceOffering and updateServiceOffering
Similar functionality exists in other resources like cloudstack_network_offering
Should support both create and update operations
Should handle details removal (empty values)
References
CloudStack API Documentation: https://cloudstack.apache.org/api/apidocs-4.19/apis/createServiceOffering.html
Current provider code: resource_cloudstack_service_offering.go
Environment
Provider Version: 0.6.0-rc3
CloudStack Version: 4.19+
Terraform Version: 1.0+
--
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] Feature Request: Add support for serviceofferingdetails in cloudstack_service_offering resource for GPU configuration [cloudstack-terraform-provider]
Posted by "sudo87 (via GitHub)" <gi...@apache.org>.
sudo87 commented on issue #246:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/246#issuecomment-5055268372
Thanks @jeanvetorello @kiranchavala. PR is already merged, closing this 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] Feature Request: Add support for serviceofferingdetails in cloudstack_service_offering resource for GPU configuration [cloudstack-terraform-provider]
Posted by "sudo87 (via GitHub)" <gi...@apache.org>.
sudo87 closed issue #246: Feature Request: Add support for serviceofferingdetails in cloudstack_service_offering resource for GPU configuration
URL: https://github.com/apache/cloudstack-terraform-provider/issues/246
--
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