Commit Graph

415 Commits

Author SHA1 Message Date
Jason Dillaman
917f8a037c qa/workunits/rbd: fixed rbd-mirror snapshot comparison loop
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-15 16:35:26 -04:00
Jason Dillaman
02e32fe45a qa/workunits/rbd: fixed missing error code on trap handler
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-15 16:35:26 -04:00
Jason Dillaman
3086f29b64 qa/workunits/rbd: skip rbd-mirror start/stop cases when thrashing daemons
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-15 16:35:26 -04:00
Jason Dillaman
a6a8c8a2ab qa/workunits/rbd: rbd-mirror admin socket commands should retry
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-15 16:35:26 -04:00
Jason Dillaman
1bb6d4fd89 qa/workunits/rbd: don't override rbd-mirror logs if running under teuthology
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-15 16:35:26 -04:00
Jason Dillaman
15a197ed06 qa/workunits/rbd: append rbd-mirror instance number for all-daemon asok command
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-15 16:35:26 -04:00
Mykola Golub
6b752a3859
Merge pull request #21697 from dillaman/wip-18753-1
rbd-mirror: additional thrasher testing

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-04-30 18:25:35 +03:00
Mykola Golub
5bc1d4a51a qa/workunits/rbd: potential race in mirror disconnect test
(due to a typo in get_image_id command arg)

Fixes: http://tracker.ceph.com/issues/23938
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-04-30 09:44:12 +03:00
Jason Dillaman
de4587012d qa/suites/rbd: rbd-mirror fsx stress test
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-04-27 08:34:42 -04:00
Jason Dillaman
2311eff622 qa/suites/rbd: thrash rbd-mirror daemon during tests
Fixes: http://tracker.ceph.com/issues/18753
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-04-23 16:02:59 -04:00
Mykola Golub
7ca8e70471
Merge pull request #21564 from dillaman/wip-23809
rbd: cleanup handling of IEC byte units

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-04-23 09:07:19 +03:00
Jason Dillaman
aa96f44400 qa/workunits/rbd/import_export: update unit formatting
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-04-20 11:31:27 -04:00
Jason Dillaman
3e8b74fb3d qa/workunits/rbd/cli_generic: update unit formatting
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-04-20 11:26:48 -04:00
Ilya Dryomov
b0311db99b
Merge pull request #21522 from idryomov/wip-krbd-lock-timeout-test
qa: krbd_exclusive_option.sh: add lock_timeout test case

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-20 16:21:48 +02:00
Ilya Dryomov
cec0ee3000 qa: krbd_exclusive_option.sh: add lock_timeout test case
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 10:43:35 +02:00
Ilya Dryomov
25869054de qa: krbd_exclusive_option.sh: be more lax about ps states
Allow running this script by hand -- foreground process group vs
background process groups, etc.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 10:43:35 +02:00
Ilya Dryomov
4685368455 qa: krbd_fallocate.sh: add notrim test case
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 09:03:54 +02:00
Ilya Dryomov
a7d89c0794 qa: krbd_fallocate.sh: s/deallocated/zeroes/
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 09:03:54 +02:00
Ilya Dryomov
f6d976b756 qa: krbd_fallocate.sh: parameterize assert_deallocated()
Take num_objects_expected, similar to assert_deallocated_unaligned().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-19 09:03:54 +02:00
Jason Dillaman
3b08c0609c Merge pull request #20460 from colletj/v1_image_creation_disallow
librbd: disallow creation of v1 image format

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-03 09:18:39 -04:00
Jason Dillaman
6885380c24
Merge pull request #18317 from hitoshikamei/master-rbd
rbd: eager-thick provisioning support

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-03-30 08:45:15 -04:00
Jason Dillaman
285a2fdbfc
Merge pull request #20935 from trociny/wip-get-name
librbd: add API function to get image name 

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-03-30 08:44:28 -04:00
Mykola Golub
d392393e1f qa/workunits/rbd: remove sanity check in test_admin_socket.sh
Fixes: https://tracker.ceph.com/issues/23499
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-03-29 12:29:40 +03:00
Mykola Golub
4784d6202b rbd: return image id in info command output
And as a side effect, previously when rbd info was called
with --image-id, the image id was shown instead of the image name,
so the user was not able to see the image name from info output.
Now it will show the image name.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-03-18 06:37:19 +02:00
Julien COLLET
386b752e62 librbd/qa: Permit V1 images in qa tests
Signed-off-by: Julien COLLET <julien.collet@cern.ch>
2018-03-15 15:09:06 +01:00
Hitoshi Kamei
b517532d53 rbd: qa code for thick provision support
Add the qa code for thick provision option, if applied.

The qa code creates and checks 64 MB thick-provision image
for small image test, and it also creates and checks 4 GB
thick-provision image for large image test.

Signed-off-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
2018-03-13 17:25:24 +09:00
Julien COLLET
18d9a74b69 test/librbd: use v1 images in the rbd unit tests
Update the test/qa scripts to support the v1 creation disallow fix (using
the RBD_FORCE_ALLOW_V1 environment variable).

Signed-off-by: Julien Collet <julien.collet@cern.ch>
2018-03-06 09:07:32 +01:00
songweibin
2cde7ad65d rbd/test: add snap protection test for ex/import
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-03-02 17:40:35 +08:00
Mykola Golub
c3038c5cbc
Merge pull request #20599 from dillaman/wip-librbd-devstack-tempest
qa/workunits/rbd: switch devstack tempest to 17.2.0 tag

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-02-27 20:43:36 +02:00
Jason Dillaman
8f45676ec3 Merge pull request #20577 from Songweibin/wip-group-rename
rbd: add group rename methods

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-27 08:28:08 -05:00
Jason Dillaman
c1b84297b8 qa/workunits/rbd: switch devstack tempest to 17.2.0 tag
Fixes: http://tracker.ceph.com/issues/22961
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-26 14:04:48 -05:00
songweibin
034ad878fd rbd: add 'group rename' action to CLI and Python API
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-26 10:21:58 +08:00
Ilya Dryomov
72edaae04d qa: krbd latest-osdmap-on-map test
Make sure we get the latest osdmap when using an existing client.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-02-25 11:40:19 +01:00
Jason Dillaman
ab06f835f4
Merge pull request #20499 from idryomov/wip-krbd-discard-tests
qa: additional krbd discard test cases

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-20 14:02:07 -05:00
Mykola Golub
783bc22438
Merge pull request #20490 from dillaman/wip-rbd-journal-workunit
qa/workunits/rbd: remove sanity check in journal.sh test

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-02-20 18:45:11 +02:00
Jason Dillaman
bc80c8c7f9 qa/workunits/rbd: remove sanity check in journal.sh test
When the OSDs are being concurrently thrashed, this can result in
sporadic failures due to the admin socket disappearing.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-19 15:21:46 -05:00
Jason Dillaman
1374acdf1a qa/workunits/rbd: correct permission test handling for clone v2 images
Fixes: http://tracker.ceph.com/issues/23043
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-19 15:16:40 -05:00
Jason Dillaman
7b9161eb05 qa/workunits/rbd: utilize RBD profiles in permissions.sh test case
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-19 14:53:27 -05:00
Ilya Dryomov
8fa9dec271 qa: krbd_fallocate.sh: add -ENOENT handling test case
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-02-19 20:02:57 +01:00
Jason Dillaman
82ef376e80 librbd: auto-remove trash snapshots when image is deleted
Fixes: http://tracker.ceph.com/issues/22873
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-09 13:34:55 -05:00
Mykola Golub
57baca0166 qa/workunits/rbd/cli_generic: fix test_purge for rbd default format 1
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-09 16:04:43 +02:00
songweibin
21c3bc3e69 test/rbd: cli_generic fails if v1 image format or deep-flatten disabled
Fixes: http://tracker.ceph.com/issues/22950

Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-09 16:17:27 +08:00
Josh Durgin
eae6e64034
Merge pull request #20173 from liewegas/wip-os-ch
os: unify Sequencer and CollectionHandle

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-02-07 14:04:08 -08:00
Sage Weil
5749434ad6 test/bench: remove smallio bench tools
These are stale and superceded by the fio ObjectStore (and other)
backends.  Shed the weight!

Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-06 08:21:29 -06:00
Jason Dillaman
57559a47f6 qa/workunits/rbd: force use of v1 clone when testing orphan
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-02-05 11:12:00 -05:00
Jason Dillaman
3ac57a7eb7
Merge pull request #19711 from trociny/wip-20762
rbd: unified way to map images using different drivers

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2018-02-02 13:56:13 -05:00
Jason Dillaman
bba63db1b4
Merge pull request #20170 from trociny/wip-22803
qa/workunits/rbd: remove "trash purge --threshold" test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-02-02 08:32:36 -05:00
Mykola Golub
be60490f15 qa/workunits/rbd: remove "trash purge --threshold" test
It is difficult to make it work reliably in different environments.

Fixes: http://tracker.ceph.com/issues/22803
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-01 17:36:21 +02:00
songweibin
c3e119d0d3 librbd: fix deep copy a child-image
* tweak create a cloned image when the source image is
  a clone (or at least one of its snapshots is a clone).

Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-01 08:17:19 +08:00
Mykola Golub
6a57358add rbd: unified way to map images using different drivers
Instead of "rbd map|unmap|showmapped", "rbd ndb map|unmap|list",
"rbd ggate map|unmap|list" commands, provide:

 rbd device -t krbd|nbd|ggate|... map|unmap|list

which gives interface consistent between drivers.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-01-29 09:34:11 +02:00