]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephadm/test_cephadm.sh: need --fsid always 32220/head
authorSage Weil <sage@redhat.com>
Thu, 12 Dec 2019 13:36:23 +0000 (07:36 -0600)
committerSage Weil <sage@redhat.com>
Thu, 12 Dec 2019 16:46:15 +0000 (10:46 -0600)
Otherwise the test breaks if there are other cluster(s) on the host (like
there normally are in my dev environment).

Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephadm/test_cephadm.sh

index 29cf4b278057a50098a957492ae4987c9c7a254f..ad7f799d4575a34be0ee1ca05da77dd1e305c031 100755 (executable)
@@ -96,7 +96,6 @@ $SUDO $CEPHADM_BIN --image $IMAGE_MASTER version | grep 'ceph version'
 which docker && ( $CEPHADM --docker version | grep 'ceph version' )
 
 ## test shell before bootstrap, when crash dir isn't (yet) present on this host
-$CEPHADM shell -- ceph -v | grep 'ceph version'
 $CEPHADM shell --fsid $FSID -- ceph -v | grep 'ceph version'
 
 ## bootstrap
@@ -188,7 +187,7 @@ $SUDO losetup $loop_dev $TMPDIR/$OSD_IMAGE_NAME
 $SUDO pvcreate $loop_dev && $SUDO vgcreate $OSD_VG_NAME $loop_dev
 for id in `seq 0 $((--OSD_TO_CREATE))`; do
     $SUDO lvcreate -l $((100/$OSD_TO_CREATE))%VG -n $OSD_LV_NAME.$id $OSD_VG_NAME
-    $CEPHADM shell --config $CONFIG --keyring $KEYRING -- \
+    $CEPHADM shell --fsid $FSID --config $CONFIG --keyring $KEYRING -- \
             ceph orchestrator osd create \
                 $(hostname):/dev/$OSD_VG_NAME/$OSD_LV_NAME.$id
 done
@@ -229,7 +228,7 @@ $CEPHADM unit --fsid $FSID --name mon.a -- enable
 $CEPHADM unit --fsid $FSID --name mon.a -- is-enabled
 
 ## shell
-$CEPHADM shell -- true
+$CEPHADM shell --fsid $FSID -- true
 $CEPHADM shell --fsid $FSID -- test -d /var/log/ceph
 
 ## enter