List of images is not sorted in any useful manner

Bug #1336317 reported by Daniel Berrange on 2014-07-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Low
Timur Sufiev

Bug Description

Various places in the Horizon UI display a list of images.

None of these places seem to sorted the list in any kind of useful order. If it is sorted at all, it must be sorted based on some property which is invisible in the UI, thus giving the impression it is unsorted

When a provider has uploaded images for very many different OS (100+) this makes it really tedious to find the one you actually want to look at.

I see this problem at

/project/images/
/admin/images/images/

In addition at /project/instances/launch the image list appears to be sorted on name, but case-sensitive to 'Fedora' comes before 'archlinux'. IMHO it should be case-insensitive so peoples choice of upper/lowercase doesn't mix up the sorting.

Hi Daniel, we are not sorting the image list returned by glance, however, the api does accept a sort-key so this could be fixed by using such key.
When this other bug fix, would also help in finding images when you have a bunch of them: https://bugs.launchpad.net/horizon/+bug/1332074

Changed in horizon:
status: New → Confirmed
Gary W. Smith (gary-w-smith) wrote :

https://bugs.launchpad.net/horizon/+bug/1219604 may also help alleviate problems with many images

Changed in horizon:
importance: Undecided → Low
Timur Sufiev (tsufiev-x) on 2014-10-24
Changed in horizon:
assignee: nobody → Timur Sufiev (tsufiev-x)

Fix proposed to branch: master
Review: https://review.openstack.org/130844

Changed in horizon:
status: Confirmed → In Progress

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/130844
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Reviewed: https://review.openstack.org/130844
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f8e595b0fa4d88bf764e13e7f871e0a0f05a8fde
Submitter: Jenkins
Branch: master

commit f8e595b0fa4d88bf764e13e7f871e0a0f05a8fde
Author: Timur Sufiev <email address hidden>
Date: Fri Oct 24 20:14:46 2014 +0400

    Sort images list in ascending alphabetical order

    Move most of the pagination-logic to `api.glance.image_list_detailed`,
    thus making code in Admin/Project->Images->get_data() less confusing
    (and remove hard-coded 'asc'|'desc' values).

    Also prepare to get images both from glanceclient.v1 and
    glanceclient.v2 (which doesn't set `is_public` attr on images using
    `visibility` attr instead).

    Change-Id: Ibe6d3dd1e94a1d1fbf95382599a5f53c3559ce5a
    Closes-Bug: #1534670
    Closes-Bug: #1336317

Changed in horizon:
status: In Progress → Fix Released

This issue was fixed in the openstack/horizon 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers