报错信息如下:Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory
在 Cephadm shell 中运行命令添加新的 Mon 时报错
1 2 3 4 5 6 7 8 9
root@storage0:/# ceph orch daemon add mon storage1:10.0.1.3 Error EINVAL: cephadm exited with an error code: 1, stderr: Non-zero exit code 125 from /usr/bin/podman container inspect --format {{.State.Status}} ceph-a8acabb2-9026-11ee-89dc-31e191538d59-mon-flexbj-storage1 /usr/bin/podman: stderr Error: error inspecting object: no such container ceph-a8acabb2-9026-11ee-89dc-31e191538d59-mon-flexbj-storage1 Non-zero exit code 125 from /usr/bin/podman container inspect --format {{.State.Status}} ceph-a8acabb2-9026-11ee-89dc-31e191538d59-mon.flexbj-storage1 /usr/bin/podman: stderr Error: error inspecting object: no such container ceph-a8acabb2-9026-11ee-89dc-31e191538d59-mon.flexbj-storage1 Deploy daemon mon.flexbj-storage1 ... Non-zero exit code 125 from /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint stat --init -e CONTAINER_IMAGE=quay.io/ceph/ceph@sha256:8e1c0c287ee035aa36699c1340da870ebf6d2b1effb327c012d917628367d9df -e NODE_NAME=flexbj-storage1 -e CEPH_USE_RANDOM_NONCE=1 quay.io/ceph/ceph@sha256:8e1c0c287ee035aa36699c1340da870ebf6d2b1effb327c012d917628367d9df -c %u %g /var/lib/ceph stat: stderr Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory ERROR: Failed to extract uid/gid for path /var/lib/ceph: Failed command: /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint stat --init -e CONTAINER_IMAGE=quay.io/ceph/ceph@sha256:8e1c0c287ee035aa36699c1340da870ebf6d2b1effb327c012d917628367d9df -e NODE_NAME=flexbj-storage1 -e CEPH_USE_RANDOM_NONCE=1 quay.io/ceph/ceph@sha256:8e1c0c287ee035aa36699c1340da870ebf6d2b1effb327c012d917628367d9df -c %u %g /var/lib/ceph: Error: container-init binary not found on the host: stat /usr/libexec/podman/catatonit: no such file or directory
此时可以看到在新的机器 storage1 上 node-exporter service 并没有启动成功,参考链接 4 在新的机器上运行如下命令之后成功