Project

General

Profile

Actions

Bug #12226

closed

Validate list of tasks in YAML

Added by Ivo Jimenez almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Conf file:

roles:
- [client.0]

tasks:
  install

targets:
  issdm@192.168.1.81: ssh-rsa key

The error:

2015-07-07 03:18:08,474.474 CRITICAL:root:  File "virtualenv/bin/teuthology", line 9, in <module>
    load_entry_point('teuthology==0.1.0', 'console_scripts', 'teuthology')()
  File "/teuthology/virtualenv/local/lib/python2.7/site-packages/teuthology-0.1.0-py2.7.egg/scrip$
s/run.py", line 34, in main
    teuthology.run.main(args)
  File "/teuthology/virtualenv/local/lib/python2.7/site-packages/teuthology-0.1.0-py2.7.egg/teuth$
logy/run.py", line 320, in main
    config['tasks'][:0] = init_tasks

2015-07-07 03:18:08,475.475 CRITICAL:root:TypeError: unhashable type

run.py expects a list of tasks (as opposed to a dictionary). Adding a validation for this would make it easier for a user to identify the cause. Adding it to the documentation would also help

Actions

Also available in: Atom PDF