Listing placement usages (total or per resource provider) in a new process can result in a 500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Chris Dent | ||
Pike |
Fix Committed
|
Medium
|
Chris Dent | ||
Queens |
Fix Committed
|
Medium
|
Chris Dent |
Bug Description
When requesting /usages or /resource_
File "/usr/lib/
rc_str = _RC_CACHE.
AttributeError: 'NoneType' object has no attribute 'string_from_id'
We presumably don't see this in our usual testing because any process has already had other requests happen, setting the cache.
For now, the fix is to add the _ensure_rc_cache call in the right places, but long term if/when we switch to the os-resource-class model we can do the caching or syncing a bit differently (see https:/
Fix proposed to branch: master /review. openstack. org/572652
Review: https:/