From 83f16ba0800f3303d1d364f96b1d4fdd93b19f0d Mon Sep 17 00:00:00 2001 From: ioito Date: Sat, 27 Jul 2019 19:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0storage=20api=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/schemas/storage.yaml | 45 +++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/docs/schemas/storage.yaml b/docs/schemas/storage.yaml index c6f7988ca8..7c16729e9e 100644 --- a/docs/schemas/storage.yaml +++ b/docs/schemas/storage.yaml @@ -23,15 +23,33 @@ StorageCreate: example: local enum: [local,nas,vsan,rbd,nfs,gpfs,baremetal] description: 存储集群类型 - mon_host: + rbd_mon_host: type: string - description: Ceph mon_host config - key: + example: 10.127.10.230,10.127.10.237,10.127.10.238 + description: Ceph mon_host config, 仅存储类型是rbd时有用 + rbd_key: type: string - description: Ceph key config - pool: + example: AQDigB9dtnDAKhAAxS6X4zi4BPR/lIle4nf4Dw== + description: Ceph key config, 仅存储类型是rbd时有用 + rbd_pool: type: string - description: Ceph pool name + example: test-pool + description: Ceph pool name, 仅存储类型是rbd时有用 + rbd_rados_mon_op_timeout: + type: string + example: 10 + default: 5 + description: Ceph集群连接超时时间, 仅存储类型是rbd时有用 + rbd_rados_osd_op_timeout: + type: string + example: 3600 + default: 1200 + description: Ceph块存储操作超时时间, 仅存储类型是rbd时有用 + rbd_client_mount_timeout: + type: string + example: 60 + default: 120 + description: CephFS挂载超时时间, 仅存储类型是rbd时有用 nfs_host: type: string description: NFS host address @@ -210,3 +228,18 @@ StorageUpdate: type: string example: this is test storage description: 存储描述信息 + rbd_key: + type: string + description: Ceph key config + rbd_rados_mon_op_timeout: + type: string + example: 10 + description: Ceph集群连接超时时间 + rbd_rados_osd_op_timeout: + type: string + example: 3600 + description: Ceph块存储操作超时时间 + rbd_client_mount_timeout: + type: string + example: 60 + description: CephFS挂载超时时间