]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: ceph create may consume more than one id
authorLoic Dachary <ldachary@redhat.com>
Thu, 21 May 2015 14:39:30 +0000 (16:39 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 22 May 2015 08:16:24 +0000 (10:16 +0200)
commit5c69f5e15fec2bbf65ab5680bc912ad436d5923a
tree72f74de0288da32b52ef744c7d0d8e258dd60405
parent783fdc7c3eb5ea738111b18719df6c98105e1665
tests: ceph create may consume more than one id

When CEPH_CLI_TEST_DUP_COMMAND=1 is set, ceph osd create will consume
two osd id and return the later. Fix the test to account for that and
not assume the osd id being allocated by osd create is always the
next available osd id.

The other osd create tests do not suffer from the same variation because
they provide a UUID argument that guarantees the same osd id is going to
be returned every time.

http://tracker.ceph.com/issues/11618 Fixes: #11618

Signed-off-by: Loic Dachary <ldachary@redhdat.com>
qa/workunits/cephtool/test.sh