]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: update timestamp on repeat daemon/service events 56080/head
authorAdam King <adking@redhat.com>
Wed, 18 Oct 2023 18:00:05 +0000 (14:00 -0400)
committerAdam King <adking@redhat.com>
Wed, 13 Mar 2024 14:27:56 +0000 (10:27 -0400)
commit714363941720b52f96e3dff19209be0a4bd1da7e
treeaad76e9d9d8cd8f2bdcd501d2aaf2fed6196959d
parentd6bd66b2d2299d93dad6475222c6d2af3f41fd8c
mgr/cephadm: update timestamp on repeat daemon/service events

If you have a daemon/service event and then an identical
event happens later (e.g. the same daemon is redeployed
multiple times) the events are not updated on the repeat
instances. In cases like this I think it makes more
sense to update the timestamp so users can see the most
recent time the event happened.

Fixes: https://tracker.ceph.com/issues/63238
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 13512cc202c90abd6c5f1e2747d121cc07689d1b)
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/tests/test_cephadm.py