]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fixing RBD purge error in backend
authorKiefer Chang <kiefer.chang@suse.com>
Thu, 23 Apr 2020 10:09:15 +0000 (18:09 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Thu, 30 Apr 2020 03:12:35 +0000 (11:12 +0800)
commit88661f044eaa8ab6f42a77ef30b06600004261fa
tree1683fec70692c007a3de72c5e5596cdc49206946
parent91612cc8acf7c24fff7ce2002fb46d5179515ef8
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)

Conflicts:
src/pybind/mgr/dashboard/controllers/rbd.py
- Namespace is not supported nautilus.
- Use logger instance from mgr.
src/pybind/mgr/dashboard/controllers/rbd.py