Failed to compute_task_build_instances: local variable 'sibling_set' referenced before assignment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
Queens |
Fix Committed
|
Medium
|
Stephen Finucane |
Bug Description
Reproduced from rhbz#1686511 (https:/
When spawning an Openstack instance, this error is received:
2019-03-07 08:07:38.499 3124 WARNING nova.scheduler.
Traceback (most recent call last):
File "/usr/lib/
res = self.dispatcher
File "/usr/lib/
return self._do_
File "/usr/lib/
result = func(ctxt, **new_args)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
dests = self.driver.
File "/usr/lib/
File "/usr/lib/
spec_obj, index=num)
File "/usr/lib/
hosts, spec_obj, index)
File "/usr/lib/
list_objs = list(objs)
File "/usr/lib/
if self._filter_
File "/usr/lib/
return self.host_
File "/usr/lib/
File "/usr/lib/
host_cell, instance_cell, limits)
File "/usr/lib/
host_cell, instance_cell)
File "/usr/lib/
File "/usr/lib/
UnboundLoca
2019-03-07 08:07:38.500 3124 WARNING nova.scheduler.
This issues appears to be because of:
This works normally because of loop variables in Python are available outside of the scope of the loop:
>>> for x in range(5):
... pass
...
>>> print(x)
4
and because there's usually something in sibling_sets. However, this is presumably failing for this user because there are no free cores at all on the given host. This is likely the race condition between the nova-scheduler and nova-compute services.
Fix proposed to branch: stable/queens /review. openstack. org/647831
Review: https:/