Advertisement
Guest User

Untitled

a guest
Jan 11th, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. # Crash service spec
  2. [root@ceph02-ar04-mon ceph02_export_state]# cat crash.yaml
  3. ---
  4. service_type: crash
  5. service_name: crash
  6. placement:
  7. host_pattern: '*'
  8.  
  9. # Remove all crash containers from hosts;
  10. [root@ceph02-ar04-mon ceph02_export_state]# ceph orch rm crash
  11. [root@ceph02-ar04-mon ceph02_export_state]# ceph orch ps | grep crash | awk "{print $1}" | wc -l'
  12. 0
  13. [root@ceph02-ar04-mon ceph02_export_state]# ceph orch apply -i crash.yaml --dry-run
  14. [root@ceph02-ar04-mon ceph02_export_state]# ceph orch apply -i crash.yaml
  15.  
  16. # All hosts cannot start Crash containers, due to dangling state left behind;
  17. [root@ceph02-br03-osd-n2 ~]# journalctl -f | grep crash
  18. Jan 11 10:25:48 ceph02-br03-osd-n2 systemd[1]: Starting Ceph crash.ceph02-br03-osd-n2 for fbbe7cac-3324-11eb-8186-34800d5b932c...
  19. Jan 11 10:25:48 ceph02-br03-osd-n2 podman[142883]: Error: no container with name or ID ceph-fbbe7cac-3324-11eb-8186-34800d5b932c-crash.ceph02-br03-osd-n2 found: no such container
  20. Jan 11 10:25:48 ceph02-br03-osd-n2 bash[142905]: Error: Failed to evict container: "": Failed to find container "ceph-fbbe7cac-3324-11eb-8186-34800d5b932c-crash.ceph02-br03-osd-n2" in state: no container with name or ID ceph-fbbe7cac-3324-11eb-8186-34800d5b932c-crash.ceph02-br03-osd-n2 found: no such container
  21. Jan 11 10:25:58 ceph02-br03-osd-n2 bash[142905]: ceph-fbbe7cac-3324-11eb-8186-34800d5b932c-crash.ceph02-br03-osd-n2
  22. Jan 11 10:25:58 ceph02-br03-osd-n2 bash[142905]: Error: error removing storage for container "ceph-fbbe7cac-3324-11eb-8186-34800d5b932c-crash.ceph02-br03-osd-n2": unlinkat /var/lib/containers/storage/overlay/535d1a155410357d03fd52b530d670520a9032a75155ad3f332fc8e34ea2eb93/merged: device or resource busy
  23. Jan 11 10:25:58 ceph02-br03-osd-n2 bash[142905]: Error: error creating container storage: the container name "ceph-fbbe7cac-3324-11eb-8186-34800d5b932c-crash.ceph02-br03-osd-n2" is already in use by "9923a2d26e24598feed3cbc846a4a9ee3214f72c3e513c0d4a91386841b463a2". You have to remove that container to be able to reuse that name.: that name is already in use
  24. Jan 11 10:25:58 ceph02-br03-osd-n2 systemd[1]: ceph-fbbe7cac-3324-11eb-8186-34800d5b932c@crash.ceph02-br03-osd-n2.service: control process exited, code=exited status=125
  25. Jan 11 10:25:59 ceph02-br03-osd-n2 systemd[1]: Failed to start Ceph crash.ceph02-br03-osd-n2 for fbbe7cac-3324-11eb-8186-34800d5b932c.
  26. Jan 11 10:25:59 ceph02-br03-osd-n2 systemd[1]: Unit ceph-fbbe7cac-3324-11eb-8186-34800d5b932c@crash.ceph02-br03-osd-n2.service entered failed state.
  27. Jan 11 10:25:59 ceph02-br03-osd-n2 systemd[1]: ceph-fbbe7cac-3324-11eb-8186-34800d5b932c@crash.ceph02-br03-osd-n2.service failed.
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement