]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: stop testing deprecated "ceph osd create" 18741/head
authorKefu Chai <kchai@redhat.com>
Wed, 1 Nov 2017 02:45:09 +0000 (10:45 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Sun, 5 Nov 2017 03:33:05 +0000 (12:33 +0900)
"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>
(cherry picked from commit 371d3f40911917704f4992c48236b4c60905bf4e)

qa/workunits/cephtool/test.sh

index a15272193e1ae67123ea786dac7f43d1075b2405..b70f6f9bf0fb5db47b48d07aac1403ab2c5af9e9 100755 (executable)
@@ -1593,16 +1593,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" ]