Closed ahmadamirahmadi007 closed 1 year ago
@ahmadamirahmadi007 it should work if you change global setting "allow.diskoffering.change.during.scale.vm" to "true"
tnx. everything is ok
I have the same issue, nothing is changed, even if i changed the value to "true" for allow.diskoffering.change.during.scale.vm. The only difference is that I do not see anymore the warning in the log "Changing the disk offering of the root volume during the compute offering change operation is disabled. Please check the setting [allow.diskoffering.change.during.scale.vm]"
I executed this via cmk (api)
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
And the response is:
{
"virtualmachine": {c API result
"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,
"jobid": "701a1122-0185-43a1-b110-bfbee380f4dd",
"jobstatus": 0,
"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.xxx.xxx.49",
"id": "4e23f2be-ecc5-4793-8cbd-c3bc15920cd1",
"ipaddress": "46.xxx.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": "Public-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_type",
"resourceid": "a2b9aca8-4e67-4cb4-8526-e2507b8d3898",
"resourcetype": "UserVm",
"value": "S-2"
},
{
"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"
}
],
"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": "EMEA-NL-01"
}
}
This is tested is 4.17.2.
I'm doing something wrong?
@weizhouapache
@ccycv
Can you create an issue and provide more details ? For example, the details of disk offering and service offering
@ccycv
Can you create an issue and provide more details ? For example, the details of disk offering and service offering
Hi, just created at https://github.com/apache/cloudstack/issues/7325
ISSUE TYPE
COMPONENT NAME
Compute Offering
CLOUDSTACK VERSION
4.17.2.0 Stable Latest Version
CONFIGURATION
KVM Advance Networking
OS / ENVIRONMENT
Ubuntu 20.04
SUMMARY
I updated cloudstack to the latest version 4.17.2.0 From 4.17.1.0. First, I create a disk offering and Map it to a Compute offering. When scaling the vm, I use that compute offering, but the amount of disk does not expand. While disk expansion happens through resize volume. What is the problem? This Issue did not happen in the previous version
STEPS TO REPRODUCE
1- Crete Disk Offering 2- Create Compute Offering With Disk Offering Maped To it From Previous Step 3- Stop Instance 4- Hit Scale VM
EXPECTED RESULTS
Expand the disk
ACTUAL RESULTS
The disk size does not change in the Detail Section Of Instance and Inside OS too.