Public bug reported: When the ImageNUMATopologyAsymmetric exception is raised by https://github.com/openstack/nova/blob/master/nova/virt/hardware.py#L1265-L1268, the nova CLI fails with the following error:
ERROR (BadRequest): Asymmetric NUMA topologies require explicit assignment of CPUs and memory to nodes in image or flavor (HTTP 400) (Request-ID: req-645017cd-d426-4e57-a2e9-587f1d5c84b7) The above error message is not user-friendly at all in my opinion ;) Instead, an error message like: "(Number of vcpus of the flavor) modulus (numa_nodes) must be greater than zero, or, (Memory of the flavor) modulus (numa_nodes) must be greater than zero" will be very useful to the user. This error message will match the code in https://github.com/openstack/nova/blob/master/nova/virt/hardware.py#L1265-L1268. A better error message will help users set the right number of vcpus, memory in the flavor and numa_nodes in order to boot a nova VM with NUMA successfully. ** Affects: nova Importance: Undecided Status: New ** Tags: numa -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1704522 Title: Good error message is needed when ImageNUMATopologyAsymmetric is raised Status in OpenStack Compute (nova): New Bug description: When the ImageNUMATopologyAsymmetric exception is raised by https://github.com/openstack/nova/blob/master/nova/virt/hardware.py#L1265-L1268, the nova CLI fails with the following error: ERROR (BadRequest): Asymmetric NUMA topologies require explicit assignment of CPUs and memory to nodes in image or flavor (HTTP 400) (Request-ID: req-645017cd-d426-4e57-a2e9-587f1d5c84b7) The above error message is not user-friendly at all in my opinion ;) Instead, an error message like: "(Number of vcpus of the flavor) modulus (numa_nodes) must be greater than zero, or, (Memory of the flavor) modulus (numa_nodes) must be greater than zero" will be very useful to the user. This error message will match the code in https://github.com/openstack/nova/blob/master/nova/virt/hardware.py#L1265-L1268. A better error message will help users set the right number of vcpus, memory in the flavor and numa_nodes in order to boot a nova VM with NUMA successfully. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1704522/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

