Commit Graph

191 Commits

Author SHA1 Message Date
Mykola Golub
4e1e81a2a7 qa/workunits/rbd: use cluster1/2 instead local/remote as cluster names
After adding tests that start daemons in both clusters, local/remote
names look confusing.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-31 14:17:58 +03:00
Mykola Golub
2226019037 qa/workunits/rbd: add helper to determine rbd-mirror local cluster
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-31 14:16:21 +03:00
Mykola Golub
70b1303a08 qa/workunits/rbd: improvements for manual testing
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-31 11:42:13 +03:00
Jason Dillaman
ded7a77931 qa/workunits/rbd: add basic failover/fallback test case
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-29 15:19:26 -04:00
Sage Weil
df6570c2bd Merge pull request #8222 from SUSE/wip-14984
systemd: set up environment in rbdmap unit file

Reviewed-by: Boris Ranto <branto@redhat.com>
2016-03-23 12:33:39 -04:00
Nathan Cutler
0effb9e385 qa: test_rbdmap_RBDMAPFILE.sh workunit
Before a7a3658 the rbdmap script was logging bogus messages and not working
on systemd platforms because the unit file was not defining the RBDMAPFILE
environment variable.

This workunit asserts that the bug has been fixed.

http://tracker.ceph.com/issues/14984 References: #14984

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-20 22:50:47 +01:00
Jason Dillaman
f65cc6fc31 Merge pull request #8172 from trociny/fix-test-rbd-mirror-position
test: rbd-mirror: compare positions using all fields

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-19 16:33:36 -04:00
Josh Durgin
9f6ec704db qa: add workunit to run ceph_test_rbd_mirror
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-03-18 17:23:52 -07:00
Josh Durgin
62771e4a92 Merge pull request #8182 from trociny/wip-rbd-mirror-args
rbd-mirror: make remote context respect env and argv config params

Conflicts:
	qa/workunits/rbd/rbd_mirror.sh (asok command format changed)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-18 15:03:33 -07:00
Josh Durgin
c6c4f6095a Merge pull request #8159 from trociny/wip-rbd-mirror-asok
rbd-mirror: use pool/image names in asok commands

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-03-18 14:58:58 -07:00
Jason Dillaman
d9017fb95c qa/workunits/rbd: new online maintenance op tests
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-18 14:33:20 -04:00
Mykola Golub
13c7ba4c67 test: rbd-mirror: different log and asok location for local/remote contexts
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-17 14:46:21 +02:00
Mykola Golub
b15ff2f419 test: rbd-mirror: compare positions using all fields
Comparing by only entry_tid may give false positives.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-16 23:07:07 +02:00
Mykola Golub
e348a7e4e8 rbd-mirror: use pool/image names in asok commands
Now the commands look similar to rbd cache asok commands.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-16 22:55:00 +02:00
Jason Dillaman
50b53eaf4b qa/workunits/rbd: rbd_mirror was extracting the incorrect image id
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-16 10:01:38 -04:00
Jason Dillaman
f2e39888d0 qa/workunits/rbd: use unique logs for each rbd-mirror daemon
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-16 10:01:38 -04:00
Josh Durgin
129d83b84f Merge pull request #8090 from trociny/fixup-rbd-mirror-test
test: fixup and improvements for rbd-mirror test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-15 08:20:43 -07:00
Jason Dillaman
36af39cdf4 qa/workunits/rbd: disable deep-flatten during permissions testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-15 11:05:02 -04:00
Mykola Golub
8e41220d34 test: fixup and improvements for rbd-mirror test
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-15 10:18:33 +02:00
Jason Dillaman
aef7f9e268 qa/workunits/rbd: do not use object map during read flag testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-14 17:06:41 -04:00
Josh Durgin
750701b644 Merge pull request #8068 from SUSE/wip-15104
qa/workunits/rbd: use POSIX function definition

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-11 17:48:43 -08:00
Nathan Cutler
996be8ef49 qa/workunits/rbd: use POSIX function definition
In scripts with /bin/sh shebang, we must use POSIX function definitions to
avoid syntax errors on platforms that link /bin/sh to something other than
/bin/bash.

See https://wiki.ubuntu.com/DashAsBinSh#function for more information.

http://tracker.ceph.com/issues/15104 Fixes: #15104

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-12 02:03:27 +01:00
Mykola Golub
3295253d64 test: add rbd-mirror test script
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-11 16:12:00 +02:00
Mykola Golub
866a704882 test: rbd_mirror_image_replay improve commit position parsing
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-03-11 16:12:00 +02:00
Zack Cerza
2a80042728 rbd/run_cli_tests.sh: Reflect test failures
Signed-off-by: Zack Cerza <zack@redhat.com>
2016-02-26 08:01:30 -07:00
Mykola Golub
103eee4d13 test: image_replay: use flush to speedup commit position update
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-23 09:25:53 +02:00
Mykola Golub
e92b45278c rbd-mirror: ImageReplayer: pass registered client ID as external param
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-23 09:25:20 +02:00
Mykola Golub
cc4b73b3f5 test: rbd-mirror: add tool to test ImageReplayer
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-20 10:05:13 +02:00
Josh Durgin
65a3fde9ab Merge remote-tracking branch 'origin/jewel' 2016-01-19 13:44:31 -08:00
Jason Dillaman
bb4d7a721c qa: disable rbd/qemu-iotests test case 055 on RHEL/CentOS
Fixes: #14385
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-18 15:58:43 -05:00
Mykola Golub
cf5649047f tests: improve rbd-nbd tests
- cleanup on a test failure;
- minimize interference with other processes (tests) that are
  run concurrently;
- use xmlstarlet when parsing rbd output;
- add exit status test.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-01-13 13:07:42 +02:00
Josh Durgin
0bdc26ea89 Merge remote-tracking branch 'origin/jewel' 2016-01-05 11:42:09 -08:00
Jason Dillaman
089673a59c qa/workunits/rbd: import_export should use clean temp space
Fixes: #14237
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-05 12:50:23 -05:00
Josh Durgin
089e1a2baf Merge remote-tracking branch 'origin/jewel' 2016-01-04 17:59:52 -08:00
Jason Dillaman
70a1392920 qa/workunits/rbd: rbd-nbd test should use sudo for map/unmap ops
Fixes: #14221
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-04 12:03:45 -05:00
Jason Dillaman
8e095dedfa qa/workunits: merge_diff shouldn't attempt to use striping v2
Fixes: #14165
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-23 12:54:47 -05:00
Josh Durgin
09a3f69e6f Merge remote-tracking branch 'origin/jewel' 2015-12-21 16:59:51 -08:00
Jason Dillaman
69bcac513a qa/workunits/rbd: use --object-size instead of --order
Fixes: #14106
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 03:03:20 -05:00
wuxiangwei
4bf6fbf21a rbd: specify pool name for rbd admin socket commands
Add the pool name for a given rbd imgae when executing rbd admin socket
commands in case there are more than one images with the same name in
different pools.

Signed-off-by: Xiangwei Wu wuxiangwei@h3c.com
2015-12-15 08:28:41 -05:00
Jason Dillaman
00cfe4efac tests: new integration test for validating new RBD pools
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 17:49:55 -05:00
Mykola Golub
5622d3ff7d rbd: alow to specify options for created journal
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
e8a584ffc1 rbd: add new journal rbd commands
Also, extend 'rbd info' to output journal spec if journaling is enabled.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Yunchuan Wen
fda3f7e098 add rbd-nbd test case
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2015-11-21 23:26:44 +08:00
Mykola Golub
595c1e5650 tests: rbd/admin_socket: use xmlstarlet when parsing perf dump
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 09:19:47 +02:00
Josh Durgin
d46d4a98b6 Merge pull request #5987 from dillaman/wip-rbd-refactor
rbd: refactor cli command handling

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-10 21:18:04 -08:00
Mykola Golub
d33842d237 tests: librbd: admin socket commands to flush and invalidate cache
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-09 16:14:11 +02:00
Jason Dillaman
b838ed11bb qa/workunits/rbd: fixed incorrect stripe settings
The rbd merge-diff tool does not support fancy striped
image exports.  Corrected the test to reflect this fact.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:42 -05:00
Jason Dillaman
661e2a0ef7 qa: remove legacy OS support from rbd/qemu-iotests
RHEL7 derivatives were failing test 002 since they were using
legacy test cases for now unsupported OSes.

Fixes: #13483
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-15 12:44:06 -04:00
Sage Weil
7757342ffc qa: https://ceph.com/git -> https://git.ceph.com
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-24 18:36:57 -04:00
Sage Weil
d4d65fbd6a qa: http://ceph.com/qa -> http://download.ceph.com/qa
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-24 18:10:46 -04:00