GitHub user slavkap added a comment to the discussion: Dynamic Scaling of
instance is not working after upgrading to ACS Version 4.19.1.2 from 4.18.2.4
I could reproduce this on the main branch. The problem is with the SQL query
but I don't have much time to investigate it further.
When you use the UI to scale a VM CloudStack lists the service offerings by the
VM ID but doesn't show the correct one.
```
(local) 🐵 > list serviceofferings
virtualmachineid=19d46ac4-7797-4087-b250-b8a06cbee7ad
{
"count": 1,
"serviceoffering": [
{
"cacheMode": "none",
"cpunumber": 1,
"cpuspeed": 500,
"created": "2024-10-23T09:25:59+0300",
"defaultuse": false,
"diskofferingstrictness": false,
"displaytext": "ssd",
"dynamicscalingenabled": true,
"encryptroot": false,
"hasannotations": false,
"id": "aa030ef7-5530-4ebb-86db-114fd2272ecf",
"iscustomized": false,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"memory": 512,
"name": "ssd",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"serviceofferingdetails": {
"zoneid": "1"
},
"state": "Active",
"storagetags": "ssd",
"storagetype": "shared",
"zone": "Zone-A",
"zoneid": "da1636ce-d63f-4b4e-8be8-c9e21d1f4e11"
}
]
}
```
```
(local) 🐵 > list virtualmachines id=19d46ac4-7797-4087-b250-b8a06cbee7ad
{
"count": 1,
"virtualmachine": [
{
"account": "admin",
"affinitygroup": [],
"cpunumber": 1,
"cpuspeed": 500,
"cpuused": "12.93%",
"created": "2024-10-29T09:17:45+0200",
"deleteprotection": false,
"details": {
"Message.ReservedCapacityFreed.Flag": "false",
"cpuNumber": "1",
"cpuSpeed": "500",
"memory": "512",
"rootdisksize": "10"
},
"diskioread": 0,
"diskiowrite": 5,
"diskkbsread": 0,
"diskkbswrite": 28,
"displayname": "VM-19d46ac4-7797-4087-b250-b8a06cbee7ad",
"displayvm": true,
"domain": "ROOT",
"domainid": "a012f313-9054-11ef-9555-02000a021706",
"domainpath": "/",
"guestosid": "a185c875-9054-11ef-9555-02000a021706",
"haenable": false,
"hasannotations": false,
"hostcontrolstate": "Enabled",
"hostid": "2aede50a-8d22-41fd-b1e0-9374516e0590",
"hostname": "lab-cs-dev-a1-block-server-mgmt-bridge",
"hypervisor": "KVM",
"id": "19d46ac4-7797-4087-b250-b8a06cbee7ad",
"instancename": "i-2-64-VM",
"ipaddress": "10.2.32.39",
"isdynamicallyscalable": true,
"lastupdated": "2024-10-29T09:24:43+0200",
"memory": 512,
"memoryintfreekbs": -1,
"memorykbs": 524288,
"memorytargetkbs": 524288,
"name": "VM-19d46ac4-7797-4087-b250-b8a06cbee7ad",
"networkkbsread": 1,
"networkkbswrite": 0,
"nic": [
{
"broadcasturi": "vlan://untagged",
"deviceid": "0",
"extradhcpoption": [],
"gateway": "10.2.32.253",
"id": "5b6e83f9-dedb-4dcc-be7b-696b5049e7fd",
"ipaddress": "10.2.32.39",
"isdefault": true,
"macaddress": "1e:00:95:00:00:30",
"netmask": "255.255.255.0",
"networkid": "f594dcc9-50cb-490d-b223-4e3cec3849fc",
"networkname": "defaultGuestNetwork",
"secondaryip": [],
"traffictype": "Guest",
"type": "Shared"
}
],
"osdisplayname": "CentOS 5.6 (64-bit)",
"ostypeid": "a185c875-9054-11ef-9555-02000a021706",
"passwordenabled": false,
"pooltype": "StorPool",
"receivedbytes": 12039,
"rootdeviceid": 0,
"rootdevicetype": "ROOT",
"securitygroup": [
{
"account": "admin",
"description": "Default Security Group",
"egressrule": [],
"id": "0f9e7f5b-9055-11ef-9555-02000a021706",
"ingressrule": [],
"name": "default",
"tags": [],
"virtualmachineids": []
}
],
"sentbytes": 10536,
"serviceofferingid": "b68fc191-8164-45dd-bb53-d6697e7bc7c6",
"serviceofferingname": "ssd-cust",
"state": "Running",
"tags": [],
"templatedisplaytext": "StorPool_Template",
"templateformat": "QCOW2",
"templateid": "c0498940-40a5-4a89-9de1-ec1b49cb459d",
"templatename": "StorPool--0MBHPN",
"templatetype": "USER",
"userid": "0f9dfce8-9055-11ef-9555-02000a021706",
"username": "admin",
"zoneid": "da1636ce-d63f-4b4e-8be8-c9e21d1f4e11",
"zonename": "Zone-A"
}
]
}
```
The correct service offering of the VM:
```
(local) 🐵 > list serviceofferings id=b68fc191-8164-45dd-bb53-d6697e7bc7c6
{
"count": 1,
"serviceoffering": [
{
"cacheMode": "none",
"created": "2024-10-28T11:41:54+0200",
"defaultuse": false,
"diskofferingstrictness": false,
"displaytext": "ssd-cust",
"dynamicscalingenabled": true,
"encryptroot": false,
"hasannotations": false,
"id": "b68fc191-8164-45dd-bb53-d6697e7bc7c6",
"iscustomized": true,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"name": "ssd-cust",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"serviceofferingdetails": {
"zoneid": "1"
},
"state": "Active",
"storagetags": "ssd",
"storagetype": "shared",
"zone": "Zone-A",
"zoneid": "da1636ce-d63f-4b4e-8be8-c9e21d1f4e11"
}
]
}
```
GitHub link:
https://github.com/apache/cloudstack/discussions/9866#discussioncomment-11084852
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]