Share list sorted by 'availability_zone' return 'wrong sorting key' error.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Confirmed
|
Medium
|
Jon Cui |
Bug Description
Description
===========
List shares CLI with sorting key 'availability_zone' return http 400 error,
and error message is "ERROR: Invalid input received: Wrong sorting key provided - 'availability_
Steps to reproduce
==================
* Run manila list command with sorting key named 'availability_
for instance, run 'manila list --sort-key availability_zone --sort-dir asc' and check
returned text.
Expected result
===============
# manila list --sort-key availability_zone --sort-dir asc
+------
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+------
| 7edf862c-
| 23172497-
| bdea38e3-
| 97bafa3a-
+------
Actual result
=============
# manila list --sort-key availability_zone --sort-dir asc
ERROR: Invalid input received: Wrong sorting key provided - 'availability_
Environment
===========
version: Train
Changed in manila: | |
assignee: | nobody → Jon Cui (czl389) |
description: | updated |
summary: |
- Share list sorted by 'availability_zone' return http 400 error. + Share list sorted by 'availability_zone' return 'wrong sorting key' + error. |
description: | updated |
description: | updated |
Fix proposed to master in https:/ /review. opendev. org/c/openstack /python- manilaclient/ +/782635. Seems we will need to backport this to Train. Thanks Jon Cui!