[python-fuelclient] fuel2 node list and node label list sorting doesn't work

Bug #1545460 reported by Vitalii Kulanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
In Progress
Low
Vitalii Kulanov
Mitaka
Won't Fix
Low
Vitalii Kulanov
Newton
In Progress
Low
Vitalii Kulanov

Bug Description

fuel2 node list and node label sort command doesn't work for nodes.

How to reproduce node sorting bug:

1. Deploy fuel-master node and fuel-slave nodes from fuel-community-9.0-3837-2016-02-13_04-58-54 (13 Feb 2016 05:28:22)
2. In CLI mode (fuel-master):
    [root@fuel ~]# fuel2 node list -s name
+----+------+----------+-------------+-------+-----------+-------------------+---------+---------------+--------+
| id | name | status | os_platform | roles | ip | mac | cluster | platform_name | online |
+----+------+----------+-------------+-------+-----------+-------------------+---------+---------------+--------+
| 7 | abc | discover | ubuntu | - | 10.20.0.5 | 08:00:27:4d:97:e3 | None | None | True |
| 4 | _abc | error | ubuntu | - | 10.20.0.3 | 08:00:27:73:3a:d5 | None | None | True |
| 8 | def | discover | ubuntu | - | 10.20.0.4 | 08:00:27:4b:04:ea | None | None | True |
+----+------+----------+-------------+-------+-----------+-------------------+---------+---------------+--------+
3. The output (sorting by name) does not correspond to expected result.

How to reproduce node labels sorting bug:

1 Deploy fuel-master node and fuel-slave nodes from fuel-community-9.0-3837-2016-02-13_04-58-54 (13 Feb 2016 05:28:22)
2. In CLI mode (fuel-master):
    [root@fuel ~]# fuel2 node label list -s label_name
+---------+------------+-------------+
| node_id | label_name | label_value |
+---------+------------+-------------+
| 9 | office1 | a_12 |
| 10 | home | s13 |
| 11 | DataCenter | up365 |
+---------+------------+-------------+
3. The output (sorting by name) does not correspond to expected result.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

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

Changed in fuel:
assignee: nobody → vkulanov (vitaliy-t)
status: New → In Progress
Changed in fuel:
importance: Undecided → Low
milestone: none → 9.0
summary: - [python-fuelclient] fuel2 node list sorting doesn't work for nodes
+ [python-fuelclient] fuel2 node list and node label list sorting doesn't
+ work
description: updated
description: updated
description: updated
Dmitry Pyzhov (dpyzhov)
tags: added: module-client
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-fuelclient (master)

Change abandoned by Vitalii Kulanov (<email address hidden>) on branch: master
Review: https://review.openstack.org/279989
Reason: Any sorting and/or filtering must be done on backend side

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.