Ask Your Question

volumes pagination

asked 2015-04-01 22:08:58 -0600

openstack-eagle gravatar image

There is pagination for instances in admin/system/instances, but now there is not pagination for admin/system/volumes. If there is lots of volumes, this can bring inconvenience.

Is this special designed or need enhancement?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-04-02 10:18:03 -0600

edit flag offensive delete link more

answered 2015-04-03 19:38:45 -0600

david-lyle gravatar image

Cinder API v2 does support pagination, unfortunately support for that has not been added to horizon yet.

edit flag offensive delete link more

answered 2015-04-03 04:51:48 -0600

openstack-eagle gravatar image

The cinder-api have implemented the pagination using limit. But actually I am asking about the horzion dashboard page admin/system/volumes. Today I look at the code in horizon/openstack_dashboard/dashboards/project/volumes/, class VolumeTab --> get_volumes_data --> volumes = self._get_volumes() It's the call _get_volumes without any paramter causing there is not pagination.

Also there are some other issues like no previous page if there is a long list.For this I see a solution in horizon/openstack_dashboard/dashboards/project/stacks/ class IndexView --> get_data. this solve the previous page isssue.

I also find the filter for instance using ipv4 is only for the current page, this is caused by (limit first, filter later, maybe the ip is in different database). Previously this is also true for project, but they have fixed it by transfer project name to project id and then select.(filter fist, limit later) Thanks unoz for giving me hint. There is a lot to learn.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-01 22:08:58 -0600

Seen: 387 times

Last updated: Apr 03 '15