ResourceTracker.compute_nodes won't try to create a ComputeNode a second time if the first create() fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Matt Riedemann | ||
Ocata |
Triaged
|
Medium
|
Unassigned | ||
Pike |
Fix Released
|
Medium
|
Matt Riedemann | ||
Queens |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Rocky |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Stein |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
I found this while writing a functional recreate test for bug 1839560.
As of this change in Ocata:
https:/
The ResourceTracker
The problem is if ComputeNode.
And eventually you get errors like this:
b'2019-08-09 17:02:59,356 ERROR [nova.compute.
b'Traceback (most recent call last):'
b' File "/home/
b' startup=startup)'
b' File "/home/
b' self._update_
b' File "/home/
b' return f(*args, **kwargs)'
b' File "/home/
b' self._update(
b' File "/home/
b' self.old_
b' File "/home/
b' self.force_
b' File "/home/
b' six.reraise(
b' File "/home/
b' raise value'
b' File "/home/
b' compute_
b' File "/home/
b' return fn(self, *args, **kwargs)'
b' File "/home/
b' db_compute = db.compute_
b' File "/home/
b' self.obj_
b' File "/home/
b' _("Cannot load \'%s\' in the base class") % attrname)'
b"NotImplem
We should only map the ComputeNode when we've successfully created it.
Fix proposed to branch: master /review. opendev. org/675704
Review: https:/