No error message thrown when wrong value is passed to "--sort-column" argument.

Bug #1770320 reported by lucky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Confirmed
Undecided
Unassigned

Bug Description

No error message thrown when wrong value is passed to "--sort-column" argument.
--sort-column is an argument used for sorting the output of "openstack resource provider usage show" command on the basis of specified column. If we provide invalid column name in command then also it shows output without any error message.

Reproducing steps:
1. By default output of show command:

[root@queens1 ~(keystone_admin)]# openstack resource provider usage show d04d9b87-4bff-47d8-a4ca-06deadcb6f80
+----------------+-------+
| resource_class | usage |
+----------------+-------+
| VCPU | 4 |
| MEMORY_MB | 2048 |
| DISK_GB | 5 |
+----------------+-------+

2. Sorting is done on the basis of "usage" column

[root@queens1 ~(keystone_admin)]# openstack resource provider usage show --sort-column usage d04d9b87-4bff-47d8-a4ca-06deadcb6f80
+----------------+-------+
| resource_class | usage |
+----------------+-------+
| VCPU | 4 |
| DISK_GB | 5 |
| MEMORY_MB | 2048 |
+----------------+-------+

3. Now wrong value is passed in --sort-column argument and same output is visible. however, it must throw some error message.

[root@queens1 ~(keystone_admin)]# openstack resource provider usage show --sort-column DISK_GB d04d9b87-4bff-47d8-a4ca-06deadcb6f80
+----------------+-------+
| resource_class | usage |
+----------------+-------+
| VCPU | 4 |
| MEMORY_MB | 2048 |
| DISK_GB | 5 |
+----------------+-------+

Ideally, command in step no. 3 must generate an error "Invalid value passed in --sort-column argument".

Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

It is an issue of python-openstackclient, not python-novaclient.

Changed in python-novaclient:
status: New → Invalid
Revision history for this message
lucky (luckysingh) wrote :

updating project from python-novaclient to python-openstackclient and status from invalid to new

affects: python-novaclient → python-openstackclient
Changed in python-openstackclient:
status: Invalid → New
Changed in python-openstackclient:
status: New → Confirmed
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.