Merge pull request #15641 from jecluis/wip-mon-deprecate-osd-create

mon: mark `osd create` as deprecated

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-06-15 08:58:50 -05:00 committed by GitHub
commit 9943df8711
2 changed files with 8 additions and 2 deletions

View File

@ -478,6 +478,11 @@ Usage::
Subcommand ``create`` creates new osd (with optional UUID and ID). 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:: Usage::
ceph osd create {<uuid>} {<id>} ceph osd create {<uuid>} {<id>}

View File

@ -769,10 +769,11 @@ COMMAND("osd lost " \
"name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \ "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", \ "mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL", \
"osd", "rw", "cli,rest") "osd", "rw", "cli,rest")
COMMAND("osd create " \ COMMAND_WITH_FLAG("osd create " \
"name=uuid,type=CephUUID,req=false " \ "name=uuid,type=CephUUID,req=false " \
"name=id,type=CephOsdName,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 " \ COMMAND("osd new " \
"name=uuid,type=CephUUID,req=true " \ "name=uuid,type=CephUUID,req=true " \
"name=id,type=CephOsdName,req=false", \ "name=id,type=CephOsdName,req=false", \