]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: mark `osd create` as deprecated 15641/head
authorJoao Eduardo Luis <joao@suse.de>
Mon, 12 Jun 2017 19:53:47 +0000 (20:53 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Mon, 12 Jun 2017 19:59:01 +0000 (20:59 +0100)
With the introduction of `osd new`, we are now deprecating `osd create`
with the intent of removing it in a future release.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
doc/man/8/ceph.rst
src/mon/MonCommands.h

index bbadf7cb53cef87f4029b85b493cb1d5e38cb2d1..fa3d126fb11bd96d35840e386f6f5fe28bd3e576 100644 (file)
@@ -478,6 +478,11 @@ Usage::
 
 Subcommand ``create`` creates new osd (with optional UUID and ID).
 
+This command is DEPRECATED as of the Luminous release, and will be removed in
+a future release.
+
+Subcommand ``new`` should instead be used.
+
 Usage::
 
        ceph osd create {<uuid>} {<id>}
index 61763d7611253895c81e90b90f2df97e5557f4df..04e44c3e07d0992c240ddcc595519ff0940c738d 100644 (file)
@@ -734,10 +734,11 @@ COMMAND("osd lost " \
        "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \
        "mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL", \
        "osd", "rw", "cli,rest")
-COMMAND("osd create " \
+COMMAND_WITH_FLAG("osd create " \
        "name=uuid,type=CephUUID,req=false " \
        "name=id,type=CephOsdName,req=false", \
-       "create new osd (with optional UUID and ID)", "osd", "rw", "cli,rest")
+       "create new osd (with optional UUID and ID)", "osd", "rw", "cli,rest",
+       FLAG(DEPRECATED))
 COMMAND("osd new " \
         "name=uuid,type=CephUUID,req=true " \
         "name=id,type=CephOsdName,req=false", \