From: Adam King Date: Fri, 22 Sep 2023 22:34:59 +0000 (-0400) Subject: mgr/cephadm: fix REFRESHED column of orch ps being unpopulated X-Git-Tag: v18.2.1~208^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=37af9b9243cd3dbba9dc7eec37f1c33876af0478;p=ceph.git mgr/cephadm: fix REFRESHED column of orch ps being unpopulated The way the daemon ls data was processed was changed in https://github.com/ceph/ceph/commit/1fd4132c7c03602719f29230732b12c8afa04779 and it seems that commit removed a line that set the last_refresh field. This commit just adds it back in the new location after the change. Without this in "ceph orch ps" the REFRESHED column for every daemon just reports "-" Fixes: https://tracker.ceph.com/issues/62954 Signed-off-by: Adam King (cherry picked from commit 06cf5bb95205965ab6b625b9069a11fa89ed4fb9) --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index af5d466637b1d..6fc959c0013e7 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -904,6 +904,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, status_desc=status_desc, created=_as_datetime(d.get('created')), started=_as_datetime(d.get('started')), + last_refresh=datetime_now(), last_configured=_as_datetime(d.get('last_configured')), last_deployed=_as_datetime(d.get('last_deployed')), memory_usage=d.get('memory_usage'),