marker option not working

Bug #1053028 reported by Iccha Sethi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Mark Washenberger

Bug Description

Using the marker parameter, gives a 500 error currently as shown below.

 curl -i http://184.106.79.70:8774/v2/bc409a503cef4976868aec0962260a23/servers?marker=1 -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: fe9c6ae8a8334edaa1de6900cf676078"
HTTP/1.1 500 Internal Server Error
Content-Length: 128
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-674edf5d-0ced-4d1f-9815-96bcff41da38
Date: Wed, 19 Sep 2012 17:54:39 GMT

{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

Revision history for this message
Iccha Sethi (iccha-sethi) wrote :
Download full text (6.6 KiB)

Stack trace:

2012-09-19 17:54:39 INFO nova.api.openstack.wsgi [req-674edf5d-0ced-4d1f-9815-96bcff41da38 demo demo] GET http://184.106.79.70:8774/v2/bc409a503
cef4976868aec0962260a23/servers?marker=1
GET http://184.106.79.70:8774/v2/bc409a503cef4976868aec0962260a23/servers?marker=1
2012-09-19 17:54:39 DEBUG nova.api.openstack.wsgi [req-674edf5d-0ced-4d1f-9815-96bcff41da38 demo demo] No Content-Type provided in request from
(pid=30668) get_body /opt/stack/nova/nova/api/openstack/wsgi.py:783
No Content-Type provided in request
2012-09-19 17:54:39 DEBUG nova.api.openstack.compute.servers [req-674edf5d-0ced-4d1f-9815-96bcff41da38 demo demo] Removing options 'marker' from
 query from (pid=30668) remove_invalid_options /opt/stack/nova/nova/api/openstack/compute/servers.py:1293
Removing options 'marker' from query
2012-09-19 17:54:39 DEBUG nova.compute.api [req-674edf5d-0ced-4d1f-9815-96bcff41da38 demo demo] Searching by: {'deleted': False, 'project_id': u
'bc409a503cef4976868aec0962260a23'} from (pid=30668) get_all /opt/stack/nova/nova/compute/api.py:1055
Searching by: {'deleted': False, 'project_id': u'bc409a503cef4976868aec0962260a23'}
2012-09-19 17:54:39 ERROR nova.api.openstack [req-674edf5d-0ced-4d1f-9815-96bcff41da38 demo demo] Caught error: 'unicode' object has no attribut
e 'created_at'

2012-09-19 17:54:39 TRACE nova.api.openstack Traceback (most recent call last):
2012-09-19 17:54:39 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/__init__.py", line 78, in __call__
2012-09-19 17:54:39 TRACE nova.api.openstack return req.get_response(self.application)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
2012-09-19 17:54:39 TRACE nova.api.openstack application, catch_exc_info=False)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
2012-09-19 17:54:39 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-09-19 17:54:39 TRACE nova.api.openstack return resp(environ, start_response)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/opt/stack/keystone/keystone/middleware/auth_token.py", line 278, in __call__
2012-09-19 17:54:39 TRACE nova.api.openstack return self.app(env, start_response)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-09-19 17:54:39 TRACE nova.api.openstack return resp(environ, start_response)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-09-19 17:54:39 TRACE nova.api.openstack return resp(environ, start_response)
2012-09-19 17:54:39 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-09-19 17:54:39 TRACE nova.api.openstack return resp(environ, start_response)
2012-09-19 17:54:39 TRACE nova.api.openstack Fi...

Read more...

Revision history for this message
Iccha Sethi (iccha-sethi) wrote :

So basically, it is expecting a marker object, but it is receiving a string/unicode.

Changed in nova:
assignee: nobody → Mark Washenberger (markwash)
Changed in nova:
status: New → In Progress
importance: Undecided → High
milestone: none → folsom-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/13309

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/13302
Committed: http://github.com/openstack/nova/commit/09b903ed5e3306cf200328f41ce6df371923d03d
Submitter: Jenkins
Branch: master

commit 09b903ed5e3306cf200328f41ce6df371923d03d
Author: Mark Washenberger <email address hidden>
Date: Wed Sep 19 18:41:03 2012 +0000

    Fix marker pagination for /servers

    Fixes bug 1053028.

    Recent changes to pagination required passing in full sqlalchemy objects
    into paginate_query. However, calls to paginate_query were passing in
    strings.

    Change-Id: Ib1396a78a12aef1a9cdc31f3624af30f19da44b5

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (milestone-proposed)

Reviewed: https://review.openstack.org/13309
Committed: http://github.com/openstack/nova/commit/7d5a10f6f70cf8a9242c5321ff5cfa5746fb37f8
Submitter: Jenkins
Branch: milestone-proposed

commit 7d5a10f6f70cf8a9242c5321ff5cfa5746fb37f8
Author: Mark Washenberger <email address hidden>
Date: Wed Sep 19 18:41:03 2012 +0000

    Fix marker pagination for /servers

    Fixes bug 1053028.

    Recent changes to pagination required passing in full sqlalchemy objects
    into paginate_query. However, calls to paginate_query were passing in
    strings.

    Change-Id: Ib1396a78a12aef1a9cdc31f3624af30f19da44b5
    (cherry picked from commit 09b903ed5e3306cf200328f41ce6df371923d03d)

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
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.