]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/progress: expose API from CLI
authorErnesto Puerta <epuertat@redhat.com>
Fri, 5 Sep 2025 15:40:21 +0000 (17:40 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Mon, 8 Sep 2025 16:52:30 +0000 (18:52 +0200)
commite003be839b09793d12ce0cbc65c601771ff895a6
tree4b921354aa4541f9f9a000a5295c855d8b049287
parent0e5e1aa1f09e3bb3c41cbf19bf2a0bfc7d805de8
mgr/progress: expose API from CLI

Fixes: https://tracker.ceph.com/issues/72893
Through cli-api mgr module, users can invoke ceph-mgr Python API from
the CLI. The progress module API was partially exposed. This change
allows them to create progress event from the CLI.

Example:
```bash
ceph mgr module enable cli_api
ceph mgr cli update_progress_event evid_18 "Upgrading foo..." 0.1 --add-to-ceph-s

{
  "evid_18": {
    "message": "Upgrading foo...",
    "progress": 0.10000000149011612,
    "add_to_ceph_s": true
  }
}
```

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
src/pybind/mgr/ceph_module.pyi
src/pybind/mgr/mgr_module.py