yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #79959
[Bug 1843836] [NEW] Failure to schedule if flavor contains non-CPU flag traits
Public bug reported:
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.
** Affects: nova
Importance: Undecided
Assignee: Stephen Finucane (stephenfinucane)
Status: In Progress
** Tags: libvirt
** Description changed:
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:
+ 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.
--
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/1843836
Title:
Failure to schedule if flavor contains non-CPU flag traits
Status in OpenStack Compute (nova):
In Progress
Bug 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 (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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1843836/+subscriptions
Follow ups