TypeError occurred when get resource list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Undecided
|
zhuli |
Bug Description
Get resource list with limit,marker,name specified where marker and name point to different resources,
because marker doesn't in the candidate resources filtered by name values
during prev/next marker picking progress, then error occurs
for example:
$ curl -g -i -X GET 'http://
HTTP/1.1 500 INTERNAL SERVER ERROR
Content-Type: application/json
Content-Length: 100
X-Openstack-
Date: Wed, 26 Jul 2017 03:04:26 GMT
{"error_name": "INTERNAL_
Traceback (most recent call last):
File "/opt/stack/
return func(**kwargs)
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
**u.
File "/opt/stack/
regex_
File "/opt/stack/
ret = func(*args, **kwargs)
File "/opt/stack/
context, regex_search, **kwargs)
File "/opt/stack/
regex_search, **kwargs)
File "/opt/stack/
res = func(*args, **kwargs)
File "/opt/stack/
File "/opt/stack/
limit, marker, order=order)
File "/opt/stack/
if position - limit >= 0:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
Changed in sahara: | |
assignee: | nobody → zhuli (zhuli) |
Changed in sahara: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/487264 /git.openstack. org/cgit/ openstack/ sahara/ commit/ ?id=0921792d937 7ecc5ef465bb441 f870c3adc54d52
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0921792d9377ecc 5ef465bb441f870 c3adc54d52
Author: zhuli <email address hidden>
Date: Wed Jul 26 11:16:22 2017 +0800
Fix TypeError when get resource list
Fix TypeError when get resource list where marker doesn't in the
candidate resources during prev/next marker picking progress.
Change-Id: I29876b90f0784a 36efa4d4e83f3ee 23e8235f9fa
Closes-Bug: #1706490