The extended snapshots extension makes a separate db request for
snapshots which is horribly inefficent. In addition it causes an
issue when using all_tenants=1, because the second request doesn't
pass in the filter. Fix this by caching the snapshot in the request
object like we do for volumes and retrieve the cached object in the
extension.
Change-Id: Ia943438c8d48accb7f62c43f07642c3da2fe34ab
Resolves-bug: #1358960
(cherry picked from commit 4f0d1d36136bcb33f578b2999812f36cadd71cec)
Reviewed: https:/ /review. openstack. org/115726 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=36406c9bb0b ac99b5daf1b8194 df73685cbe49ea
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 36406c9bb0bac99 b5daf1b8194df73 685cbe49ea
Author: Vishvananda Ishaya <email address hidden>
Date: Tue Aug 19 16:59:02 2014 -0700
Cache snapshots in request for extension
The extended snapshots extension makes a separate db request for
snapshots which is horribly inefficent. In addition it causes an
issue when using all_tenants=1, because the second request doesn't
pass in the filter. Fix this by caching the snapshot in the request
object like we do for volumes and retrieve the cached object in the
extension.
Change-Id: Ia943438c8d48ac cb7f62c43f07642 c3da2fe34ab 3f578b2999812f3 6cadd71cec)
Resolves-bug: #1358960
(cherry picked from commit 4f0d1d36136bcb3
Conflicts: api/contrib/ extended_ snapshot_ attributes. py
cinder/
Change-Id: Ia943438c8d48ac cb7f62c43f07642 c3da2fe34ab