Skip to content

Commit

Permalink
Merge pull request ceph#50101 from adk3798/all-devices-raw
Browse files Browse the repository at this point in the history
mgr/orchestrator: allow deploying raw mode OSDs with --all-available-devices

Reviewed-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
adk3798 authored Mar 7, 2023
2 parents b7ee62d + c034b08 commit b450283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pybind/mgr/orchestrator/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ def _apply_osd(self,
unmanaged: Optional[bool] = None,
dry_run: bool = False,
no_overwrite: bool = False,
method: Optional[OSDMethod] = None,
inbuf: Optional[str] = None # deprecated. Was deprecated before Quincy
) -> HandleCommandResult:
"""
Expand Down Expand Up @@ -930,7 +931,8 @@ def _apply_osd(self,
placement=PlacementSpec(host_pattern='*'),
data_devices=DeviceSelection(all=True),
unmanaged=unmanaged,
preview_only=dry_run
preview_only=dry_run,
method=method
)
]
return self._apply_misc(dg_specs, dry_run, format, no_overwrite)
Expand Down
3 changes: 3 additions & 0 deletions src/python-common/ceph/deployment/drive_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class OSDMethod(str, enum.Enum):
raw = 'raw'
lvm = 'lvm'

def to_json(self) -> str:
return self.value


class DeviceSelection(object):
"""
Expand Down

0 comments on commit b450283

Please sign in to comment.