]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rbd: sanitize the mirror image status peer address after reading from disk
authorJason Dillaman <dillaman@redhat.com>
Fri, 22 Nov 2019 21:39:43 +0000 (16:39 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sat, 23 Nov 2019 14:26:52 +0000 (09:26 -0500)
commit1542d12e1b893166a5bc7b7a4c9a4474078a98be
treee4334aef771a1d2a35ae63a9fbe37ecf2258a138
parenta7542dcf6b82df06af2cc025d592256ec2841871
cls/rbd: sanitize the mirror image status peer address after reading from disk

RADOS upgrade tests were failing when OSDs were partially upgraded since the
entity_addr_t::type overload wasn't being recovered when re-read. Now we will
always sanitize the on-disk entity address after reading it to avoid such
issues of on-disk encoding/decoding.

Fixes: https://tracker.ceph.com/issues/42891
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/rbd/cls_rbd.cc
src/cls/rbd/cls_rbd_types.cc
src/cls/rbd/cls_rbd_types.h