Hello,
I have added to the
https://github.com/ceph/ceph-ansible/issues/4955 issue how I solved
this problem, in short, it requires you to set the PATH inside of the environment keyword
in all relevant files to something like:
environment:
CEPH_VOLUME_DEBUG: 1
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' +
ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else
None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
PYTHONIOENCODING: utf-8
PATH: "{{ ansible_env.PATH }}:/Path/To/Ceph-Volume"
If you are unsure of what I have done please check the ansible docs:
https://docs.ansible.com/ansible/latest/reference_appendices/faq.html
Kind regards
Gabryel
________________________________
From: sachin.nicky(a)gmail.com <sachin.nicky(a)gmail.com>
Sent: 29 June 2020 19:24
To: ceph-users(a)ceph.io <ceph-users(a)ceph.io>
Subject: [ceph-users] Issue with ceph-ansible installation, No such file or directory
Error occurs here:
- name: look up for ceph-volume rejected devices
ceph_volume:
cluster: "{{ cluster }}"
action: "inventory"
register: rejected_devices
environment:
CEPH_VOLUME_DEBUG: 1
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' +
ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else
None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
PYTHONIOENCODING: utf-8
With Error:
fatal: [18.225.11.17]: FAILED! => changed=false
cmd: ceph-volume inventory --format=json
msg: '[Errno 2] No such file or directory'
rc: 2
I think ansible is not able to found the ceph-volume command. How can i fix this?
_______________________________________________
ceph-users mailing list -- ceph-users(a)ceph.io
To unsubscribe send an email to ceph-users-leave(a)ceph.io
--
This e-mail and any attachments may contain confidential, copyright and or privileged
material, and are for the use of the intended addressee only. If you are not the intended
addressee or an authorised recipient of the addressee please notify us of receipt by
returning the e-mail and do not use, copy, retain, distribute or disclose the information
in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily
of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free
from viruses and we cannot accept liability for any damage which you may sustain as a
result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with
its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot,
Oxfordshire, OX11 0DE, United Kingdom