Bug #10052
LibRadosTwoPools[EC]PP.PromoteSnap failure
0%
Description
ubuntu@teuthology:/a/samuelj-2014-11-07_21:48:36-rados-wip-sam-testing-wip-testing-vanilla-fixes-basic-multi/590439
ubuntu@teuthology:/a/samuelj-2014-11-07_21:48:36-rados-wip-sam-testing-wip-testing-vanilla-fixes-basic-multi/590102
ubuntu@teuthology:/a/samuelj-2014-11-07_21:48:36-rados-wip-sam-testing-wip-testing-vanilla-fixes-basic-multi/590367
Related issues
Associated revisions
ceph_test_rados_api_tier: fix cleanup of whiteouts
Doing a normal DELETE on a whiteout returns ENOENT. Use the IGNORE_CACHE
flag to make sure it removes the whiteout, too.
Fixes: #10052
Signed-off-by: Sage Weil <sage@redhat.com>
ceph_test_rados_api_tier: fix cleanup of whiteouts
Doing a normal DELETE on a whiteout returns ENOENT. Use the IGNORE_CACHE
flag to make sure it removes the whiteout, too.
Fixes: #10052
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8dde6a61921798aa188bd69406c8fa7afeb96b45)
Conflicts:
src/test/librados/TestCase.cc
for it of type ObjectIterator:
- use it->first instead of it->get_oid()
- use it->second instead of it->get_locator()
History
#1 Updated by Sage Weil over 9 years ago
ubuntu@teuthology:/a/sage-2014-11-11_14:57:42-smoke-wip-warn-max-pg-distro-basic-multi/596722
#2 Updated by Sage Weil over 9 years ago
ubuntu@teuthology:/a/sage-2014-11-12_13:30:37-smoke-wip-warn-max-pg-distro-basic-multi/598501
#3 Updated by Sage Weil over 9 years ago
- Status changed from New to In Progress
- Source changed from other to Q/A
// read baz
{
bufferlist bl;
ASSERT_EQ(-ENOENT, ioctx.read("baz", bl, 1, 0));
}
I think this usually doesn't trigger a whiteout, but if there is any failure injection is may. And when it does, the test cleanup code enumerates objects and then does remove()... which fails with ENOENT on a whiteout. Strange that we haven't seen this before. :/
Fix is to make the test cleanup code use a stronger remove() function that also zaps whiteouts. I'll use the IGNORE_CACHE for this ...
#4 Updated by Sage Weil over 9 years ago
- Status changed from In Progress to Fix Under Review
#5 Updated by Sage Weil over 9 years ago
- Status changed from Fix Under Review to Pending Backport
#6 Updated by Nathan Cutler almost 9 years ago
- Backport set to firefly
- Regression set to No
#7 Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved