Traceback when QuotaUsage.updated_at is NULL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Haomai Wang |
Bug Description
2013-07-03 10:14:18 ERROR [cinder.
Traceback (most recent call last):
File "/usr/lib/
action_result = self.dispatch(meth, request, action_args)
File "/usr/lib/
return method(req=request, **action_args)
File "/usr/lib/
**kwargs)
File "/usr/lib/
reservations = QUOTAS.
File "/usr/lib/
project_
File "/usr/lib/
project_
File "/usr/lib/
until_refresh, max_age, project_
File "/usr/lib/
return f(*args, **kwargs)
File "/usr/lib/
timeutils.
TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'
662 @require_context
663 def quota_reserve(
664 until_refresh, max_age, project_id=None):
...
697 elif max_age and (usages[
698 timeutils.
699 refresh = True
summary: |
- Trackback when QuotaUsage.updated_at is NULL + Traceback when QuotaUsage.updated_at is NULL |
Changed in cinder: | |
assignee: | nobody → Haomai Wang (haomai) |
status: | New → Confirmed |
Changed in cinder: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
(usages[ resource] .updated_ at -
timeutils. utcnow( )).seconds >= max_age:
usages[resource] is a instance of QuotaUsage, and QuotaUsage isn't have a column called `updated_at`.