From 371d3f40911917704f4992c48236b4c60905bf4e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 1 Nov 2017 10:45:09 +0800 Subject: [PATCH] qa: stop testing deprecated "ceph osd create" "ceph osd create" is not idempotent, and is considered deprecated. Fixes: http://tracker.ceph.com/issues/21993 Signed-off-by: Kefu Chai --- qa/workunits/cephtool/test.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index c63ea889041..6e3f0ebc793 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -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" ] -- 2.39.5