← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1405069] [NEW] nova client list not working when pass sort parameter

 

Public bug reported:

nova client send error request url to nova-api

nova --debug list  --all-tenants --deleted --sort name


...
DEBUG (session:162) REQ: curl -i -X GET http://cloudcontroller:8774/v2/d7beb7f28e0b4f41901215000339361d/servers/detail?all_tenants=1&deleted=True&sort_dir=desc&sort_key=name -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}6ba6e70be8c8367deec4e1696758b7dc4a1a891a"
...

ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2a132da-05b0-4db3-84ee-1b8aeb7d0f61)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2a132da-05b0-4db3-84ee-1b8aeb7d0f61)

the url parameter should be passed as 'sort_keys' instead of 'sort_key'

beside, nova-api/nova should handle this exception instead of raise an
internal error(500) this to customer.

** Affects: nova
     Importance: Undecided
     Assignee: Eli Qiao (taget-9)
         Status: New

** Affects: python-novaclient
     Importance: Undecided
     Assignee: Eli Qiao (taget-9)
         Status: New

** Also affects: python-novaclient
   Importance: Undecided
       Status: New

** Changed in: python-novaclient
     Assignee: (unassigned) => Eli Qiao (taget-9)

** Changed in: nova
     Assignee: (unassigned) => Eli Qiao (taget-9)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1405069

Title:
  nova client list not working when pass sort parameter

Status in OpenStack Compute (Nova):
  New
Status in Python client library for Nova:
  New

Bug description:
  nova client send error request url to nova-api

  nova --debug list  --all-tenants --deleted --sort name

  
  ...
  DEBUG (session:162) REQ: curl -i -X GET http://cloudcontroller:8774/v2/d7beb7f28e0b4f41901215000339361d/servers/detail?all_tenants=1&deleted=True&sort_dir=desc&sort_key=name -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}6ba6e70be8c8367deec4e1696758b7dc4a1a891a"
  ...

  ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2a132da-05b0-4db3-84ee-1b8aeb7d0f61)
  ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2a132da-05b0-4db3-84ee-1b8aeb7d0f61)

  the url parameter should be passed as 'sort_keys' instead of
  'sort_key'

  beside, nova-api/nova should handle this exception instead of raise an
  internal error(500) this to customer.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1405069/+subscriptions


Follow ups

References