Hi,

I have created a flavor with following properties and created an instance.
Instance failed with the error "No valid host was found. There are not enough hosts available."
When I set the cpu policy as 'shared' I can create the instance.  The host machine has two numa nodes and a total of 128 vcpu.
I can not figure out what's missing here.

controller-1:~$ openstack flavor show dn.large -c properties

+------------+--------------------------------------------------------------------------------------------------------+

| Field      | Value                                                                                                  |

+------------+--------------------------------------------------------------------------------------------------------+

| properties | hw:cpu_cores='2', hw:cpu_policy='dedicated', hw:cpu_sockets='1', hw:cpu_threads='2', hw:numa_nodes='1' |

+------------+--------------------------------------------------------------------------------------------------------+

controller-1:~$ openstack hypervisor stats show

+----------------------+--------+

| Field                | Value  |

+----------------------+--------+

| count                | 1      |

| current_workload     | 0      |

| disk_available_least | 187    |

| free_disk_gb         | 199    |

| free_ram_mb          | 308787 |

| local_gb             | 219    |

| local_gb_used        | 20     |

| memory_mb            | 515443 |

| memory_mb_used       | 206656 |

| running_vms          | 7      |

| vcpus                | 126    |

| vcpus_used           | 49     |

+----------------------+--------+



Regards,

Danishka