Red Hat Bugzilla – Bug 1278576
cinder-api is consuming around 10GB RAM when running a "snapshot-list" command on the large set of data
Last modified: 2018-02-08 06:01:52 EST
Description of problem:
Cinder is performing an inefficient query: when looking
for information about snapshots associated with a particular volume,
it loads all the rows from the database and then filters them in
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a lot of snapshots
2. Run cinder snapshot-list command, use volume_id to return only snapshots related to that specific volume
1. cinder-api is consuming a lot of memory after performing cinder snapshot-list
2. query returns a lot of unrelated records from the database (snapshots of a different volumes)
memory usage should be normal,
query should return only relevant records
Added a reference to the patch. This is the link to the scratch build:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.