Skip to content

Commit

Permalink
Merge pull request #43633 from ideepika/wip-rbd-full-try-test-fixups
Browse files Browse the repository at this point in the history
test/librbd: harden RemoveFullTry tests

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
  • Loading branch information
trociny committed Oct 24, 2021
2 parents e7d152f + 6278a04 commit ed9d0b4
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
2 changes: 2 additions & 0 deletions qa/suites/rbd/basic/tasks/rbd_api_tests_old_format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
2 changes: 2 additions & 0 deletions qa/suites/rbd/librbd/workloads/c_api_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
2 changes: 2 additions & 0 deletions qa/suites/rbd/librbd/workloads/c_api_tests_with_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
2 changes: 2 additions & 0 deletions qa/suites/rbd/thrash/workloads/rbd_api_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
conf:
client:
rbd clone copy on read: true
2 changes: 2 additions & 0 deletions qa/suites/rbd/thrash/workloads/rbd_api_tests_journaling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
2 changes: 2 additions & 0 deletions qa/suites/rbd/thrash/workloads/rbd_api_tests_no_locking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
2 changes: 2 additions & 0 deletions qa/suites/rbd/valgrind/workloads/c_api_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ overrides:
- overall HEALTH_
- \(CACHE_POOL_NO_HIT_SET\)
- \(POOL_APP_NOT_ENABLED\)
- is full \(reached quota
- \(POOL_FULL\)
tasks:
- workunit:
clients:
Expand Down
1 change: 1 addition & 0 deletions qa/suites/smoke/basic/tasks/test/rbd_api_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tasks:
- \(PG_
- \(POOL_
- \(CACHE_POOL_
- is full \(reached quota
fs: xfs
- ceph-fuse:
- workunit:
Expand Down
5 changes: 4 additions & 1 deletion src/test/librbd/test_librbd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,8 @@ static void remove_full_try(rados_ioctx_t ioctx, const std::string& image_name,
ssize_t ret;
for (off = 0; off < size; off += len) {
ret = rbd_write_zeroes(image, off, len,
RBD_WRITE_ZEROES_FLAG_THICK_PROVISION, 0);
RBD_WRITE_ZEROES_FLAG_THICK_PROVISION,
LIBRADOS_OP_FLAG_FADVISE_FUA);
if (ret < 0) {
break;
}
Expand All @@ -2164,6 +2165,7 @@ static void remove_full_try(rados_ioctx_t ioctx, const std::string& image_name,

TEST_F(TestLibRBD, RemoveFullTry)
{
REQUIRE(!is_rbd_pwl_enabled((CephContext *)_rados.cct()));
REQUIRE(!is_librados_test_stub(_rados));

rados_ioctx_t ioctx;
Expand All @@ -2188,6 +2190,7 @@ TEST_F(TestLibRBD, RemoveFullTry)
TEST_F(TestLibRBD, RemoveFullTryDataPool)
{
REQUIRE_FORMAT_V2();
REQUIRE(!is_rbd_pwl_enabled((CephContext *)_rados.cct()));
REQUIRE(!is_librados_test_stub(_rados));

rados_ioctx_t ioctx;
Expand Down

0 comments on commit ed9d0b4

Please sign in to comment.