Skip to content

Commit

Permalink
tests: ceph-disk: modified the destroy_osd test function.
Browse files Browse the repository at this point in the history
  - use the new implementation (ceph-disk deactivate/destroy) instead of step by step remove

Signed-off-by: Vicente Cheng <[email protected]>
  • Loading branch information
Vicente-Cheng committed Nov 17, 2015
1 parent 7922041 commit 06aeec9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qa/workunits/ceph-disk/ceph-disk-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ def destroy_osd(self, uuid):
except:
pass
self.sh("""
ceph osd down {id}
ceph osd rm {id}
ceph auth del osd.{id}
ceph osd crush rm osd.{id}
ceph-disk deactivate --deactivate-by-id {id}
ceph-disk destroy --destroy-by-id {id}
""".format(id=id))

@staticmethod
Expand Down

0 comments on commit 06aeec9

Please sign in to comment.