Commit e003be8
committed
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 <[email protected]>1 parent 0e5e1aa commit e003be8
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2506 | 2506 | | |
2507 | 2507 | | |
2508 | 2508 | | |
| 2509 | + | |
| 2510 | + | |
2509 | 2511 | | |
2510 | 2512 | | |
2511 | 2513 | | |
2512 | 2514 | | |
2513 | | - | |
| 2515 | + | |
2514 | 2516 | | |
2515 | 2517 | | |
2516 | 2518 | | |
| |||
0 commit comments