Sort flavors with tenant_id return 500

Bug #1773827 reported by Hongbin Lu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Hongbin Lu

Bug Description

I tried to list flavors with 'tenant_id' as a sort key and neutron server returned 500 response. I expected the response to be 4xx.

  $ openstack network flavor create --service-type L3_ROUTER_NAT dummy-flavor
  $ openstack network flavor create --service-type L3_ROUTER_NAT dummy-flavor2
  $ curl -g -i -X GET "http://127.0.0.1:9696/v2.0/flavors?sort_dir=asc&sort_key=tenant_id" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN"
  HTTP/1.1 500 Internal Server Error
  Content-Type: application/json
  Content-Length: 150
  X-Openstack-Request-Id: req-918c6f4d-97c8-4ebf-8d16-35621eac0cb8
  Date: Tue, 05 Jun 2018 19:05:55 GMT

  {"NeutronError": {"message": "Request Failed: internal server error while
  processing your request.", "type": "HTTPInternalServerError", "detail": ""}}

Hongbin Lu (hongbin.lu)
Changed in neutron:
assignee: nobody → Hongbin Lu (hongbin.lu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lib (master)

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

Changed in neutron:
status: New → In Progress
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

I cannot reproduce the issue in my env(neutron master branch)

http://paste.openstack.org/show/722686/

Revision history for this message
Hongbin Lu (hongbin.lu) wrote :

@Hirofumi Ichihara,

If you do this http://paste.openstack.org/show/722751/ instead, could you reproduce the issue?

description: updated
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

I can do it. thank you.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by boden (<email address hidden>) on branch: master
Review: https://review.opendev.org/570821
Reason: This patch has been stale for awhile now. Moving it to abandoned to clean-up the queue. If this patch is still active, please push an update to it.

Revision history for this message
Brian Haley (brian-haley) wrote :

Seems this has been fixed, closing.

Changed in neutron:
status: In Progress → Invalid
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.