]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fix REFRESHED column of orch ps being unpopulated
authorAdam King <adking@redhat.com>
Fri, 22 Sep 2023 22:34:59 +0000 (18:34 -0400)
committerAdam King <adking@redhat.com>
Mon, 25 Sep 2023 19:02:47 +0000 (15:02 -0400)
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 <adking@redhat.com>
src/pybind/mgr/cephadm/module.py

index b9d2ccc2bb4fb0b33c2a20e956d9c53fb21f2e19..4b6f7cf7a567246b56692b2ed4c7eebb6b38c735 100644 (file)
@@ -912,6 +912,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'),