Project

General

Profile

Feature #39093

mgr/orchestrator: add `ceph orchestrator wait`

Added by Sebastian Wagner 8 months ago.

Status:
Fix Under Review
Priority:
Normal
Category:
orchestrator
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
Pull request ID:

Description

Add ceph orchestrator wait that waits for unfinished completions
Replace self._orchestrator_wait([completion]) with yield
Signed-off-by: Sebastian Wagner

The cli then looks like so:

$ ceph 'orchestrator' service ls --wait=false
queued.
$ ceph 'orchestrator' osd create localhost:/dev/xxx --wait=false
queued.
$ ceph orchestrator wait
<read op>
None ceph-mgr localhost None None None
None ceph-mgr localhost None None None
None ceph-mgr localhost None None None
None ceph-mon localhost None None None
None ceph-mon localhost None None None
None ceph-mon localhost None None None
None ceph-osd localhost None None None
None ceph-osd localhost None None None
None ceph-osd localhost None None None
None ceph-osd localhost None None None
create_osds, args=(<orchestrator.DriveGroupSpec object at 0x7f264d4b01d0>, ['localhost']), kwargs={}
None

Also available in: Atom PDF