Skip to contentSkip to conversation

tmap change breaks rbd test

DISCUSSION Sage Weil 1 participant 2 messages Nov 28, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Sage Weil

author
#1 lore raw

Ah, crap.

Okay, I think we should take the existing TMAPRM op and re-add the ENOENT check, and then change the mds to use a new TMAPRMSLOPPY op that doesn't error out.

sage

Quoted 20 lines · Dan Mick

tmap_rm() no longer fails on nonexistent keys
(29fae494d0b1459c8bb934d42446e0ada7355402)

causing rbd_remove of nonexistent image to succeed without error (because, in the case that there's no header object, rbd_remove keeps trying to clean up other bits like rbd_directory; in so doing, it relies on tmap_rm() to fail removing the key from rbd_directory, or else it assumes that this was an old-style image that we've just removed the last trace of and returns success)

This breaks test_rbd.test_remove_dne in test/pybind/test_rbd.py

We could change librbd obviously. Did you scan for other users, though?...maybe there are more lurking

Thoughts?

author
#2 lore raw
Quoted 5 lines · Sage Weil

Ah, crap.

Okay, I think we should take the existing TMAPRM op and re-add the ENOENT check, and then change the mds to use a new TMAPRMSLOPPY op that doesn't error out.

Pushed wip-tmap with a fix. It adds the tmap op code.

Conveniently, the old tmap implementation interpreted op code it didn't understand in exactly the right way (as a sloppy removal).

sage

Quoted 32 lines

sage

Quoted 10 lines · Dan Mick

tmap_rm() no longer fails on nonexistent keys
(29fae494d0b1459c8bb934d42446e0ada7355402)

causing rbd_remove of nonexistent image to succeed without error (because, in the case that there's no header object, rbd_remove keeps trying to clean up other bits like rbd_directory; in so doing, it relies on tmap_rm() to fail removing the key from rbd_directory, or else it assumes that this was an old-style image that we've just removed the last trace of and returns success)

Quoted 10 lines

This breaks test_rbd.test_remove_dne in test/pybind/test_rbd.py

We could change librbd obviously. Did you scan for other users, though?...maybe there are more lurking

Thoughts?

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html