[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH v3 5/5] block/rbd: add support for
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH v3 5/5] block/rbd: add support for 'mon_host', 'auth_supported' via QAPI |
Date: |
Tue, 28 Feb 2017 15:34:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Starting with just the QAPI schema.
Jeff Cody <address@hidden> writes:
> This adds support for three additional options that may be specified
> by QAPI in blockdev-add:
>
> server: host, port
> auth method: either 'cephx' or 'none'
>
> The "server" and "auth-supported" QAPI parameters are arrays. To conform
> with the rados API, the array items are join as a single string with a ';'
> character as a delimiter when setting the configuration values.
>
> Signed-off-by: Jeff Cody <address@hidden>
> ---
[...]
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index f152953..5f74f92 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -2666,6 +2666,28 @@
> '*header-digest': 'IscsiHeaderDigest',
> '*timeout': 'int' } }
>
> +
> +##
> +# @RbdAuthSupport:
> +#
> +# An enumeration of RBD auth support
> +#
> +# Since: 2.9
> +##
> +{ 'enum': 'RbdAuthSupport',
> + 'data': [ 'cephx', 'none' ] }
> +
> +
> +##
> +# @RbdAuthMethod:
> +#
> +# An enumeration of rados auth_supported types
> +#
> +# Since: 2.9
> +##
> +{ 'struct': 'RbdAuthMethod',
> + 'data': { 'auth': 'RbdAuthSupport' } }
> +
Any particular reason for wrapping the enum in a struct? Do you
envisage adding members to the struct?
> ##
> # @BlockdevOptionsRbd:
> #
> @@ -2681,6 +2703,11 @@
> #
> # @user: #optional Ceph id name.
> #
> +# @server: #optional Monitor host address and port. This maps
> +# to the "mon_host" Ceph option.
Suggest something like "Monitor addresses", for consistency with how we
document *SocketAddress members elsewhere, and plural to hint at it
being a list, not just one.
> +#
> +# @auth-supported: #optional Authentication supported.
> +#
> # @password-secret: #optional The ID of a QCryptoSecret object providing
> # the password for the login.
> #
> @@ -2692,6 +2719,8 @@
> '*conf': 'str',
> '*snapshot': 'str',
> '*user': 'str',
> + '*server': ['InetSocketAddress'],
> + '*auth-supported': ['RbdAuthMethod'],
> '*password-secret': 'str' } }
>
> ##
- [Qemu-block] [PATCH v3 0/5] RBD: blockdev-add (for 2.9?), Jeff Cody, 2017/02/27
- [Qemu-block] [PATCH v3 2/5] block/rbd: add all the currently supported runtime_opts, Jeff Cody, 2017/02/27
- [Qemu-block] [PATCH v3 1/5] block/rbd: don't copy strings in qemu_rbd_next_tok(), Jeff Cody, 2017/02/27
- [Qemu-block] [PATCH v3 4/5] block/rbd: add blockdev-add support, Jeff Cody, 2017/02/27
- [Qemu-block] [PATCH v3 3/5] block/rbd: parse all options via bdrv_parse_filename, Jeff Cody, 2017/02/27
- [Qemu-block] [PATCH v3 5/5] block/rbd: add support for 'mon_host', 'auth_supported' via QAPI, Jeff Cody, 2017/02/27
- Re: [Qemu-block] [Qemu-devel] [PATCH v3 5/5] block/rbd: add support for 'mon_host', 'auth_supported' via QAPI,
Markus Armbruster <=
- Re: [Qemu-block] [Qemu-devel] [PATCH v3 5/5] block/rbd: add support for 'mon_host', 'auth_supported' via QAPI, Markus Armbruster, 2017/02/28