Re: ceph orch apply [osd, mon] -i YAML file not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Did you `alias ceph='cephadm shell -- ceph'?

Then

cat /root/osd_spec.yml | ceph orch apply -i -

should do the trick.

Nevertheless. I'll remove the alias command in

> https://docs.ceph.com/docs/master/cephadm/install/?highlight=alias#enable-ceph-cli immediately. 

Thanks for the report.


Am 23.07.20 um 22:28 schrieb Hayashida, Mami:
> I am exploring the new cephadm tool by deploying a tiny test cluster using
> OpenStack VMs, but have encountered the following issue: ceph orch apply
> osd -i <yaml file> command fails with "No such file or directory: <yaml
> file>".   (Monitor setup with a yaml file resulted in the same error)
> 
> ```
> root@octopus-mon-1:~# ls -lh
> total 12K
> drwxr-xr-x 2 root root 4.0K Jul 23 14:20 Playbooks
> -rw-r--r-- 1 root root   99 Jul 23 16:16 mon_spec.yml
> -rw-r--r-- 1 root root  127 Jul 23 16:03 osd_spec.yml
> 
> root@octopus-mon-1:~# cat osd_spec.yml
> ---
> service_type: osd
> service_id: default_drive_group
> placement:
>   host_pattern: 'octopus-osd-[1-3]'
> data_devices:
>   all: true
> 
> root@octopus-mon-1:~# ceph orch apply osd -i /root/osd_spec.yml --dry-run
>  --verbose
> INFO:cephadm:Inferring fsid 9e87977c-cd16-11ea-b571-fa163ec9a1ad
> INFO:cephadm:Inferring config
> /var/lib/ceph/9e87977c-cd16-11ea-b571-fa163ec9a1ad/mon.octopus-mon-1/config
> INFO:cephadm:Using recent ceph image ceph/ceph:v15
> parsed_args: Namespace(admin_socket=None, block=False, cephconf=None,
> client_id=None, client_name=None, cluster=None, cluster_timeout=None,
> completion=False, help=False, input_file='/root/osd_spec.yml',
> output_file=None, output_format=None, period=1, setgroup=None,
> setuser=None, status=False, verbose=True, version=False, watch=False,
> watch_channel=None, watch_debug=False, watch_error=False, watch_info=False,
> watch_sec=False, watch_warn=False), childargs: ['orch', 'apply', 'osd',
> '--dry-run']
> Can't open input file /root/osd_spec.yml: [Errno 2] No such file or
> directory: '/root/osd_spec.yml'
> 
> root@octopus-mon-1:~# ceph orch --version
> INFO:cephadm:Inferring fsid 9e87977c-cd16-11ea-b571-fa163ec9a1ad
> INFO:cephadm:Inferring config
> /var/lib/ceph/9e87977c-cd16-11ea-b571-fa163ec9a1ad/mon.octopus-mon-1/config
> INFO:cephadm:Using recent ceph image ceph/ceph:v15
> ceph version 15.2.4 (7447c15c6ff58d7fce91843b705a268a1917325c) octopus
> (stable)
> 
> 
> 
> 
> *Mami Hayashida*
> *Research Computing Associate*
> Univ. of Kentucky ITS Research Computing Infrastructure
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
> 

-- 
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg). Geschäftsführer: Felix Imendörffer

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux