]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/rados/cephadm/dashboard: fix creating OSD failure 37575/head
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 7 Oct 2020 06:45:24 +0000 (14:45 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Wed, 7 Oct 2020 06:45:24 +0000 (14:45 +0800)
The iSCSI disks report a larger optimal I/O size, which causes
ceph-volume to miscalculate the extent count. Workaround this by
reporting 0.

Fixes: https://tracker.ceph.com/issues/47742
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
qa/workunits/cephadm/create_iscsi_disks.sh

index e43791dc841e456bbbf0e5160cdeeb327f1aaf61..45319e3a145dffbdc3d3b672e359aedcccae2224 100755 (executable)
@@ -27,6 +27,8 @@ for i in $(seq 3); do
     $SUDO truncate --size ${DISK_FILE_SIZE} ${DISK_FILE}
 
     $SUDO targetcli /backstores/fileio create "lun${i}" ${DISK_FILE}
+    # Workaround for https://tracker.ceph.com/issues/47758
+    $SUDO targetcli "/backstores/fileio/lun${i}" set attribute optimal_sectors=0
     $SUDO targetcli /iscsi/${TARGET_NAME}/tpg1/luns create "/backstores/fileio/lun${i}"
 done