]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: replace get_container_stats in cephadm.py
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Jan 2025 23:49:01 +0000 (18:49 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 5 Feb 2025 18:13:06 +0000 (13:13 -0500)
commit32fe8aacc983cfcf36f0e9088b145437b09be9bc
tree12da5a29b8fd28e76436dccfef3576b6cc1e8a32
parent3154cd228ba836a3925d06e81d2cdb4e15b71aa0
cephadm: replace get_container_stats in cephadm.py

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

Fix up a bunch of tests.

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