Volume snapshots table makes 2N+1 volume_get requests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Kieran Spear |
Bug Description
The volume snapshots table has a column that shows the associated volume name and links to its volume detail page. This calls volume_get twice for each snapshot, so loading the Images & Snapshots page takes forever if you have a decent number of snapshots.
class SnapshotVolumeN
def get_raw_data(self, snapshot):
request = self.table.request
volume_name = api.cinder.
return safestring.
def get_link_url(self, snapshot):
volume_id = api.cinder.
return reverse(self.link, args=(volume_id,))
We should be calling volume_list once in the view and associating the snapshot with the volume there.
Changed in horizon: | |
assignee: | nobody → Kieran Spear (kspear) |
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
importance: | Undecided → Medium |
Changed in horizon: | |
milestone: | none → havana-rc1 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | havana-rc1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/47095
Review: https:/