Add osds argument to the osd-in/osd-out action

The `osds` parameter has been copied from function start/stop to preserve
the same functionality. By default, osd-in/osd-out needs list of IDs as
an argument or it will not do anything (previously, it applied the change
to all the osds). It's possible to take in/out *all* with provided `osds`
parameter as `all`.

Closes-Bug: #1910150
Change-Id: I0275f015e2d0bbbb661d2b7dea59c320ba6c021c
This commit is contained in:
Robert Gildein
2021-01-08 15:29:39 +01:00
parent e22f602544
commit e928f1376c
7 changed files with 246 additions and 122 deletions

View File

@@ -9,11 +9,21 @@ osd-out:
\
USE WITH CAUTION - Mark unit OSDs as 'out'.
Documentation: https://jaas.ai/ceph-osd/
params:
osds:
description: A comma-separated list of OSD IDs to start (or keyword 'all')
required:
- osds
osd-in:
description: |
\
Set the local osd units in the charm to 'in'.
Documentation: https://jaas.ai/ceph-osd/
params:
osds:
description: A comma-separated list of OSD IDs to start (or keyword 'all')
required:
- osds
list-disks:
description: |
\