How to schedule VMs in few specific host?

asked 2020-04-27 02:41:16 -0600

quanlm gravatar image

I have 4 nodes, 1 controller nodes and 3 compute node.

I divined into 2 AZ, AZ1 (compute1) and AZ2(compute2, compute3)

I can use create instance w/ --avaibilty-zone AZ1 (AZ2) to make the instance build in compute1 or compute2/3

But the openstack always schedule VMs on compute3 why I set --avability-zone AZ2 (3 compute nodes have like the same config (8GB ram, 4 core, HDD).

So are there anyway to make openstack schedule VMs on compute2 node too when I use --avaibility-zone AZ2

I only can use --avaibilty-zone AZ2:compute2:compute2 to make the instance create on it.

edit retag flag offensive close merge delete


Are you sure that compute2 is recognized as a compute node and that it has the properties and resources to run your VMs?

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-27 07:27:51 -0600 )edit

Yes, btw i found the problems that default quota has limited the instance create in compute2 so after I increase it, VMs spawn on compute2 again.

quanlm gravatar imagequanlm ( 2020-04-28 22:59:11 -0600 )edit