Activity log for bug #1843836

Date Who What changed Old value New value Message
2019-09-12 21:27:10 Stephen Finucane bug added bug
2019-09-12 21:27:37 Stephen Finucane description I'm seeing the following error locally: Sep 12 18:52:25 compute-small nova-conductor[28968]: ERROR nova.scheduler.utils [None req-b86b25c8-c89e-4449-bec3-c94948402e02 demo admin] [instance: a4056430-ed06-4cea-91b9-e15fd4b1979f] Error from last host: compute-small (node compute-small): [u'Traceback (most recent call last):\n', u' File "/opt/stack/nova/nova/compute/manager.py", line 2038, in _do_build_and_run_instance\n filter_properties, request_spec)\n', u' File "/opt/stack/nova/nova/compute/manager.py", line 2408, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance a4056430-ed06-4cea-91b9-e15fd4b1979f was re-scheduled: No CPU model match traits, models: ['IvyBridge-IBRS'], required flags: set([None])\n"] This is affecting me when testing the 'PCPU' feature because we're rewriting the 'hw:cpu_thread_policy' to add a 'HW_CPU_HYPERTHREADING' trait, however, this can happen with any non-CPU flag trait because of the following code: https://github.com/openstack/nova/blob/7a18209a8/nova/virt/libvirt/utils.py#L600 That will mean we can return a set contains 'None', which causes this later check to fail: https://github.com/openstack/nova/blob/7a18209a81539217a95ab7daad6bc67002768950/nova/virt/libvirt/driver.py#L4083 Since no CPU model will report a 'None' feature flag. I'm seeing the following error locally: Sep 12 18:52:25 compute-small nova-conductor[28968]: ERROR nova.scheduler.utils [None req-b86b25c8-c89e-4449-bec3-c94948402e02 demo admin] [instance: a4056430-ed06-4cea-91b9-e15fd4b1979f] Error from last host: compute-small (node compute-small): [u'Traceback (most recent call last):\n', u' File "/opt/stack/nova/nova/compute/manager.py", line 2038, in _do_build_and_run_instance\n filter_properties, request_spec)\n', u' File "/opt/stack/nova/nova/compute/manager.py", line 2408, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance a4056430-ed06-4cea-91b9-e15fd4b1979f was re-scheduled: No CPU model match traits, models: ['IvyBridge-IBRS'], required flags: set([None])\n"] This is affecting me when testing the 'PCPU' feature because we're rewriting the 'hw:cpu_thread_policy' to add a 'HW_CPU_HYPERTHREADING' trait, however, this can happen with any non-CPU flag trait (e.g. COMPUTE_SUPPORTS_MULTIATTACH) because of the following code: https://github.com/openstack/nova/blob/7a18209a8/nova/virt/libvirt/utils.py#L600 That will mean we can return a set contains 'None', which causes this later check to fail: https://github.com/openstack/nova/blob/7a18209a81539217a95ab7daad6bc67002768950/nova/virt/libvirt/driver.py#L4083 Since no CPU model will report a 'None' feature flag.
2019-09-12 21:31:21 OpenStack Infra nova: status New In Progress
2019-09-12 21:31:21 OpenStack Infra nova: assignee Stephen Finucane (stephenfinucane)
2019-09-12 21:46:45 Matt Riedemann tags libvirt libvirt train-rc-potential
2019-09-18 16:10:19 Matt Riedemann nova: importance Undecided High
2019-09-21 03:40:46 OpenStack Infra nova: status In Progress Fix Released