]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: update timestamp on repeat daemon/service events 56090/head
authorAdam King <adking@redhat.com>
Wed, 18 Oct 2023 18:00:05 +0000 (14:00 -0400)
committerAdam King <adking@redhat.com>
Sun, 10 Mar 2024 19:45:34 +0000 (15:45 -0400)
commitc5959589b99b439c3ba2b8c63786b90178f418e5
tree3575b46d17db9f0ae2560d15f25be3e702008d3c
parentc2ea977b6956d1f694ccf66acc692fdd979e3baa
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