Ask Your Question
0

volumes pagination

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

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
1

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

edit flag offensive delete link more
1

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

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
0

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

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/tabs.py, 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/view.py 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 300 times

Last updated: Apr 03 '15