ceph.ceph_admin.osd module
Manage OSD service via cephadm CLI.
- exception ceph.ceph_admin.osd.DevicesNotFound
Bases:
Exception
- class ceph.ceph_admin.osd.OSD(cluster, **config)
Bases:
ApplyMixin,OrchInterface to ceph orch osd.
- SERVICE_NAME = 'osd'
- apply(config: Dict) None
Deploy the ODS service using the provided configuration.
- Parameters
config (Dict) – Key/value pairs provided by the test case to create the service.
Example:
config: command: apply service: osd base_cmd_args: # arguments to ceph orch concise: true verbose: true args: all-available-devices: true dry-run: true unmanaged: true
- out(config: Dict)
Execute the command ceph osd out. :param config: OSD Remove status configuration parameters :type config: Dict
- Returns
output, error returned by the command.
- Example::
- config:
command: out base_cmd_args:
verbose: true
- pos_args:
4
- rm(config: Dict)
Execute the command ceph orch osd rm <OSD ID> .
- Parameters
config (Dict) – OSD Remove configuration parameters
- Returns
output, error returned by the command.
Example:
config: command: rm base_cmd_args: verbose: true pos_args: - 1
- rm_status(config: Dict)
Execute the command ceph orch osd rm status.
- Parameters
config (Dict) – OSD Remove status configuration parameters
- Returns
output, error returned by the command.
Example:
config: command: rm status base_cmd_args: verbose: true args: format: json-pretty
- exception ceph.ceph_admin.osd.OSDServiceFailure
Bases:
Exception