]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: use get_container_image_stats in cephadm.py 61601/head
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 31 Jan 2025 00:04:56 +0000 (19:04 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 5 Feb 2025 18:13:06 +0000 (13:13 -0500)
commit926011ad9d3b6091b83d26df62d2c53238e8135f
treef45cb0a1a2919227572780daf55b1054fd086c07
parente965813da15e02ac640e9cb3635b556e49dcbd30
cephadm: use get_container_image_stats in cephadm.py

Replace the existing get_container_stats_by_image_name with a version
from container_engines.py that returns the parsed results of the container
status command (as a ContainerInfo, None on error).

Fix up a few tests. Part of the test is somewhat pointless now as the
input and the output are both the same ContainerInfo, but this was never
a great test to test parsing anyway.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py
src/cephadm/tests/test_cephadm.py