Error 'unsupported operand type(s)' after 'rally task list'

Bug #1443377 reported by Sergey Galkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
Liyingjun
oslo.db
Opinion
Low
Liyingjun

Bug Description

(.venv)developer@fuel:stack$ rally task list
2015-04-13 10:45:23.472 16602 RALLYDEBUG rally.cmd.cliutils [-] INFO logs from urllib3 and requests module are hide.
2015-04-13 10:45:23.473 16602 RALLYDEBUG rally.cmd.cliutils [-] ERROR log from boto module is hide.
2015-04-13 10:45:23.473 16602 INFO rally.common.utils [-] Loading plugins from directories /opt/rally/plugins//*
2015-04-13 10:45:23.474 16602 INFO rally.common.utils [-] Loaded module with plugins: /opt/rally/plugins/keystone_plugin.py
2015-04-13 10:45:23.475 16602 INFO rally.common.utils [-] Loaded module with plugins: /opt/rally/plugins/sample_plugin.py
2015-04-13 10:45:23.476 16602 INFO rally.common.utils [-] Loaded module with plugins: /opt/rally/plugins/mox.py
2015-04-13 10:45:26.329 16602 ERROR rally.cmd.cliutils [-] unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils Traceback (most recent call last):
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils File "/opt/stack/.venv/lib/python2.7/site-packages/rally/cmd/cliutils.py", line 452, in run
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils ret = fn(*fn_args, **fn_kwargs)
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils File "<string>", line 2, in list
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils File "/opt/stack/.venv/lib/python2.7/site-packages/rally/cmd/envutils.py", line 66, in default_from_global
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils return f(*args, **kwargs)
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils File "/opt/stack/.venv/lib/python2.7/site-packages/rally/cmd/commands/task.py", line 481, in list
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils x["duration"] = x["updated_at"] - x["created_at"]
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils TypeError: unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'
2015-04-13 10:45:26.329 16602 TRACE rally.cmd.cliutils
unsupported operand type(s) for -: 'NoneType' and 'datetime.datetime'

Changed in rally:
status: New → Triaged
importance: Undecided → Medium
Liyingjun (liyingjun)
Changed in rally:
assignee: nobody → Liyingjun (liyingjun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

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

Changed in rally:
status: Triaged → In Progress
Liyingjun (liyingjun)
Changed in oslo.db:
assignee: nobody → Liyingjun (liyingjun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/176583
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=2feb1ba8a958769bb7eeceeefa97f14bb286fc22
Submitter: Jenkins
Branch: master

commit 2feb1ba8a958769bb7eeceeefa97f14bb286fc22
Author: liyingjun <email address hidden>
Date: Thu Apr 23 10:00:23 2015 +0800

    Set default value for updated_at

    Change-Id: If774a778fd7e95743a7ec1f7a4059a7de1fcc930
    Closes-bug: #1443377

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
milestone: none → 0.0.4
Changed in rally:
status: Fix Committed → Fix Released
Changed in oslo.db:
status: New → Opinion
importance: Undecided → Low
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.