]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk paritition creation and partition table in use
authorLoic Dachary <ldachary@redhat.com>
Wed, 4 Mar 2015 14:43:15 +0000 (15:43 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 10 Mar 2015 16:50:29 +0000 (17:50 +0100)
The kernel partition table notification (via partprobe, partx, etc.) may
behave differently when a partition is in use. Add a test case that
checks a new journal partition shows as expected, even if another
journal partition is in use.

http://tracker.ceph.com/issues/10987 Refs: #10987

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/ceph-disk.sh

index 8049aa0fc0a36333ed218ef99116c9ec679ffb18..5981226ed95758d599117e8e1612a2800aaaffd9 100755 (executable)
@@ -357,9 +357,22 @@ function activate_dev_body() {
 
     setup
     run_mon
+    #
+    # Create an OSD and reuse an existing journal partition
+    #
     test_activate $newdisk ${newdisk}p1 ${journal}p1 || return 1
+    #
+    # Create an OSD and get a journal partition from a disk that
+    # already contains a journal partition which is in use. Updates of
+    # the kernel partition table may behave differently when a
+    # partition is in use. See http://tracker.ceph.com/issues/7334 for
+    # more information.
+    #
+    ceph-disk zap $disk || return 1
+    test_activate $disk ${disk}p1 $journal || return 1
     kill_daemons
     umount ${newdisk}p1 || return 1
+    umount ${disk}p1 || return 1
     teardown
 }