ceph.ceph_admin.cephfs_mirror module

Manage the CephFS Mirror service via the cephadm CLI.

class ceph.ceph_admin.cephfs_mirror.CephfsMirror(cluster, **config)

Bases: ApplyMixin, Orch

Interface to ceph orch <action> rbd-mirror.

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

Execute the command ceph orch apply cephfs-mirror

Parameters
  • config (Dict) – command and service are passed from the test case.

  • op (Str) – operation parameters

Example

config:
    command: apply
    service: cephfs-mirror
    base_cmd_args:          # arguments to ceph orch
        concise: true
        verbose: true
        input_file: <name of spec>
    args:
        placement:
            label: cephfs-mirror    # either label or node.
            nodes:
                - node1
            sep: " "    # separator to be used for placements