ceph.ceph_admin.rbd_mirror module

Manage the RBD Mirror service via the cephadm CLI.

class ceph.ceph_admin.rbd_mirror.RbdMirror(cluster, **config)

Bases: ApplyMixin, Orch

Interface to ceph orch <action> rbd-mirror.

SERVICE_NAME = 'rbd-mirror'
apply(config: Dict) None

Deploy the rbd-mirror 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: rbd-mirror
    base_cmd_args:          # arguments to ceph orch
        concise: true
        verbose: true
        input_file: <name of spec>
    args:
        placement:
            label: rbd-mirror    # either label or node.
            nodes:
                - node1
            sep: " "    # separator to be used for placements