]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
parallel: parallel.__exit__ should always wait for greenlets to finish 833/head
authorSamuel Just <sjust@redhat.com>
Mon, 28 Mar 2016 21:02:05 +0000 (14:02 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 29 Mar 2016 19:52:48 +0000 (12:52 -0700)
commit78b602b7f75a9f45273976a195a8b5f1bac736cd
tree5adc99ed8107e602f484f85730f5dea22eb36e4e
parent74f4f4eb8a06f99d9a570e88a4bd2fa8700f63dc
parallel: parallel.__exit__ should always wait for greenlets to finish

Per the class docstring, one gevent (or the with body) throwing an
exception should not stop the other events.  Instead, wait for them to
finish and then reraise the first exception we find.

A concrete problem caused by this is that with multiple parallel
installs, one failure can cause packaging operations on the other nodes
to be unceremoniously killed and left in an inconsistent state.

Signed-off-by: Samuel Just <sjust@redhat.com>
teuthology/parallel.py