Install CLI client
https://docs.openstack.org/releasenotes/osc-placement/
pip install openstack-placement
echo 3.5.6 > .python-version
resource provider allocation
RESOURCE_PROVIDER_ID=$(openstack resource provider list --name ${NODE_NAME}.$(hostname -d) -c uuid -f value)
openstack resource provider show --allocations ${RESOURCE_PROVIDER_ID} -c allocations -f json
# list hypervisor
openstack resource provider list --sort-column name
# show
openstack resource provider allocation show ${SERVER_ID}
NODE_NAME=com1-prod.example.com
RESOURCE_PROVIDER_UUID=$(openstack resource provider list --name ${NODE_NAME} -c uuid -f value)
openstack resource provider inventory list ${RESOURCE_PROVIDER_UUID}
openstack resource provider usage show ${RESOURCE_PROVIDER_UUID}
openstack allocation candidate list --resource VCPU=32 --resource DISK_GB=120 --resource MEMORY_MB=4096 --member-of 3f0d0e40-6cf4-422d-a245-ceaffb0ac037
Add resource provider to aggregate