when "v2/images" API with "changes-since" option is requested, Glance API Server returns 500 code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Henrique Truta |
Bug Description
environment:
Openstack by deployed devstack
reproduce:
1. request "v2/images" with "chnages-since" to Glance API Server.
2. return 500 error code
expect result:
return list filtered out by "changes-since" option
cause:
in "_make_
"timeutils.
Although the argument of "timeutils.
unicode object is set.
syslog:
2014-01-29 15:21:16.444 24293 INFO glance.wsgi.server [561294e8-
File "/usr/local/
result = self.applicatio
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/opt/stack/
return self.app(env, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/lib/
return app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/lib/
response = self.app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
request, **action_args)
File "/opt/stack/
return method(*args, **kwargs)
File "/opt/stack/
member_
File "/opt/stack/
images = self.image_
File "/opt/stack/
items = self.base.
File "/opt/stack/
return super(ImageRepo
File "/opt/stack/
items = self.base.
File "/opt/stack/
items = self.base.
File "/opt/stack/
items = self.base.
File "/opt/stack/
member_
File "/opt/stack/
_make_
File "/opt/stack/
changes_since = timeutils.
File "/opt/stack/
offset = timestamp.
AttributeError: 'unicode' object has no attribute 'utcoffset'
2014-01-29 15:21:16.445 24293 INFO glance.wsgi.server [561294e8-
remark)
in pdb debug, when the value of "changes-since" is changed, it works correctly.
pdb
-----
ll__ /usr/lib/
> /opt/stack/
-> if filters is None:
(Pdb) import datetime
(Pdb) filters
MultiDict(
(Pdb) filters[
*** NameError: name 'changes' is not defined
(Pdb) filters[
(Pdb) filters
MultiDict(
(Pdb) c
> /opt/stack/
-> changes_since = timeutils.
(Pdb) c
2014-01-29 15:29:42.317 24293 INFO glance.wsgi.server [27c9a666-
Changed in glance: | |
assignee: | nobody → Noboru Arai (arai-h) |
status: | New → In Progress |
Changed in glance: | |
importance: | Undecided → Medium |
Changed in glance: | |
assignee: | Noboru Arai (arai-h) → Henrique Truta (henrique-4) |
Changed in glance: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/69819
Review: https:/