Remove unnecessary 'context' parameter from quotas reserve method call
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Rajesh Tailor | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In patch [1] 'context' parameter was removed from quota-related remotable method signatures.
In patch [2] use of 'context' parameter was removed from quota-related remotable method calls.
Still there are some occurrances where 'context' parameter is passed to quotas.reserve method which is leading to error "ValueError: Circular reference detected".
For eg: while restarting nova-compute if there are any instance
whose vm_state is 'DELETED' but that instance is not marked as deleted in db. In that case, while calling _init_instance method it raises below error.
2015-09-08 00:36:34.133 ERROR nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
eletion
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
e 197, in wrapper
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
2015-09-08 00:36:34.133 TRACE nova.compute.
[1] https:/
[2] https:/
Changed in nova: | |
assignee: | nobody → Rajesh Tailor (rajesh-tailor) |
summary: |
- Remove 'context' parameter from quotas reserve method call + Remove unnecessary 'context' parameter from quotas reserve method call |
description: | updated |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → liberty-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-rc1 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/222972
Review: https:/