summaryrefslogtreecommitdiff
path: root/qa
Commit message (Collapse)AuthorAgeFilesLines
* rbd image_read.sh: ensure rbd is loadedAlex Elder2013-05-221-0/+1
| | | | | | Make sure rbd is loaded before proceeding with the script. Signed-off-by: Alex Elder <elder@inktank.com>
* rbd image_read.sh: test different clone object ordersAlex Elder2013-05-211-5/+59
| | | | | | | | | | | | | | An rbd clone image can be created with an object order that differs from that of its parent. This patch adds testing for that in qa/workunits/rbd/image_read.sh. By default, clone images will be created with an object size twice as big as that of its parent. For simplicity, when a clone's object order differs from its parent the order will be either one more than or one less than that of its parent image, meaning its object size is either double or half of the size of objects used in the parent. Signed-off-by: Alex Elder <elder@inktank.com>
* rbd image_read.sh: add clone-of-clone testingAlex Elder2013-05-211-1/+25
| | | | | | | Add testing to verify that a snapshot of a clone and a clone of that snapshot both produce the correct results when read. Signed-off-by: Alex Elder <elder@inktank.com>
* rbd image_read.sh: allocate local file at create timeAlex Elder2013-05-211-7/+4
| | | | | | | Move the dd command that touches the last byte in a local file into create_image() where it belongs (out of fill_original()). Signed-off-by: Alex Elder <elder@inktank.com>
* rbd image_read.sh: a few cleanupsAlex Elder2013-05-211-25/+36
| | | | | | | | | | | | | | | | | | | | | | | The function boolean_toggle() in qa/workunits/rbd/image_read.sh is defined but never used. My intentions were good though. Fix it and use it for argument parsing. Change the minimum supported object order so it matches what the command line interface enforces. Assign the initial value of TEST_CLONES from the environment if it's available. Change defaults to use format 2 and test clones. Output details about the parameters of the run even if not being verbose. Make the order of assignment of argument variables consistent. And fix a typo unmap_image(). Signed-off-by: Alex Elder <elder@inktank.com>
* rbd: prevent import of a dirSage Weil2013-05-211-0/+5
| | | | | Fixes: #2865 Signed-off-by: Sage Weil <sage@inktank.com>
* Merge remote-tracking branch 'gh/next'Sage Weil2013-05-131-4/+4
|\
| * qa: rsync test: exclude /usr/localSage Weil2013-05-111-4/+4
| | | | | | | | | | | | | | Some plana have non-world-readable crap in /usr/local/samba. Avoid /usr/local entirely for that and any similar landmines. Signed-off-by: Sage Weil <sage@inktank.com>
* | librbd: add options to enable balanced or localized reads for snapshotsJosh Durgin2013-05-121-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since snapshots never change, it's safe to read from replicas for them. A common use for this would be reading from a parent snapshot shared by many clones. Convert LibrbdWriteback and AioRead to use the ObjectOperation api so we can set flags. Fortunately the external wrapper holds no data, so its lifecycle doesn't need to be managed. Include a simple workunit that sets the flags in various combinations and looks for their presence in the logs from 'rbd export'. Fixes: #3064 Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
* | Merge pull request #165 from dachary/wip-4321Sage Weil2013-05-081-0/+80
|\ \ | | | | | | unit tests for FileStore::_detect_fs when running on ext4
| * | unit tests for FileStore::_detect_fs when running on ext4Loic Dachary2013-04-021-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unit tests are added in test/filestore/store_test.cc for the FileStore::_detect_fs method, when using ext4. It tests the following situations: * without user_xattr, ext4 fails * mounted with user_xattr, ext4 fails if filestore_xattr_use_omap is false * mounted with user_xattr, ext4 succeeds if filestore_xattr_use_omap is true The tests are grouped in an ext4 dedicated class TEST(EXT4StoreTest, _detect_fs) The qa/workunits/filestore/filestore.sh script is added to prepare the environment required for the unit tests ( create an image file, formats it with ext4 etc.). It runs ceph_test_filestore with a sudo to allow it to mount(2) and umount(2) the ext4 file system. It is called with ceph_test_filestore --gtest_filter=EXT4StoreTest.* to only run the ext4 dependent tests. The filestore.sh script is meant to be used as part of teuthology in order to increase the code coverage for src/os/FileStore.cc. It is self tested and can be checked from the source directory with CEPH_TEST_FILESTORE=../../../src/ceph_test_filestore filestore.sh TEST http://tracker.ceph.com/issues/4321 refs #4321 Signed-off-by: Loic Dachary <loic@dachary.org>
* | | rados: add whole-object 'clonedata' commandSage Weil2013-05-061-0/+13
| |/ |/| | | | | | | | | Clone the data stream from one object to another. Signed-off-by: Sage Weil <sage@inktank.com>
* | test_mon_config_key.py: fix some more naming of local varsDanny Al-Gaaf2013-04-251-4/+4
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: fix naming of local variable opLOGDanny Al-Gaaf2013-04-251-13/+13
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: fix naming of local variableDanny Al-Gaaf2013-04-251-4/+4
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | fix "Instance of 'list' has no 'split' member"Danny Al-Gaaf2013-04-251-2/+2
| | | | | | | | | | | | Cast with str() to fix issue. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: fix naming of local variableDanny Al-Gaaf2013-04-251-10/+10
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: fix naming of global variables/constantsDanny Al-Gaaf2013-04-251-46/+46
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: add missing space after commaDanny Al-Gaaf2013-04-251-18/+18
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: remove unnecessary semicolonDanny Al-Gaaf2013-04-251-1/+1
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | test_mon_config_key.py: fix bad indentationDanny Al-Gaaf2013-04-251-308/+308
| | | | | | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | rbd: fix qa tests to use --allow-shrinkSage Weil2013-04-193-4/+5
| | | | | | | | | | Fixes: #4763 Signed-off-by: Sage Weil <sage@inktank.com>
* | qa: pull qemu-iotests from ceph.com mirrorSage Weil2013-04-161-1/+1
| | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
* | qa: add workunit for running qemu-iotestsJosh Durgin2013-04-121-0/+22
| | | | | | | | | | | | | | | | | | This uses the old stand-alone qemu-iotests repo so it works with the version of qemu in Ubuntu 12.04. The tests depend tightly on qemu version, so to use later tests we'd need to install corresponding versions of qemu. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
* | rbd qa/workunits: add rbd read data testAlex Elder2013-04-101-0/+608
| | | | | | | | | | | | | | | | | | This adds a new test script for validating data reads from a mapped rbd image is what it's expected to be. See the content of the file for a bit more explanation. Signed-off-by: Alex Elder <elder@inktank.com>
* | mon: fix crush unit tests for idempotencySage Weil2013-04-031-11/+6
| | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
* | test_mon_config_key.py: fix 'del' to clean up correctly internallyDan Mick2013-04-021-2/+2
|/
* Merge pull request #183 from ceph/wip-4313-bJoão Eduardo Luís2013-04-011-0/+400
|\ | | | | | | | | qa: workunits: mon: test 'config-key' store Reviewed-by: Sage Weil <sage@inktank.com>
| * qa: workunits: mon: test 'config-key' storeJoao Eduardo Luis2013-04-011-0/+400
| | | | | | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* | rbd: prevent import-diff if start snapshot is not already presentSage Weil2013-03-311-0/+5
| | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
* | rbd: fail import-diff if end snap already existsSage Weil2013-03-311-0/+1
| | | | | | | | | | | | This will prevent a user from inadvertantly reapplying a diff twice. Signed-off-by: Sage Weil <sage@inktank.com>
* | librbd: diff_iterate fromsnapname after the end snap is also invalidSage Weil2013-03-311-0/+3
| | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
* | qa: rbd/diff_continuous.sh: use non-standard stripingSage Weil2013-03-311-4/+3
| | | | | | | | | | | | | | Exercise the striping arithmetic by using non-standard striping that varies between the parent and child. Signed-off-by: Sage Weil <sage@inktank.com>
* | qa: rbd/diff_continuous.sh: base test off a cloneSage Weil2013-03-311-9/+18
| | | | | | | | | | | | Get a bit of coverage on clones by starting with a clone. Signed-off-by: Sage Weil <sage@inktank.com>
* | qa: add rbd/diff_continuous.sh stress testSage Weil2013-03-311-0/+51
| | | | | | | | | | | | | | | | Stress test that does io on an image while we are mirroring a diff from earlier snaps to a second copy. At the end, verify that all snaps have matching content. Signed-off-by: Sage Weil <sage@inktank.com>
* | rbd: implement 'export-diff' and 'import-diff' commandsSage Weil2013-03-311-0/+43
|/ | | | | | | | | Export a diff of an image from a previous snapshot to a file (or stdout). Import a diff and apply it to an image, and then create the ending snapshot. Signed-off-by: Sage Weil <sage@inktank.com>
* mon: OSDMonitor: add 'osd pool set-quota' commandSage Weil2013-03-291-0/+38
| | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mon: fix crush_ops.sh testsSage Weil2013-03-261-4/+9
| | | | | | | Make it work. Also, make note that these aren't handled idempotently by the mon currently. Doh! Signed-off-by: Sage Weil <sage@inktank.com>
* testing: fix hadoop-internal-testJoe Buck2013-03-261-4/+0
| | | | | | | | | | Remove now superfluous directory changes that are causing tests to fail. This code should have been removed when we transitioned from running tests with Ant to using Java to run the tests. Signed-off-by: Joe Buck <jbbuck@gmail.com> Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
* mon, crush: add some tests to build a DAG via the cliSage Weil2013-03-221-0/+39
| | | | Signed-off-by: Sage Weil <sage@inktank.com>
* qa/workunits/direct_io/test_sync_io.c: add proper error handlingDanny Al-Gaaf2013-03-201-2/+23
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* test_short_dio_read.c: add proper error handlingDanny Al-Gaaf2013-03-201-0/+13
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* qa: add 16MB direct-io write testSage Weil2013-03-181-0/+6
| | | | | | See bug #2657. Signed-off-by: Sage Weil <sage@inktank.com>
* qa/workunits/restart: Add test to check backtraceSam Lang2013-03-161-0/+252
| | | | | | | | | | | This script uses the python bindings to libcephfs and rados to create files and check the correctness of the backtrace written to the 'parent' xattr on the first object (if its a file) or inode (if its a dir). The script includes test cases that kill the mds at specific kill points and restart it through teuthology using the teuthology restart task. Signed-off-by: Sam Lang <sam.lang@inktank.com>
* testing: update wordcount to new code layout.Joe Buck2013-03-121-3/+3
| | | | Signed-off-by: Joe Buck <jbbuck@gmail.com>
* testing: fix hadoop-internal-testsJoe Buck2013-03-111-3/+3
| | | | | | | | | The hadoop-internal-tests workunit needs to be updated in light of our moving to using stock Hadoop with our hadoop-cephfs jars. Signed-off-by: Joe Buck <jbbuck@gmail.com>
* testing: updating hadoop-internal testJoe Buck2013-02-261-8/+23
| | | | | | | | | | Small tweaks to the hadoop-internal test to better use existing environment varaibles and in response to the recent teuthology changes. Signed-off-by: Joe Buck <jbbuck@gmail.com> Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
* test: removing dead codeJoe Buck2013-02-261-3/+0
| | | | Signed-off-by: Joe Buck <jbbuck@gmail.com>
* test: updating libcephfs-java testsJoe Buck2013-02-261-1/+25
| | | | | | | Recent changes in teuthology necessitate changes to libcephfs-java test case. Signed-off-by: Joe Buck <jbbuck@gmail.com>
* test_lock_fence.sh, rbdrw.py: rbd lock/fence testDan Mick2013-02-251-0/+49
| | | | | | | | | | | | | | | qa/workunits/rbd/test_lock_fence.sh runs using test/rbdrw.py rbdrw.py creates an image, locks it, and runs an I/O loop; test_lock_fence.sh runs it, waits, and then blacklists that client, which causes rbdrw.py to get ESHUTDOWN on operations thereafter. Currently doesn't work with rbd caching enabled. rbd.py gets new exception type for ESHUTDOWN Fixes: #3190 Signed-off-by: Dan Mick <dan.mick@inktank.com> Signed-off-by: Josh Durgin <josh.durgin@inktank.com>