ceph.ceph_admin.ps module

Module that interfaces with ceph orch ps CLI.

class ceph.ceph_admin.ps.PSMixin

Bases: object

CLI that list daemons known to orchestrator.

ps(config: Optional[Dict] = None) Tuple

Execute the command ceph orch ps <args>.

Parameters

config (Dict) – The key/value pairs passed from the test case.

Returns

output, error returned by the command.

Example:

Testing ceph orch ps

config:
    command: ps
    base_cmd_args:
        verbose: true
        format: json | json-pretty | xml | xml-pretty | plain | yaml
    args:
        hostname: <hostname>
        service_name: <name of service>
        daemon_type: <type of daemon>
        daemon_id: <id of the daemon>
        refresh: true