]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fixing RBD purge error in backend 34705/head
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 23 Apr 2020 10:09:15 +0000 (18:09 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Thu, 23 Apr 2020 10:18:27 +0000 (18:18 +0800)
commit00881adf55cac6116887bfffc506444473f0ee82
treed346b01ef83647860e2b7f3df27ec0fdeb829069
parent70839d99ddda633d7fe0f20ae9d0619ca35fa051
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>
src/pybind/mgr/dashboard/controllers/rbd.py