]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
sequential, parallel: allow entries to be references to top-level config
authorSage Weil <sage@inktank.com>
Mon, 22 Jul 2013 20:03:24 +0000 (13:03 -0700)
committerSage Weil <sage@inktank.com>
Tue, 23 Jul 2013 22:38:29 +0000 (15:38 -0700)
commit68888862a1464eedd9ccf83ada7c32888f97f31c
treec3e8bff8c33bc69b9e2a24b852138d9b165bcecb
parent77cae4bf35424810f6c69218076246b677eb8fec
sequential, parallel: allow entries to be references to top-level config

Often we want to build a test collection that substitutes different
sequences of tasks into a parallel/sequential construction.  However, the
yaml combination that happens when generating jobs is not smart enough to
substitute some fragment into a deeply-nested piece of yaml.

Instead, make these sequences top-level entries in the config dict, and
reference them.  For example:

tasks:
- install:
- ceph:
- parallel:
  - workload
  - upgrade-sequence
workload:
  workunit:
    - something
upgrade-sequence:
  install.restart: [osd.0, osd.1]

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/parallel.py
teuthology/task/sequential.py