On Tue, 2024-04-23 at 17:49 +0530, Gk Gk wrote:
Hi,
Is there a way to find out the available ram, disk and vcpus on a compute node for vm creation using any placement APIs or any other way ?
yes in placement those resouces are reported as inventoies on the resouces providers corresponidng to the compute nodes each compute node has a resouce provider with the same uuid and name (the name of the rp is the hypervior_hostname of the comptue node) https://docs.openstack.org/api-ref/placement/#list-resource-provider-invento... each resouce provider has a usage api so you see the totall amount and the current usage via placement. https://docs.openstack.org/api-ref/placement/#list-resource-provider-usages you can also get this info from nova usign the hyperviors api https://docs.openstack.org/api-ref/compute/#list-hypervisors-details athough placement is prefered we ahve removed some of the resouce information from the hyperiors api in wallaby https://specs.openstack.org/openstack/nova-specs/specs/wallaby/implemented/m...