Jason Dillaman
63a8f6c2c3
qa: test case for new rbd background tasks
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-07-25 08:58:37 -04:00
Mykola Golub
11e2951243
qa/suites/rbd: allow to test with require-min-compat-client octopus
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-06-23 10:06:45 +01:00
Mykola Golub
c99e26eff9
qa/workunits/rbd: tweak mirror tests
...
(after "image mirror disable" started to disable journaling)
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-06-18 12:08:58 +01:00
Mykola Golub
92ee1c7b8b
qa/workunits/rbd: fix compare_images and compare_image_snapshots
...
Due to pipe, sdiff return code was ignored. Also the compare functions
spent most of time in xxd, which was normally unnecessary.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-06-13 08:26:29 +01:00
Jason Dillaman
b36a1ad302
qa/workunits/rbd: remove 'fast-diff' from dynamic features test
...
Fixes: http://tracker.ceph.com/issues/39946
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-15 16:53:43 -04:00
Jason Dillaman
fb4f9a8a08
qa/workunits/rbd: use https protocol for devstack git operations
...
Fixes: http://tracker.ceph.com/issues/39656
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-10 11:09:54 -04:00
Jason Dillaman
87278548a5
qa/workunits/rbd: wait for rbd-nbd unmap to complete
...
The "unmap" request is asynchronous, so wait for a short amount
of time for the "rbd-nbd" daemon process to exit.
Fixes: http://tracker.ceph.com/issues/39598
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-06 15:16:03 -04:00
Mykola Golub
22973d9d46
Merge pull request #27683 from dillaman/wip-24668
...
qa/workunits/rbd: use more recent qemu-iotests that support Bionic
Reviewed-by: Mykola Golub <mgolub@suse.com>
2019-04-24 15:40:43 +03:00
Jason Dillaman
b7c7a4f39e
Merge pull request #27521 from trociny/wip-rbd-remove-clone_v2-parent
...
librbd: optionally move parent image to trash on remove
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-04-23 08:11:38 -04:00
Jason Dillaman
b184acd218
qa/workunits/rbd: use more recent qemu-iotests that support Bionic
...
Fixes: http://tracker.ceph.com/issues/24668
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-04-22 12:46:47 -04:00
Jason Dillaman
5b0a611a48
test/librbd: drop 'ceph_test_librbd_api' target
...
This was used for API backwards compatibility testing, but now that
the C++ API will not remain stable, it serves no purpose.
Fixes: http://tracker.ceph.com/issues/39072
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-04-19 14:18:00 -04:00
Mykola Golub
6e1434eefc
librbd: optionally move parent image to trash on remove
...
and auto-delete when the last clone is detached
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-04-19 08:53:38 +01:00
Ilya Dryomov
9c736f57ee
qa: krbd_wac.sh: add lvm test case
...
The script isn't generic anymore, move it to the rbd directory.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-03-29 11:20:30 +01:00
Ilya Dryomov
316ae0cfa4
qa: krbd_stable_pages_required.sh: add device mapper test cases
...
device mapper core wasn't propagating BDI_CAP_STABLE_WRITES.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-03-28 19:34:15 +01:00
Ilya Dryomov
0ba913ba2c
Merge pull request #27192 from idryomov/wip-krbd-discard-fixups
...
qa/workunits/rbd: fixups for the new krbd discard behavior
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-26 14:09:41 +01:00
Ilya Dryomov
f3f757aaa3
qa/workunits/rbd: fixups for the new krbd discard behavior
...
With discard_granularity set to alloc_size, we no longer get object
size alignment from blk_bio_discard_split().
This assumption is pretty deeply ingrained in krbd_data_pool.sh, so
make it explicit. For krbd_fallocate.sh, just fix the expectation.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-03-25 22:06:14 +01:00
Ilya Dryomov
673673f53d
qa: krbd_fallocate.sh: zero can be munged to truncate
...
The test case is issuing discards that span two objects: the tail of
the first object is truncated, the head of the second object is zeroed.
These discards aren't serial, so there is a race:
discard i ~ i + 1: truncate i, zero i + 1
discard i + 1 ~ i + 2: truncate i + 1, zero i + 2
can be executed as
truncate i + 1, zero i + 2, truncate i, zero i + 1
For object i + 1, the sequence ends up being truncate tail, then zero
head. This zero op is munged to truncate on the OSD, resulting in size
0 instead of OBJECT_SIZE / 2.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-03-25 22:06:14 +01:00
Mykola Golub
63f3d7e377
qa/workunits/rbd: add QOS functional test
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-03-22 14:58:22 +00:00
Jason Dillaman
9d694ba351
qa/workunits/rbd: delete pools before stopping rbd-mirror
...
This better mimics the behavior of teuthology and tests rbd-mirror
daemon's ability to handle a pool deletion.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-25 13:31:43 -05:00
Mykola Golub
a51d9188bb
Merge pull request #26521 from dillaman/wip-38385
...
qa/workunits: fixed mon address parsing for rbd-mirror
2019-02-21 16:46:05 +02:00
Jason Dillaman
3e0094910a
qa/workunits: fixed mon address parsing for rbd-mirror
...
The test extracts the mon addresses from the monmap, but with the
recent v2 format change it extracted an invalid address.
Fixes: http://tracker.ceph.com/issues/38385
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-19 14:22:34 -05:00
Mykola Golub
5e951cd3ae
qa/workunits/rbd: add parent migration case
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-02-19 08:58:08 +00:00
Mykola Golub
d10d40fd49
rbd: add option to list all descendant images
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-02-19 08:58:08 +00:00
Jason Dillaman
1a74204952
Merge pull request #26226 from trociny/wip-rbd-re-sparsify
...
rbd: online re-sparsify of images
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-18 09:24:21 -05:00
Mykola Golub
be2cdc0bcf
rbd: online re-sparsify of images
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-02-15 11:12:00 +00:00
Ilya Dryomov
7fdb879004
qa: krbd namespaces test
...
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-08 15:29:20 +01:00
Jason Dillaman
347eac67ba
Merge pull request #26168 from shyukri/qa-rbd-replace-bench-write
...
qa: rbd/workunits : Replace "rbd bench-write" with "rbd bench --io-type write"
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
2019-01-30 07:51:55 -05:00
Jason Dillaman
0474727294
rbd: simplify pool namespace positional argument handling
...
The pool and namespace can now be specified as in a
<pool-name>[/<namespace-name>] format as positional
arguments.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-01-28 14:36:44 -05:00
Shyukri Shyukriev
28f0749eae
qa:rbd/workunits : Replace rbd bench-write
with rbd bench --io-type write
...
Signed-off-by: Shyukri Shyukriev <shshyukriev@suse.com>
2019-01-28 14:24:54 +02:00
Jason Dillaman
e920693ff6
Merge pull request #25529 from Songweibin/wip-fix-rbd-migration
...
librbd: disallow trash restoring when image being migrated
Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-01-11 09:03:58 -05:00
songweibin
1f2eef7f1f
librbd: disallow trash restoring when image being migrated
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-01-08 10:26:06 +08:00
Mykola Golub
b29b4f0c71
qa/workunits/rbd: add trash move/restore mirror test
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-12-14 16:47:15 +00:00
Jason Dillaman
6db4c152a6
Merge pull request #25266 from trociny/wip-24608
...
rbd-ggate: support namespaces
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-12-05 20:25:54 -05:00
Mykola Golub
d13b4197e4
rbd-ggate: support namespaces
...
Fixes: http://tracker.ceph.com/issues/24608
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-26 19:47:34 +00:00
Mykola Golub
efae1c7a79
rbd-nbd: support namespaces
...
Fixes: http://tracker.ceph.com/issues/24609
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-25 19:29:19 +02:00
Jason Dillaman
cc592823fa
Merge pull request #24717 from trociny/wip-rbd-mirror-status-instance
...
rbd: show info about mirror daemon instance in image mirror status output
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-06 11:11:49 -05:00
Mykola Golub
7d2ffd981b
rbd: show info about mirror instance in image mirror status output
...
It is particularly useful when running multiple rbd-mirror instances
in Active-Passive or Active-Active mode.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-05 22:34:39 +02:00
Mykola Golub
472abc2ed9
test/librbd: migration supporting namespace tests
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-03 19:36:44 +02:00
Jason Dillaman
2a1dca3fca
qa/workunits/rbd: switch devstack to rocky branch and tempest to 19.0.0 tag
...
Fixes: http://tracker.ceph.com/issues/36410
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-12 08:40:44 -04:00
Jason Dillaman
c60ffac61e
Merge pull request #24428 from trociny/wip-rbd-config-global
...
rbd: add 'config global' command to get/store overrides in mon config db
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-10-11 10:50:33 -04:00
Mykola Golub
c552f166c3
Merge pull request #24476 from dillaman/wip-35944
...
librbd: add new configuration option to always move deleted items to the trash
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-10-10 18:40:14 +03:00
Mykola Golub
b3e4d43c15
rbd: add 'config global' command to get/store overrides in mon config db
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-10 17:31:32 +03:00
Jason Dillaman
97950fec27
qa/workunits/rbd: test new move-to-trash on image remove config override
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 09:08:03 -04:00
Mykola Golub
24e1a6bd47
qa/workunits/rbd: force v2 image format for namespace test
...
While here, fix test_locking too.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-10 10:50:30 +03:00
Mykola Golub
f2d72d46d4
qa/workunits/rbd: fix cli generic namespace test
...
expect_fail incorrectly unset '-e' option and if a consequent test
failed it did not abort the execution. And two typos in the namespace
tests were not detected due to this.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-07 15:09:25 +03:00
Jason Dillaman
dca9e3e252
qa/workunits/rbd: wait max 2 hrs for all stress images to sync
...
Sporadically the rbd-mirror fsx stress test would fail due to very
slow sync times due to overloaded clusters. Attempt to wait for all
images to be replicated before proceeding with the comparison.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-25 16:08:59 -04:00
Jason Dillaman
d04a7679c0
qa/workunits/rbd: exclude rbd-mirror sync-point snaps from comparison
...
This is a temporary workaround to tracker ticket issue #36185
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-25 16:08:25 -04:00
Jason Dillaman
27832e2781
qa/workunits/rbd: image compare should print byte offset of any deltas
...
This will assist in debugging any mirroring issues.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-25 08:45:08 -04:00
Mykola Golub
ecdf8cd6b2
rbd: add config commands
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-09-20 10:35:18 +03:00
Jason Dillaman
d4c7ce3c0a
qa/workunits/rbd: test clone v2 across namespaces
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-19 08:05:29 -04:00
Mykola Golub
a68be2b452
Merge pull request #24036 from dillaman/wip-24688
...
rbd-mirror: optionally extract peer secrets from config-key
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-09-16 11:53:04 +03:00
Mykola Golub
ad9fc49776
Merge pull request #23896 from Songweibin/wip-group-snap-rollback
...
rbd: add group snap rollback method
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-09-13 19:35:10 +03:00
Jason Dillaman
d3a1a831ac
qa/workunits/rbd: new test for rbd-mirror peer config-key secrets
...
Fixes: http://tracker.ceph.com/issues/24688
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-13 09:58:34 -04:00
songweibin
dec2ea83cf
tools/rbd: support group snap rollback CLI
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-09-12 23:42:15 +08:00
Mykola Golub
cec53e9bd2
qa/workunits/rbd: replace usage of 'rados rmpool'
...
This command was dropped.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-09-05 22:52:20 +03:00
Jason Dillaman
0f0176ed4a
qa/workunits/rbd: replace usage of 'rados mkpool'
...
This command was dropped under commit 2c26fb0fe1
, so use
'ceph osd pool create' instead.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-09-05 08:17:39 -04:00
Sage Weil
2c26fb0fe1
rados: drop mkpool, rmpool commands
...
- mkpool and rmpool users should use the normal cli/mon commands
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00
Willem Jan Withagen
b8cc3fdb09
test/rbd: Improve/update rbd-ggate
...
* check if geom_gate can be loaded before doing the actual tests
Otherwise continuing does not make sense.
Major reason for this problem is due to mismatch between
kernel and module versions.
* After FreeBSD kernevel 1200078 ggate resizing is possible
So set the flag that resizing can be tested
* Only sudo commands that really need sudo
rbd-ggate list is available in regular user mode
* be a bit more verbose during testing and list the test purpose
* list-mapped is an option in rbd-nbd, not (yet) in rbd-ggate
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2018-08-21 14:16:49 +02:00
Mykola Golub
7f27f19753
rbd: CLI to migrate images
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
1e45d405da
qa/workunits/rbd: updates to the clone v2 CLI tests
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-07-24 08:52:33 -04:00
Mykola Golub
08ea7d62ba
librbd: validate data pool for self-managed snapshot support
...
Fixes: https://tracker.ceph.com/issues/24675
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-07-15 09:05:52 +03:00
Sage Weil
975528f632
Merge remote-tracking branch 'private/wip-mon-snap-caps'
2018-07-09 08:29:32 -05:00
Jason Dillaman
b12dd0bf41
qa/workunits/rbd: test self-managed snapshot create/remove permissions
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-06-26 11:41:19 -04:00
Jason Dillaman
3e8624f157
rbd: add support for namespaces
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-06-22 10:43:51 -04:00
Mykola Golub
80a51c9714
Merge pull request #22608 from dillaman/wip-24410
...
librbd: namespace create/remove/list support
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-06-21 11:02:25 +03:00
Ilya Dryomov
69619b6966
qa: krbd_exclusive_option.sh: bump lock_timeout to 60 seconds
...
Avoid sporadic failures in combination with msgr-failures/many.yaml,
where assert_locked() might take over 10 seconds.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-06-20 18:22:36 +02:00
Sage Weil
3cd7d5eb22
Merge PR #22343 into master
...
* refs/pull/22343/head:
qa/standalone remove ceph-disk from activate_osd helper
cmake: remove subman.sh tests
test remove ceph-disk directory
debian: remove ceph_detect_init python files from base
qa/standalone remove virtualenv paths for ceph-disk and ceph-detect-init
debian: remove ceph-disk ceph-detect-init python files
rpm: remove ceph-disk ceph-detect-init python files
alpine: remove ceph-disk ceph-detect-init python files
alpine: remove ceph-osd and parttypeuuid udev rules
debian: remove ceph-osd and parttypeuuid udev rules
rpm: remove ceph-osd and parttypeuuid udev rules
ceph-helpers.sh: remove ceph-disk, set up osds directly
CMakeLists.txt: add back CEPH_BUILD_VIRTUALENV
alpine: remove ceph-disk, add ceph-volume in APKBUILD.in
upstart: remove ceph-disk activation call
doc/install add anchor for manual osd deployment in freebsd guide
doc/dev remove ceph-disk from freebsd guide, link to manual reference
doc/dev/config-key remove ceph-disk references
doc/dev remove ceph-disk.rst
doc/dev: change ceph-disk suite examples for ceph-deploy
doc/man_index: remove ceph-disk, ceph-detect-init refs
doc/install: remove ceph-disk from freebsd examples
doc/rados remove ceph-disk from man references
doc/man remove ceph-disk ref from ceph-volume-systemd
doc/man: update reference from ceph-disk to ceph-volume
doc/man: remove ceph-disk, ceph-detect-init from cmake
doc/man/ceph-volume remove doc reference to ceph-disk
doc/man: remove ceph-disk, ceph-detect-init
qa/suites: remove ceph-disk
qa/run-standalone.sh: remove requirement for ceph-detect-init virtualenv
qa/workunits: remove ceph-detect-init from rbdmapfile test
qa/workunits: remove ceph-detect-init from ceph-helpers-root.sh
qa/workunits: remove ceph-disk
build: remove ceph-disk from freebsd script
cmake: remove ceph-disk, ceph-detect-init tox tests
init-ceph: remove ceph-disk
cmake: remove top-level entries for ceph-disk, ceph-detect-init
debian: remove ceph-detect-init references
debian: remove ceph-disk references
src: remove ceph-detect-init tool
rpm: remove ceph-disk, ceph-detect-init from spec file
test: remove subman script
script: remove subman script
udev: remove parttypeuuid rules for ceph-disk
tool remove ceph-disk from ps-ceph.pl
upstart: remove ceph-disk conf file
systemd: remove ceph-disk from CMakeLists
systemd: remove ceph-disk service
udev: remove ceph-disk rules
src: remove ceph-disk tool
2018-06-19 07:07:55 -05:00
Jason Dillaman
4437c136b4
rbd: add namespace create/remove/ls actions
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-06-18 18:43:40 -04:00
Alfredo Deza
c954a71660
qa/workunits: remove ceph-detect-init from rbdmapfile test
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:24 -04:00
Mao Zhongyi
8d5bee2d46
rbd: interlock object-map/fast-diff features together
...
Since we only support Jewel and later releases, which both support
object-map and fast-diff, enabling/disabling object-map should always
enable/disable fast-diff.
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
2018-06-12 09:25:55 +08:00
Jason Dillaman
2c451a04f9
qa/workunits/rbd: dump long image directory upon rbd-mirror test failure
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-31 19:17:52 -04:00
Jason Dillaman
d5b7d672b9
qa/workunits/rbd: fix unit formatting tests
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-05-24 15:54:31 -04:00
Sage Weil
47dffc53d6
Merge pull request #22063 from liewegas/wip-unit-spaces
...
include/types: space between number and units
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2018-05-20 21:26:03 -05:00
Mykola Golub
42dac1669f
Merge pull request #21915 from dillaman/wip-rbd-mirror-policy
...
rbd-mirror: optionally support active/active replication
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-05-18 10:32:49 +03:00
Sage Weil
c6a747d1d8
qa/workunits/rbd/import_export: update unit formatting
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Sage Weil
ddd3095bc0
qa/workunits/rbd/cli_generic: update unit formatting
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-05-17 11:14:39 -05:00
Mykola Golub
e387f91955
rbd: deep copy option to copy clone parent data
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-05-16 16:07:48 +03:00
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
Mykola Golub
023759c7c1
Merge pull request #20124 from dillaman/wip-devstack
...
qa/workunits/rbd: switch devstack to pike release
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-01-26 07:41:00 +02:00
Jason Dillaman
6253490445
Merge pull request #19996 from Songweibin/wip-rbd-deep-cp
...
rbd: add deep cp CLI method
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-01-25 21:59:31 -05:00
Jason Dillaman
7ff1e0bc21
qa/workunits/rbd: switch devstack to pike release
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-25 18:44:20 -05:00
songweibin
0551029242
rbd: add deep cp CLI method
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-01-24 09:04:33 +08:00
Theofilos Mouratidis
b9e4aa94b7
rbd trash: replace cli delay option, add rbd trash purge command
...
Replaced the delay argument for the trash move
command with a string acceptable by /bin/date, e.g.:
$ rbd trash move --pool foo --image bar --expires-in "2 weeks"
Added a "rbd trash purge" command that deletes any expired
image from the trash, has also a command to alter the current
expiration date with the "--older-than" argument which accepts
again a valid argument for /bin/date, e.g.:
$rbd trash purge mypool --older-than "2017-08-20"
There is also the "threshold" argument which tries to remove the
oldest trashed images (by deferment end time) until the pool space
is freed up to a percentage point, e.g.:
$ rbd trash purge mypool --threshold 0.9
If mypool uses 1GB it will try to remove trashed images until the
pool usage becomes equal to or lower than 900MB.
Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
2018-01-23 11:41:54 +01:00
Victor Denisov
838cae45af
rbd: Add group snapshot rename commands
...
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-13 14:00:31 -05:00
Jason Dillaman
619b0c0244
rbd: adjusted "lock list" JSON and XML formatted output
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-12 11:31:07 -05:00
Jason Dillaman
31a382f1ec
rbd: utilize '<name>@<snap>' format when creating/removing group snaps
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-11 10:38:23 -05:00
Victor Denisov
d95b791e8d
qa/workunits/rbd: Add tests for consistency groups
...
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
2018-01-11 10:38:23 -05:00
Mykola Golub
e372e9492b
rbd-nbd: output format support for list-mapped command
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-01-03 14:44:10 +02:00
Mykola Golub
a5fd0e71d1
Merge pull request #19724 from dillaman/wip-18480
...
rbd: support cloning an image from a non-primary snapshot
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-01-03 14:11:25 +02:00
Jason Dillaman
e4b8ae348b
Merge pull request #19666 from trociny/wip-nbd-unmap-by-image
...
rbd-nbd: allow to unmap by image or snap spec
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-01-02 20:35:30 -05:00
Jason Dillaman
c7c15b681c
librbd: permit creation of clones against non-primary images
...
Fixes: http://tracker.ceph.com/issues/18480
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-01-02 10:11:56 -05:00
Mykola Golub
be87e8b118
rbd-ggate: allow to unmap by image or snap spec
...
(to match the behaviour of krbd unmap)
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-27 20:29:58 +00:00
Mykola Golub
8e0f40aae1
rbd-ggate: extended info when listing devices
...
This matches nbd and krbd drivers output.
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-12-27 20:29:58 +00:00
Mykola Golub
02e211c282
rbd-nbd: allow to unmap by image or snap spec
...
(to match the behaviour of krbd unmap)
Signed-off-by: Mykola Golub <mgolub@suse.com>
2017-12-25 17:19:49 +02:00
Mykola Golub
47e38ca1b9
qa/workunits/rbd: bench-write is part of exclusive option test
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2017-12-25 17:19:49 +02:00
Jason Dillaman
8c2ee6dd0f
qa/workunits/rbd: simplify split-brain test to avoid potential race
...
Fixes: http://tracker.ceph.com/issues/22485
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-12-19 16:30:25 -05:00
Mykola Golub
7fb9920316
qa/workunits/rbd: wait for status propagated only if daemon started
...
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-11-21 22:29:16 +02:00
Mykola Golub
f4b88b2c9d
qa/workunits/rbd: wait for demote status is propagated
...
(before promoting the image on another cluster)
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-11-21 13:22:50 +02:00
Ilya Dryomov
c1d6f8364f
Merge pull request #18652 from idryomov/wip-qa-krbd-blkroset
...
qa/suites/krbd: add krbd BLKROSET test
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-11-02 10:10:39 +01:00
Ilya Dryomov
c4888ddc1f
qa/workunits/rbd: remove set_ro.py
...
This test is incomplete and has been obsoleted by krbd_blkroset.t.
It's also not wired up, so it's not actually being run.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-10-31 13:40:16 +01:00
Mykola Golub
cb90069604
qa/workunits/rbd: unnecessary sleep after failed remove
...
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-10-30 08:57:29 +02:00
Jason Dillaman
918df91213
rbd: bench should flush prior to starting a test
...
For the new read-based bench tests, flushing prior to the start of the test
will result in the exclusive lock being acquired and the object map being
utilized.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-23 13:22:50 -04:00
Jason Dillaman
ecec3217b6
Merge pull request #17134 from PCzhangPC/metaexin
...
rbd: export/import image-meta when we export/import an image
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-10-16 21:00:08 -04:00
Jason Dillaman
22816ed3f4
qa/workunits/rbd: fixed variable name for resync image id
...
Fixes: http://tracker.ceph.com/issues/21663
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-10-03 13:25:33 -04:00
Mykola Golub
fcaffe7e01
qa/workunits/rbd: pool create may fail for small cluster
...
ceph osd pool create test 100
Error ERANGE: pg_num 100 size 3 would mean 648 total pgs, which exceeds max 600 (mon_max_pg_per_osd 200 * num_in_osds 3)
Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
2017-10-01 16:36:17 +02:00
PCzhangPC
2f0b233a31
rbd:export/import image-meta when we export/import an image
...
when we do exporting/importing an image, we should export or import the image-meta of this image at the same time
Signed-off-by: PCzhangPC <pengcheng.zhang@easystack.cn>
2017-09-29 13:30:01 +08:00
Jason Dillaman
9aa5dfb8ec
rbd-mirror: sync image metadata when transfering remote image
...
Fixes: http://tracker.ceph.com/issues/21535
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-09-28 15:22:08 -04:00
Jason Dillaman
273c84578b
qa/workunits/rbd: relax greps to support upgrade formatting change
...
Fixes: http://tracker.ceph.com/issues/21181
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-09-07 08:56:16 -04:00
Mykola Golub
9ddb5da337
rbd-mirror: update asok hook name on image rename
...
Fixes: http://tracker.ceph.com/issues/20860
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-29 08:30:20 +02:00
Kefu Chai
30b5b4627c
Merge pull request #16494 from asomers/bin_bash
...
misc: Fix bash path in shebangs
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-08-27 10:14:14 +08:00
xie xingguo
1ea448ac75
common/types: make numbers a bit nicer when displaying space usage
...
Was:
----------------------------------------------------------------------------
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
30911M 27050M 3861M 12.49
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 101216k 1.10 8913M 1178
cephfs_data_a 1 0 0 8913M 0
cephfs_metadata_a 2 892 0 8913M 21
----------------------------------------------------------------------------
Now:
----------------------------------------------------------------------------
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
30.2G 26.4G 3.77G 12.50
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 99.2M 1.10 8.70G 1180
cephfs_data_a 1 0 0 8.70G 0
cephfs_metadata_a 2 892 0 8.70G 21
----------------------------------------------------------------------------
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-08-22 12:33:10 +08:00
Mykola Golub
c4c7075029
qa/workunits/rbd: test data pool is mirrored correctly
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-17 10:07:12 +02:00
Mykola Golub
6a575136a7
qa/workunits/rbd: use command line option to specify watcher asok
...
The previous method to get the watcher admin socket was fragile
and had started to fail after the recent changes to vstart ceph.conf.
Fixes: http://tracker.ceph.com/issues/20954
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-09 09:03:00 +02:00
Mykola Golub
b4dbfcc879
rbd-ggate: tool to map images on FreeBSD via GEOM Gate
...
rbd-ggate spawns a process responsible for the creation of ggate
device and forwarding I/O requests between the GEOM Gate kernel
subsystem and RADOS.
On FreeBSD it provides functionality similar to rbd-nbd on Linux.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-08-08 11:00:30 +02:00
Jason Dillaman
4e1b834d2d
rbd-mirror: simplify resync handling within image replayer
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-07 10:13:33 -04:00
Sage Weil
62e51661e6
Merge branch 'wip-qa-rbd-health' of git://github.com/dillaman/ceph
...
# Conflicts:
# qa/tasks/ceph.py
2017-08-04 15:07:22 -04:00
Nathan Cutler
d919987caa
tests: rbd: reproducer for rbd-on-EC issue
...
This introduces a new "rbd/singleton-bluestore" suite because creating an rbd
on an EC-backed datapool will fail on filestore.
References: http://tracker.ceph.com/issues/20295
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-08-03 22:54:17 -04:00
Jason Dillaman
c2b451e8cb
qa: fix RBD-related POOL_APP_NOT_ENABLED health warnings
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-08-03 09:50:41 -04:00
Kefu Chai
2a128f4829
Merge pull request #16599 from liewegas/wip-standalone-fixes
...
qa/workunits: adjust path to ceph-helpers.sh
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-28 13:18:47 +08:00
Alan Somers
3aae5ca6fd
scripts: fix bash path in shebangs
...
/bin/bash is a Linuxism. Other operating systems install bash to
different paths. Use /usr/bin/env in shebangs to find bash.
Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00
Sage Weil
841f3bdf92
qa/workunits: adjust path to ceph-helpers.sh
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-26 08:08:01 -04:00
Jason Dillaman
76fd882464
qa/workunits/rbd: rbd-mirror now treats no primary image as unknown state
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-25 07:17:15 -04:00
Jason Dillaman
44fa7ee788
qa/workunits/rbd: rbd-mirror tests should use 'mirror' user
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
d32485ff37
qa/workunits/rbd: devstack test should use auth profiles
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
836ab7ad95
test: skip pool application metadata tests if OSDs not at min luminous
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-19 13:13:01 -04:00
Jason Dillaman
fa90be842e
test: enable pool applications for new pools
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-19 13:13:01 -04:00
Sage Weil
dc7a2aaf7a
erasure-code: ruleset-* -> crush-*
...
1) ruleset is an obsolete term, and
2) crush-{rule,failure-domain,...} is more descriptive.
Note that we are changing the names of the erasure code profile keys
from ruleset-* to crush-*. We will update this on upgrade when the
luminous flag is set, but that means that during mon upgrade you cannot
create EC pools that use these fields.
When the upgrade completes (users sets require_osd_release = luminous)
existing ec profiles are updated automatically.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-06 15:01:03 -04:00
Jason Dillaman
68932d931e
qa/workunits/rbd: preserve devstack configuration files
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-06-27 12:48:11 -04:00
Jason Dillaman
8e1791ff7e
qa/workunits/rbd: install noVNC from packaging
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-06-27 12:48:11 -04:00
Kefu Chai
b86cda7040
Merge pull request #15764 from tchaikov/wip-20342
...
qa/suites/upgrade/hammer-jewel-x: add luminous.yaml
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-06-23 22:26:03 +08:00
Kefu Chai
fea6e3216a
qa/workunits/rbd: do not test --export-format unless supported
...
in 55edd81
, test for `--export-format` was added to exercise this
option. but this option is only supported on luminous, so we need to
check if it's avaialble before using it.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-06-22 12:19:01 +08:00
Pan Liu
a899bee57e
qa/workunits: update rbd-nbd.sh for the changes of rbd-nbd list-mapped.
...
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
2017-06-18 16:13:11 +08:00
Ilya Dryomov
a3e23a7c3c
qa: update krbd_data_pool.sh to match the new rados ls behavior
...
See commit e9973adf1f
("PendingReleaseNotes: notes on whiteouts vs
pgnls").
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-06-08 20:01:13 +02:00
Jason Dillaman
9035349037
qa: rbd valgrind tests should use failure exit code
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-06-02 08:55:08 -04:00
Ilya Dryomov
156cf45214
qa: krbd discard/zeroout tests
...
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-05-31 14:39:08 +02:00
Jason Dillaman
6fa25c2bf2
librbd: recheck current lock owner before blacklist
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-19 08:43:37 -04:00
Mykola Golub
dff49227fa
Merge pull request #14963 from dillaman/wip-19858
...
rbd-mirror: failover and failback of unmodified image results in split-brain
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-05-05 15:27:07 +03:00
Jason Dillaman
4031555dda
librbd: add no-op event when promoting an image
...
The rbd-mirror process needs an event in the journal
to properly detect the transition between primary and
non-primary state between peers.
Fixes: http://tracker.ceph.com/issues/19858
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-04 20:26:03 -04:00
Jason Dillaman
f6531fd077
qa/workunits/rbd: add additional OpenStack services
...
The Ocata release requires additional services to be running.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 15:43:36 -04:00
Jason Dillaman
736890fb30
qa/workunits: fix appdir setup issue in devstack
...
See https://bugs.launchpad.net/devstack/+bug/1667545
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 09:56:57 -04:00
Jason Dillaman
37d8a42510
qa/workunits: switch to OpenStack Ocata release for RBD testing
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 09:55:38 -04:00
Mykola Golub
8c2631c6f7
Merge pull request #14846 from dillaman/wip-rbd-cli
...
qa/workunits/rbd: increased trash deferment period
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-30 09:59:52 +03:00
Jason Dillaman
b51db2655b
qa/workunits/rbd: increased trash deferment period
...
Teuthology would periodically fail due to a delay >10 seconds
between moving the item to the trash and checking its status.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-04-27 15:27:50 -04:00
Jason Dillaman
b67c5c7aa4
Merge pull request #14754 from trociny/wip-19128
...
rbd: import needs to sanity check auto-generated image name
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-04-27 14:40:51 -04:00
Ilya Dryomov
7c8a7f52da
qa: krbd write-after-checksum tests
...
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-04-27 16:28:08 +02:00
Ilya Dryomov
192f6ca079
qa/workunits/rbd: test exclusive map option
...
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-04-26 15:05:50 +02:00
Mykola Golub
40de8f1183
rbd: import needs to sanity check auto-generated image name
...
Fixes: http://tracker.ceph.com/issues/19128
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-24 20:29:36 +02:00
Mykola Golub
dda32847e8
qa/workunits/rbd: don't use deprecated syntax
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-20 14:29:14 +02:00
Josh Durgin
6fba80c1fa
osd, OSDMonitor, qa: mark ec overwrites non-experimental
...
Keep the pool flag around so we can distinguish between a pool that
should maintain hashes for each chunk, and a missing one is a bug, vs
an overwrites pool where we rely on bluestore checksums for detecting
corruption.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2017-04-19 17:45:43 -07:00
Ilya Dryomov
5b2d7f76bb
qa: krbd_data_pool.sh: account for rbd_info metadata object
...
... added in commit a16beba784
("librbd: image create validates that
pool supports overwrites").
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-04-18 21:47:36 +02:00
Mykola Golub
bf52a2a53b
qa/workunits/rbd: diff.sh failed removing nonexistent file
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-12 16:22:43 +02:00