]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fixing RBD purge error in backend 34758/head
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 23 Apr 2020 10:09:15 +0000 (18:09 +0800)
committerLaura Paduano <lpaduano@suse.com>
Mon, 27 Apr 2020 08:18:19 +0000 (10:18 +0200)
commit1fa34307aa4e945c915fd8154caa34e591fbe947
treee8523054bff1249b83a66ec8aa7c496c9fba3830
parenta8c125c7d78f5cd973863993d258cd717ade4c99
mgr/dashboard: fixing RBD purge error in backend

Current UTC datetime should be used as `now`, otherwise the expiration
comparison might fail on machines with non-UTC localtime.

Fixes: https://tracker.ceph.com/issues/45149
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit 00881adf55cac6116887bfffc506444473f0ee82)
src/pybind/mgr/dashboard/controllers/rbd.py