weizhouapache commented on PR #7887: URL: https://github.com/apache/cloudstack/pull/7887#issuecomment-1695526689
@DaanHoogland @harikrishna-patnala @shwstppr I have manually tested ok - The env have 2 hosts (3 sockets, 1 cpu per socket) ``` MariaDB [cloud]> select cpus,cpu_sockets from host where type='Routing'; +------+-------------+ | cpus | cpu_sockets | +------+-------------+ | 3 | 3 | | 3 | 3 | +------+-------------+ 2 rows in set (0.00 sec) ``` - Updated db manually to simulate hosts with 1 socket and 3 cpus per socket. ``` MariaDB [cloud]> update host set cpu_sockets = 1 where type='Routing'; Query OK, 2 rows affected (0.01 sec) Rows matched: 2 Changed: 2 Warnings: 0 MariaDB [cloud]> MariaDB [cloud]> select cpus,cpu_sockets from host where type='Routing'; +------+-------------+ | cpus | cpu_sockets | +------+-------------+ | 3 | 1 | | 3 | 1 | +------+-------------+ 2 rows in set (0.00 sec) ``` - changed global/zone configuration to enable dynamic scale enable.dynamic.scale.vm = true - changed template to "Dynamically scalable"  - created a service offering with 2 cpus and 1GB memory - create a vm with the new service offering and template without this PR, it failed ``` com.cloud.utils.exception.CloudRuntimeException: Unable to start VM(i-2-21-VM) on host(4282a91e-dc93-4305-a21a-d87ce4fe7e87) due to Task failed! Task record: uuid: 5f732b21-7e74-cf31-2cf4-ddc4f48517bc nameLabel: Async.VM.start_on nameDescription: allowedOperations: [] currentOperations: {} created: Mon Aug 28 10:39:13 UTC 2023 finished: Mon Aug 28 10:39:13 UTC 2023 status: failure residentOn: com.xensource.xenapi.Host@b83408c7 progress: 1.0 type: <none/> result: errorInfo: [VALUE_NOT_SUPPORTED, VCPUs-at-startup, 2, value greater than VCPUs-max] otherConfig: {} subtaskOf: com.xensource.xenapi.Task@aaf13f6f subtasks: [] ``` with this PR, succeed to create a vm -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
