]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: use parsed_container_mem_usage in cephadm.py
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Jan 2025 00:14:30 +0000 (19:14 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Jan 2025 00:46:07 +0000 (19:46 -0500)
commitbd93a46d8a49faa6e38ffdf1aa339532b6f54ea1
tree9508dc15ccd1c02831648676641ae67a7cb970a2
parent395b8d322f2431ab306d131464964658dedf971c
cephadm: use parsed_container_mem_usage in cephadm.py

Replace the use of _parse_mem_usage and related command calls with
parsed_container_mem_usage.

This needs a lot of tests to be updated so that the call functions that
now originate in `container_engines.py` get mocked. funkypatch handles
most of the extra work for us - but it needs to be added to many tests.

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