diff options
author | Sebastian Wagner <sebastian.wagner@suse.com> | 2019-05-09 10:41:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-09 10:41:53 +0200 |
commit | 615b11b9c68f7de6f25c9fbf419c38e92e618c2a (patch) | |
tree | 2af1f539bc1ea6127f8cca03552bf5abe00d0ec1 /src/pybind/mgr/test_orchestrator/module.py | |
parent | Merge pull request #27855 from tchaikov/wip-ceph-release (diff) | |
parent | mgr/orchestrator: add progress events to all orchestrators (diff) | |
download | ceph-615b11b9c68f7de6f25c9fbf419c38e92e618c2a.tar.xz ceph-615b11b9c68f7de6f25c9fbf419c38e92e618c2a.zip |
Merge pull request #26654 from sebastian-philipp/orchestrator-progress
mgr/orchestrator: add progress events to all orchestrators
Reviewed-by: Juan Miguel Olmo MartÃnez <jolmomar@redhat.com>
Diffstat (limited to 'src/pybind/mgr/test_orchestrator/module.py')
-rw-r--r-- | src/pybind/mgr/test_orchestrator/module.py | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/pybind/mgr/test_orchestrator/module.py b/src/pybind/mgr/test_orchestrator/module.py index be105f69dfc..236207358c8 100644 --- a/src/pybind/mgr/test_orchestrator/module.py +++ b/src/pybind/mgr/test_orchestrator/module.py @@ -95,19 +95,10 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): The implementation is similar to the Rook orchestrator, but simpler. """ - def _progress(self, *args, **kwargs): - try: - self.remote("progress", *args, **kwargs) - except ImportError: - # If the progress module is disabled that's fine, - # they just won't see the output. - pass def wait(self, completions): self.log.info("wait: completions={0}".format(completions)) - incomplete = False - # Our `wait` implementation is very simple because everything's # just an API call. for c in completions: @@ -121,9 +112,6 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): if c.is_complete: continue - if not c.is_read: - self._progress("update", c.id, c.message, 0.5) - try: c.execute() except Exception as e: @@ -132,17 +120,8 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): )) c.exception = e c._complete = True - if not c.is_read: - self._progress("complete", c.id) - else: - if c.is_complete: - if not c.is_read: - self._progress("complete", c.id) - - if not c.is_complete: - incomplete = True - return not incomplete + return all(c.is_complete for c in completions) def available(self): return True, "" |