-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.17.1 and 4.17.2
CONFIGURATION
Advanced networking with local storage. vmware 6.7.
OS / ENVIRONMENT
N/A
Service Offering used on the instance
{
"count": 1,
"serviceoffering": [
{
"cacheMode": "none",
"cpuspeed": 1600,
"created": "2022-11-16T08:21:16+0000",
"defaultuse": false,
"diskofferingstrictness": false,
"displaytext": "S-Packages",
"dynamicscalingenabled": true,
"hasannotations": false,
"id": "08f5f8fa-88d7-44c7-8ed5-7f06a6031888",
"iscustomized": true,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"name": "S-Packages",
"networkrate": 500,
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"serviceofferingdetails": {
"maxcpunumber": "8",
"maxmemory": "32768",
"mincpunumber": "1",
"minmemory": "512"
},
"storagetype": "local"
}
]
}
Virtualmachine
{
"count": 1,
"virtualmachine": [
{
"account": "emeaclient_16_49",
"affinitygroup": [],
"cpunumber": 1,
"cpuspeed": 1600,
"created": "2023-03-07T10:21:04+0000",
"details": {
"Message.ReservedCapacityFreed.Flag": "true",
"cpuNumber": "1",
"cpuOvercommitRatio": "2.0",
"cpuSpeed": "1600",
"dataDiskController": "osdefault",
"keyboard": "us",
"memory": "1024",
"memoryOvercommitRatio": "2.0",
"nicAdapter": "Vmxnet3",
"rootDiskController": "scsi",
"rootdisksize": "10"
},
"displayname": "Test-Scale-March-3",
"displayvm": true,
"domain": "cloud16",
"domainid": "793d17f0-30d3-46c1-adbf-657c4659a624",
"guestosid": "6428ffbd-1f58-11ec-b6e8-244bfeb8116f",
"haenable": false,
"hasannotations": false,
"hypervisor": "VMware",
"id": "a2b9aca8-4e67-4cb4-8526-e2507b8d3898",
"instancename": "i-74-1443-VM",
"isdynamicallyscalable": false,
"lastupdated": "2023-03-07T10:30:43+0000",
"memory": 1024,
"name": "VM-a2b9aca8-4e67-4cb4-8526-e2507b8d3898",
"nic": [
{
"broadcasturi": "vlan://untagged",
"deviceid": "0",
"extradhcpoption": [],
"gateway": "46.xx.xxx.49",
"id": "4e23f2be-ecc5-4793-8cbd-c3bc15920cd1",
"ipaddress": "46.xx.xxx.54",
"isdefault": true,
"isolationuri": "vlan://untagged",
"macaddress": "1e:00:cf:00:00:87",
"netmask": "255.255.255.240",
"networkid": "3f5fbbe4-fe38-42ae-af2d-01709d7a2e9c",
"networkname": "NL-01",
"secondaryip": [],
"traffictype": "Guest",
"type": "Shared"
}
],
"osdisplayname": "Other Linux (64-bit)",
"ostypeid": "6428ffbd-1f58-11ec-b6e8-244bfeb8116f",
"passwordenabled": true,
"pooltype": "VMFS",
"receivedbytes": 0,
"rootdeviceid": 0,
"rootdevicetype": "ROOT",
"securitygroup": [],
"sentbytes": 0,
"serviceofferingid": "08f5f8fa-88d7-44c7-8ed5-7f06a6031888",
"serviceofferingname": "S-Packages",
"state": "Stopped",
"tags": [
{
"account": "emeaclient_16_49",
"domain": "cloud16",
"domainid": "793d17f0-30d3-46c1-adbf-657c4659a624",
"key": "service_id",
"resourceid": "a2b9aca8-4e67-4cb4-8526-e2507b8d3898",
"resourcetype": "UserVm",
"value": "450"
},
{
"account": "emeaclient_16_49",
"domain": "cloud16",
"domainid": "793d17f0-30d3-46c1-adbf-657c4659a624",
"key": "service_type",
"resourceid": "a2b9aca8-4e67-4cb4-8526-e2507b8d3898",
"resourcetype": "UserVm",
"value": "S-2"
}
],
"templatedisplaytext": "RockyLinux-8",
"templateid": "be405fbf-9ca9-4b90-bf97-9806ebf75b7b",
"templatename": "RockyLinux-8",
"userid": "df0acf1e-52a2-4c4f-b4e6-535546cf6b12",
"username": "emeaclient_16_49",
"zoneid": "55f0123b-285c-4a70-8b34-565d8454393d",
"zonename": "NL-01"
}
]
}
SUMMARY
New value for “rootdisksize” parameter does not have any effect on the instance
STEPS TO REPRODUCE
scale virtualmachine id=a2b9aca8-4e67-4cb4-8526-e2507b8d3898 serviceofferingid=08f5f8fa-88d7-44c7-8ed5-7f06a6031888 details[0].cpuNumber=1 details[0].memory=1024 details[0].rootdisksize=25
EXPECTED RESULTS
New value for rootdisk to be set, and not ignored,
ACTUAL RESULTS
Only the CPU and Memory is scaled, rootdisksize is ignored without any error in the log.
GET apiKey=fXfTV81qwEJ_9WrhJYtYOXE3oPSLlEjfNZx2i9YLUMZD1Zw61_PySJv3ethOdvQUBIFrvMI6UYwQJZtvNNp-Eg&command=scaleVirtualMachine&details[0].cpuNumber=1&details[0].memory=1024&details[0].rootdisksize=25&id=a2b9aca8-4e67-4cb4-8526-e2507b8d3898&response=json&serviceofferingid=08f5f8fa-88d7-44c7-8ed5-7f06a6031888&signature=A1d99N328ZK2SbfDo%2FP74xMpPcU%3D