Skip to content

ceph_mgr_module fails to run ceph #27

@Kostoprav19

Description

@Kostoprav19

Hello!

We are deploying ceph clusters using cephadm_bootstrap Ansible module from the collection. All works fine.

Next we try to disable unused ceph modules, but failing. Module tries to run ceph binary directly on the host. But should do cephadm shell ceph ... instead, like ceph_config does it.

Ansible task:

- name: Disable multiple mgr modules
      ceph_mgr_module:
        name: "dashboard"
        state: disable

Error message:

failed: [sd-vm-atda-s3-01.eu-central-2a.core-iaws.icp.corproot.net] (item=dashboard) => {"ansible_loop_var": "item", "changed": false, "cmd": "ceph -n client.admin -k /etc/ceph/ceph.client.admin.keyring --cluster ceph mgr module disable dashboard", "item": "dashboard", "msg": "[Errno 2] No such file or directory: b'ceph'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions