resize_claim lazy-loads at least 3 joined fields in separate DB calls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
During a resize_claim the ResourceTracker lazy-loads in 3 separate calls to the DB (over RPC) these 3 fields:
b"2019-11-20 16:13:29,521 DEBUG [nova.objects.
b"2019-11-20 16:13:29,525 DEBUG [nova.objects.
b"2019-11-20 16:13:29,527 DEBUG [nova.objects.
It seems we should be able to collapse that into a single DB call to load the necessary fields in a single call.
We could add a new extra_attrs kwarg to the Instance.refresh method so we can keep using the same instance we have in memory (and is shared by the ComputeManager method calling the resize_claim) or we could add a new load_if_
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |