]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: stop testing deprecated "ceph osd create" 18659/head
authorKefu Chai <kchai@redhat.com>
Wed, 1 Nov 2017 02:45:09 +0000 (10:45 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Nov 2017 02:45:11 +0000 (10:45 +0800)
"ceph osd create" is not idempotent, and is considered deprecated.

Fixes: http://tracker.ceph.com/issues/21993
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/cephtool/test.sh

index c63ea889041cfe7489ea4f2035b418ef8ccc033b..6e3f0ebc793f994957096be6099f920257bf196a 100755 (executable)
@@ -1587,16 +1587,7 @@ function test_mon_osd()
   # When CEPH_CLI_TEST_DUP_COMMAND is set, osd create
   # is repeated and consumes two osd id, not just one.
   #
-  local next_osd
-  if test "$CEPH_CLI_TEST_DUP_COMMAND" ; then
-      next_osd=$((gap_start + 1))
-  else
-      next_osd=$gap_start
-  fi
-  id=`ceph osd create`
-  [ "$id" = "$next_osd" ]
-
-  next_osd=$((id + 1))
+  local next_osd=$gap_start
   id=`ceph osd create $(uuidgen)`
   [ "$id" = "$next_osd" ]