Bug 1262107

Summary: When sorting by instance size, it's not sorted the right way
Product: Red Hat OpenStack Reporter: David Hill <dhill>
Component: python-django-horizonAssignee: Alvaro Lopez Ortega <aortega>
Status: CLOSED CURRENTRELEASE QA Contact: Ido Ovadia <iovadia>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: aortega, athomas, dhill, mrunge, nlevinki, rdopiera, srevivo
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 6.0 (Juno)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-django-horizon-8.0.0-9.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1292734 (view as bug list) Environment:
Last Closed: 2016-12-05 14:39:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1292734    

Description David Hill 2015-09-10 20:02:13 UTC
Description of problem:
When displaying the instance list of a project in the Horizon dashboard((http://public_vip/dashboard/project/instances/)) and sorting the instances by the "Size" column, it won't be sorted the right way.

Version-Release number of selected component (if applicable):
Juno

How reproducible:
Always

Steps to Reproduce:
1. Create many instances of different sizing
2. Go to (http://public_vip/dashboard/project/instances/)
3. Play with the "Size" column sorting until you notice the sorting failure

Actual results:
m1.tiny
m1.small
m1.medium
m1.small

Expected results:
m1.tiny
m1.small
m1.small
m1.medium

Additional info:
All the other columns sorting funcitonnality seems to be working fine

Comment 3 Matthias Runge 2015-10-15 06:09:04 UTC
What would you expect here and why?
Ordered by alphabetical order? RAM? CPU? combination of both? disk space?

Your expected order lists m1.small twice, what's the difference between?

Comment 4 David Hill 2015-10-15 15:42:14 UTC
I can see this issue myself in the lab and I expect to have at least the m1.medium to be at the end or the beginning of the list but not in between two m1.small instances like illustrated below:


Actual results:
m1.tiny
m1.small
m1.medium
m1.small

Expected results:
m1.tiny
m1.small
m1.small
m1.medium

Comment 5 Matthias Runge 2015-10-16 08:03:18 UTC
Could you please answer the question, how your two m1.small instances differ?

Comment 6 David Hill 2015-10-17 01:03:04 UTC
They don't... they are exactly the same.   I created 4 instances that uses the same flavor when they are the same.

nova boot --flavor m1.small --image rhel6 --nic net-id=b0038c80-8082-4a9c-a556-ef5c9aecb4fa test-dave
nova boot --flavor m1.small --image rhel6 --nic net-id=b0038c80-8082-4a9c-a556-ef5c9aecb4fa test-dave2
nova boot --flavor m1.tiny --image rhel6 --nic net-id=b0038c80-8082-4a9c-a556-ef5c9aecb4fa test-dave3
nova boot --flavor m1.medium --image rhel6 --nic net-id=b0038c80-8082-4a9c-a556-ef5c9aecb4fa test-dave4

Comment 9 Itxaka 2015-12-15 11:48:04 UTC
Fix has been merged, will be available on 9

Comment 16 Mike McCune 2016-03-28 22:44:25 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 18 Radomir Dopieralski 2016-12-05 14:39:02 UTC
This has been fixed and all the backports merged a long time ago.