task results show "failed" on running task

Bug #1539096 reported by Yair Fried on 2016-01-28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Andrey Kurilin

Bug Description

Trying to retrieve results of a running task reports task as "failed"

(rally)[cloud-user@debugjob-yfried-rallytest-tester ~]$ rally task status --uuid bc822b2d-0e76-4ee7-9d57-a1b245bc986c
Task bc822b2d-0e76-4ee7-9d57-a1b245bc986c: running
(rally)[cloud-user@debugjob-yfried-rallytest-tester ~]$ rally task detailed --uuid bc822b2d-0e76-4ee7-9d57-a1b245bc986c

Task bc822b2d-0e76-4ee7-9d57-a1b245bc986c: running

* To plot HTML graphics with this data, run:
 rally task report bc822b2d-0e76-4ee7-9d57-a1b245bc986c --out output.html

* To generate a JUnit report, run:
 rally task report bc822b2d-0e76-4ee7-9d57-a1b245bc986c --junit --out output.xml

* To get raw JSON output of task results, run:
 rally task results bc822b2d-0e76-4ee7-9d57-a1b245bc986c

(rally)[cloud-user@debugjob-yfried-rallytest-tester ~]$ rally task results --uuid bc822b2d-0e76-4ee7-9d57-a1b245bc986c
The task bc822b2d-0e76-4ee7-9d57-a1b245bc986c marked as 'failed'. Results available when it is 'finished' .

(rally)[cloud-user@debugjob-yfried-rallytest-tester ~]$ rally --version

Revision history for this message
Mikhail Chernik (mchernik) wrote :

Also task in such state cannot be aborted:

(.venv) developer@fuel:stack$ rally --nodebug task list | grep e4191b69-b856-423a-86cb-faae09d53d85
| e4191b69-b856-423a-86cb-faae09d53d85 | 9b5d28c8-c3a2-11e5-94e0-0cc47a15b3a0 | 2016-01-27 22:11:41.808060 | 0:00:09.341767 | running | 10_env_run_rally/98/3f7ceb47 |

(.venv) developer@fuel:stack$ rally --nodebug task results e4191b69-b856-423a-86cb-faae09d53d85
The task e4191b69-b856-423a-86cb-faae09d53d85 marked as 'failed'. Results available when it is 'finished' .

(.venv) developer@fuel:stack$ rally --version

(.venv) developer@fuel:stack$ rally --nodebug task abort e4191b69-b856-423a-86cb-faae09d53d85
2016-01-28 21:07:06.373 18875 ERROR oslo_db.sqlalchemy.exc_filters [-] DBAPIError exception wrapped from (psycopg2.DataError) invalid input value for enum enum_tasks_status: "soft_aborting"
LINE 1: ...6cb-faae09d53d85' AND tasks.status IN ('running', 'soft_abor...
 [SQL: 'UPDATE tasks SET updated_at=%(updated_at)s, status=%(status)s WHERE tasks.uuid = %(uuid_1)s AND tasks.status IN (%(status_1)s, %(status_2)s)'] [parameters: {'status': 'aborting', 'uuid_1': u'e4191b69-b856-423a-86cb-faae09d53d85', 'updated_at': datetime.datetime(2016, 1, 28, 21, 7, 6, 371828), 'status_1': 'running', 'status_2': 'soft_aborting'}]
2016-01-28 21:07:06.373 18875 ERROR oslo_db.sqlalchemy.exc_filters Traceback (most recent call last):
2016-01-28 21:07:06.373 18875 ERROR oslo_db.sqlalchemy.exc_filters File "/opt/stack/.venv/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context

full traceback: http://paste.openstack.org/show/485326/

Revision history for this message
Andrey Kurilin (andreykurilin) wrote :

@mchernik: your issue is not related to original bug.

Changed in rally:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Andrey Kurilin (andreykurilin) wrote :
Changed in rally:
assignee: nobody → Andrey Kurilin (andreykurilin)
Changed in rally:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

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

commit b8e858d6b6c5d20ff8e1ab5383cb0eac4ae0a60d
Author: Andrey Kurilin <email address hidden>
Date: Tue Mar 8 16:23:00 2016 +0200

    Print proper status in task results

    If there are no results for task, `rally task results` prints message that
    task is in failed status, but it can be not true(tasks in running state do
    not have results).

    Change-Id: I66b606bd89bdad0478cce35d8d68a736bc6eb34d
    Closes-Bug: #1539096

Changed in rally:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/rally 0.4.0

This issue was fixed in the openstack/rally 0.4.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers