List of images is not sorted in any useful manner

Bug #1336317 reported by Daniel Berrange on 2014-07-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
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


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:

Changed in horizon:
status: New → Confirmed
Gary W. Smith (gary-w-smith) wrote : 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

Changed in horizon:
status: Confirmed → In Progress

Change abandoned by David Lyle (<email address hidden>) on branch: master
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.

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 development milestone.

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

Other bug subscribers