-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Details in cloudstack_instance resource #148
Comments
Hi @CodeBleu sorry for the offtop, but I just wanted to know, how you managed to make When I specified custom compute service offering and then set details with proper values I got an error like:
Terraform instance definition has details parameter set like this:
There is basically no documentation how that should work, maybe any clues? |
@chrxmvtik What version of TF and TF Cloudstack provider you using? Any more info of your "custom offering" might be helpful too. |
Of course: Terraform version: 1.10.1 Custom offering details:
|
@chrxmvtik if you can use CloudMonkey ( cmk ) it would be helpful to see the other info that the UI doesn't show for the offering. So far, nothing is standing out to me, but it would be helpful to see more detail on how the offering is setup.
Also, what Cloudstack Ver. are you running? |
Cloudstack version is 4.19.1.3 Here is result offering info from CMK: (localcloud) 🐱 > list serviceofferings --filter name="g1.Custom"
{
"count": 1,
"serviceoffering": [
{
"cacheMode": "writeback",
"created": "2024-07-13T16:53:40+0200",
"defaultuse": false,
"diskofferingstrictness": false,
"displaytext": "Custom Instance HDD",
"domain": "ROOT",
"domainid": "687a14xac120002",
"dynamicscalingenabled": true,
"encryptroot": false,
"hasannotations": false,
"hosttags": "WBHO",
"id": "77290x4c9ff2686",
"iscustomized": true,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"name": "g1.Custom",
"offerha": true,
"provisioningtype": "thin",
"rootdisksize": 0,
"serviceofferingdetails": {
"domainid": "1",
"zoneid": "1"
},
"state": "Active",
"storagetags": "Primary-HDD",
"storagetype": "shared",
"zone": "XX",
"zoneid": "730cb3x1399"
}
]
} Neither do I really see anything suspicious in here, tho. |
linking this issue here as I think it's related |
{
"count": 1,
"serviceoffering": [
{
"cacheMode": "none",
"cpuspeed": 2600,
"created": "2024-10-17T15:49:28+0000",
"defaultuse": false,
"diskofferingstrictness": false,
"displaytext": "jwh-customed-constrained",
"dynamicscalingenabled": true,
"encryptroot": false,
"hasannotations": false,
"hosttags": "standard",
"id": "c99c0b1a-ac09-4eb4-a05b-afe5192445d4",
"iscustomized": true,
"issystem": false,
"isvolatile": false,
"limitcpuuse": true,
"name": "jwh-customed-constrained-2-8-2-4",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"serviceofferingdetails": {
"maxcpunumber": "8",
"maxmemory": "4096",
"mincpunumber": "2",
"minmemory": "2048"
},
"state": "Active",
"storagetags": "standard_storage",
"storagetype": "local"
}
]
}
Maybe try using a custom |
@chrxmvtik I just tested with an I got the same error as you only when I initially tried to change the offering from I still think this is an upstream issue with apache/cloudstack that needs to be resolved. |
Ah yes, thanks! When I created a new instance with g1.Custom service offering then everything worked fine and I was able to define resources using details parameter. Seems like an workaround for a while.. |
I have the following in my resource config:
but I get this error when I try to apply. I have tried several different ways and it still fails.
I'm running this agains the latest provider version 0.5.0 and on CS 4.19.1.0
@vishesh92 I see the most recent commit that is related to this, and was hoping you might have some insight as to why I'm not able to get this to work?
The text was updated successfully, but these errors were encountered: