Failed task remains in status 'running'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Medium
|
Boris Pavlovic |
Bug Description
Rally starts a task, it fails with traceback, but in the list it has status 'running'
Steps to repro:
1. The scenario:
(.venv)
---
HeatStacks.
-
runner:
type: "constant"
times: 10
context:
users:
tenants: 1
2. Start the task:
(.venv)
=======
Task 0995939d-
-------
Exception in thread Thread-10:
Traceback (most recent call last):
File "/usr/local/
self.run()
File "/usr/local/
self.
File "/opt/stack/
"scenario_
AttributeError: 'BenchmarkEngine' object has no attribute 'duration'
Command failed, please check log for more info
2014-10-21 11:01:39.528 29147 CRITICAL rally [-] NoSuchRole: There is no role with name `heat_stack_owner`.
2014-10-21 11:01:39.528 29147 TRACE rally Traceback (most recent call last):
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally sys.exit(main())
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally return cliutils.
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally ret = fn(*fn_args, **fn_kwargs)
2014-10-21 11:01:39.528 29147 TRACE rally File "<string>", line 2, in start
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally return f(*args, **kwargs)
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally api.start_
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally benchmark_
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally result = f(self, *args, **kwargs)
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally with base_ctx.
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally self.setup()
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally ctx.setup()
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally result = f(self, *args, **kwargs)
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally role = self._add_
2014-10-21 11:01:39.528 29147 TRACE rally File "/opt/stack/
2014-10-21 11:01:39.528 29147 TRACE rally raise exceptions.
2014-10-21 11:01:39.528 29147 TRACE rally NoSuchRole: There is no role with name `heat_stack_owner`.
2014-10-21 11:01:39.528 29147 TRACE rally
3. Check the list of tasks:
(.venv)
+------
| uuid | created_at | status | failed | tag |
+------
| 0995939d-
+------
4. Try to get details:
(.venv)
The task 0995939d-
It is expected that the task should be in error status. The results command should print error too.
Changed in rally: | |
assignee: | nobody → Sergey Skripnick (eyerediskin) |
It's MOS bug:
You need to create a "heat_stack_owner" role by hands in MOS