Description of problem: Command to get per daemon service events is failing with error : Error EINVAL: invalid command Ref doc : https://docs.ceph.com/en/latest/cephadm/troubleshooting/#per-service-and-per-daemon-events Getting events per service is working as expected with the given command : # ceph orch ls --service_name=mon --format yaml service_type: mon service_name: mon placement: label: mon status: container_image_id: c1a8b8b28c915288d9ab4485a9611590ef247e587875464613d1da7fdaed356d container_image_name: mix created: '2021-03-27T03:44:24.493744Z' last_refresh: '2021-03-30T04:10:38.948346Z' running: 5 size: 5 # ceph orch ls --service_name=mgr --format yaml service_type: mgr service_name: mgr placement: label: mgr status: container_image_id: c1a8b8b28c915288d9ab4485a9611590ef247e587875464613d1da7fdaed356d container_image_name: mix created: '2021-03-27T03:41:12.516263Z' last_refresh: '2021-03-30T04:10:39.833181Z' running: 3 size: 2 But command not working for per daemon is failing : # ceph orch ceph --service-type mds --daemon-id=ceph-pdhiran-adm-1616815085515-node2-mon-mgr-mds-node-exporter.ppdhsz --format yaml Invalid command: ceph not in start|stop|restart|redeploy|reconfig orch start|stop|restart|redeploy|reconfig <service_name> : Start, stop, restart, redeploy, or reconfig an entire service (i.e. all daemons) Error EINVAL: invalid command [ceph: root@ceph-pdhiran-adm-1616815085515-node1-mon-installer-node-exporte ceph]# ceph orch ceph --service-type mgr --daemon-id=ceph-pdhiran-adm-1616815085515-node1-mon-installer-node-exporte.tlovmj --format yaml Invalid command: ceph not in start|stop|restart|redeploy|reconfig orch start|stop|restart|redeploy|reconfig <service_name> : Start, stop, restart, redeploy, or reconfig an entire service (i.e. all daemons) Error EINVAL: invalid command with the help provided with the error message, tried the modified command, but it says No service reported. # ceph orch ls --service_type mgr --service_name ceph-pdhiran-adm-1616815085515-node1-mon-installer-node-exporte.tlovmj --format yaml No services reported Version-Release number of selected component (if applicable): ceph version 16.1.0-1084.el8cp (899d93a5c7913d6952438f4b48d29d1cef2aaa2a) pacific (rc) How reproducible: Always Steps to Reproduce: 1. Deploy a ceph cluster. 2. Follow the upstream guide and execute the comamnds. Actual results: Commnad fails with error Expected results: Show display daemon event details Additional info:
The documentation for the single daemon events command is wrong. It should be something like "ceph orch ps --service-name <service-name> --daemon-id <daemon-id> --format yaml" For example, I can use that setup to get the events for a daemon "mon.vm-02" I had on a cluster: [ceph: root@vm-00 /]# ceph orch ps --service-name mon --daemon-id=vm-02 --format yaml daemon_type: mon daemon_id: vm-02 hostname: vm-02 container_id: 47c67e1b6064 container_image_id: 54d9b6d180154d293902d197ed6a1e6279a8f3865989cf687cb36f4c2b630a4a container_image_name: docker.io/amk3798/ceph@sha256:88f74a48e63631ef101179bc65a92f93fc32fd66f8c34e67a3a15711eb985220 container_image_digests: - docker.io/amk3798/ceph@sha256:88f74a48e63631ef101179bc65a92f93fc32fd66f8c34e67a3a15711eb985220 memory_usage: 60261662 version: 17.0.0-2904-g116ef525 status: 1 status_desc: running is_active: false ports: [] last_refresh: '2021-04-08T19:00:28.929137Z' created: '2021-04-08T18:58:37.476052Z' started: '2021-04-08T18:58:37.322669Z' events: - 2021-04-08T18:58:40.505998Z daemon:mon.vm-02 [INFO] "Deployed mon.vm-02 on host 'vm-02'" - 2021-04-08T19:00:19.768095Z daemon:mon.vm-02 [INFO] "Reconfigured mon.vm-02 on host 'vm-02'" I created an upstream PR to change the documentation: https://github.com/ceph/ceph/pull/40712
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:1174