1
The following changes since commit 19b599f7664b2ebfd0f405fb79c14dd241557452:
1
The following changes since commit 9c125d17e9402c232c46610802e5931b3639d77b:
2
2
3
Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2018-08-27-v2' into staging (2018-08-27 16:44:20 +0100)
3
Merge tag 'pull-tcg-20220420' of https://gitlab.com/rth7680/qemu into staging (2022-04-20 16:43:11 -0700)
4
4
5
are available in the Git repository at:
5
are available in the Git repository at:
6
6
7
git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request
7
https://gitlab.com/stefanha/qemu.git tags/block-pull-request
8
8
9
for you to fetch changes up to 8af2eb7b43a1b694fd6d1d090025027d6b72caac:
9
for you to fetch changes up to d45c83328feab2e4083991693160f0a417cfd9b0:
10
10
11
block/rbd: add deprecation documentation for filename keyvalue pairs (2018-09-12 08:51:45 -0400)
11
virtiofsd: Add docs/helper for killpriv_v2/no_killpriv_v2 option (2022-04-21 12:05:15 +0200)
12
12
13
----------------------------------------------------------------
13
----------------------------------------------------------------
14
Block patches for RBD
14
Pull request
15
16
Small contrib/vhost-user-blk, contrib/vhost-user-scsi, and tools/virtiofsd
17
improvements.
18
15
----------------------------------------------------------------
19
----------------------------------------------------------------
16
20
17
Jeff Cody (4):
21
Liu Yiding (1):
18
block/rbd: pull out qemu_rbd_convert_options
22
virtiofsd: Add docs/helper for killpriv_v2/no_killpriv_v2 option
19
block/rbd: Attempt to parse legacy filenames
20
block/rbd: add iotest for rbd legacy keyvalue filename parsing
21
block/rbd: add deprecation documentation for filename keyvalue pairs
22
23
23
block/rbd.c | 89 ++++++++++++++++++++++++++++++++------
24
Sakshi Kaushik (1):
24
qemu-deprecated.texi | 15 +++++++
25
Implements Backend Program conventions for vhost-user-scsi
25
tests/qemu-iotests/231 | 62 ++++++++++++++++++++++++++
26
26
tests/qemu-iotests/231.out | 9 ++++
27
Stefan Hajnoczi (1):
27
tests/qemu-iotests/group | 1 +
28
contrib/vhost-user-blk: add missing GOptionEntry NULL terminator
28
5 files changed, 162 insertions(+), 14 deletions(-)
29
29
create mode 100755 tests/qemu-iotests/231
30
docs/tools/virtiofsd.rst | 5 ++
30
create mode 100644 tests/qemu-iotests/231.out
31
contrib/vhost-user-blk/vhost-user-blk.c | 3 +-
32
contrib/vhost-user-scsi/vhost-user-scsi.c | 77 +++++++++++++++--------
33
tools/virtiofsd/helper.c | 3 +
34
4 files changed, 62 insertions(+), 26 deletions(-)
31
35
32
--
36
--
33
2.17.1
37
2.35.1
34
35
diff view generated by jsdifflib
1
Code movement to pull the conversion from Qdict to BlockdevOptionsRbd
1
From: Sakshi Kaushik <sakshikaushik717@gmail.com>
2
into a helper function.
3
2
4
Reviewed-by: Eric Blake <eblake@redhat.com>
3
Signed-off-by: Sakshi Kaushik <sakshikaushik717@gmail.com>
5
Reviewed-by: John Snow <jsnow@redhat.com>
4
Message-id: 20220406162410.8536-1-sakshikaushik717@gmail.com
6
Signed-off-by: Jeff Cody <jcody@redhat.com>
5
7
Message-id: 5b49a980f2cde6610ab1df41bb0277d00b5db893.1536704901.git.jcody@redhat.com
6
[Name the iSCSI URL long option --iscsi-uri instead of --iscsi_uri for
8
Signed-off-by: Jeff Cody <jcody@redhat.com>
7
consistency, fix --fd which was rejected due to an outdated
8
--socket-path check, and add missing entries[] terminator.
9
--Stefan]
10
11
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9
---
12
---
10
block/rbd.c | 36 ++++++++++++++++++++++++------------
13
contrib/vhost-user-scsi/vhost-user-scsi.c | 77 +++++++++++++++--------
11
1 file changed, 24 insertions(+), 12 deletions(-)
14
1 file changed, 52 insertions(+), 25 deletions(-)
12
15
13
diff --git a/block/rbd.c b/block/rbd.c
16
diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c
14
index XXXXXXX..XXXXXXX 100644
17
index XXXXXXX..XXXXXXX 100644
15
--- a/block/rbd.c
18
--- a/contrib/vhost-user-scsi/vhost-user-scsi.c
16
+++ b/block/rbd.c
19
+++ b/contrib/vhost-user-scsi/vhost-user-scsi.c
17
@@ -XXX,XX +XXX,XX @@ failed_opts:
20
@@ -XXX,XX +XXX,XX @@ fail:
18
return r;
21
19
}
22
/** vhost-user-scsi **/
20
23
21
+static int qemu_rbd_convert_options(QDict *options, BlockdevOptionsRbd **opts,
24
+static int opt_fdnum = -1;
22
+ Error **errp)
25
+static char *opt_socket_path;
23
+{
26
+static gboolean opt_print_caps;
24
+ Visitor *v;
27
+static char *iscsi_uri;
25
+ Error *local_err = NULL;
26
+
28
+
27
+ /* Convert the remaining options into a QAPI object */
29
+static GOptionEntry entries[] = {
28
+ v = qobject_input_visitor_new_flat_confused(options, errp);
30
+ { "print-capabilities", 'c', 0, G_OPTION_ARG_NONE, &opt_print_caps,
29
+ if (!v) {
31
+ "Print capabilities", NULL },
30
+ return -EINVAL;
32
+ { "fd", 'f', 0, G_OPTION_ARG_INT, &opt_fdnum,
33
+ "Use inherited fd socket", "FDNUM" },
34
+ { "iscsi-uri", 'i', 0, G_OPTION_ARG_FILENAME, &iscsi_uri,
35
+ "iSCSI URI to connect to", "FDNUM" },
36
+ { "socket-path", 's', 0, G_OPTION_ARG_FILENAME, &opt_socket_path,
37
+ "Use UNIX socket path", "PATH" },
38
+ { NULL, }
39
+};
40
+
41
int main(int argc, char **argv)
42
{
43
VusDev *vdev_scsi = NULL;
44
- char *unix_fn = NULL;
45
- char *iscsi_uri = NULL;
46
- int lsock = -1, csock = -1, opt, err = EXIT_SUCCESS;
47
+ int lsock = -1, csock = -1, err = EXIT_SUCCESS;
48
49
- while ((opt = getopt(argc, argv, "u:i:")) != -1) {
50
- switch (opt) {
51
- case 'h':
52
- goto help;
53
- case 'u':
54
- unix_fn = g_strdup(optarg);
55
- break;
56
- case 'i':
57
- iscsi_uri = g_strdup(optarg);
58
- break;
59
- default:
60
- goto help;
61
- }
62
+ GError *error = NULL;
63
+ GOptionContext *context;
64
+
65
+ context = g_option_context_new(NULL);
66
+ g_option_context_add_main_entries(context, entries, NULL);
67
+ if (!g_option_context_parse(context, &argc, &argv, &error)) {
68
+ g_printerr("Option parsing failed: %s\n", error->message);
69
+ exit(EXIT_FAILURE);
31
+ }
70
+ }
32
+
71
+
33
+ visit_type_BlockdevOptionsRbd(v, NULL, opts, &local_err);
72
+ if (opt_print_caps) {
34
+ visit_free(v);
73
+ g_print("{\n");
74
+ g_print(" \"type\": \"scsi\"\n");
75
+ g_print("}\n");
76
+ goto out;
77
}
78
- if (!unix_fn || !iscsi_uri) {
35
+
79
+
36
+ if (local_err) {
80
+ if (!iscsi_uri) {
37
+ error_propagate(errp, local_err);
81
goto help;
38
+ return -EINVAL;
39
+ }
40
+
41
+ return 0;
42
+}
43
+
44
static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
45
Error **errp)
46
{
47
BDRVRBDState *s = bs->opaque;
48
BlockdevOptionsRbd *opts = NULL;
49
- Visitor *v;
50
const QDictEntry *e;
51
Error *local_err = NULL;
52
char *keypairs, *secretid;
53
@@ -XXX,XX +XXX,XX @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
54
qdict_del(options, "password-secret");
55
}
82
}
56
83
57
- /* Convert the remaining options into a QAPI object */
84
- lsock = unix_sock_new(unix_fn);
58
- v = qobject_input_visitor_new_flat_confused(options, errp);
85
- if (lsock < 0) {
59
- if (!v) {
86
- goto err;
60
- r = -EINVAL;
87
+ if (opt_socket_path) {
61
- goto out;
88
+ lsock = unix_sock_new(opt_socket_path);
62
- }
89
+ if (lsock < 0) {
63
-
90
+ exit(EXIT_FAILURE);
64
- visit_type_BlockdevOptionsRbd(v, NULL, &opts, &local_err);
91
+ }
65
- visit_free(v);
92
+ } else if (opt_fdnum < 0) {
66
-
93
+ g_print("%s\n", g_option_context_get_help(context, true, NULL));
67
+ r = qemu_rbd_convert_options(options, &opts, &local_err);
94
+ exit(EXIT_FAILURE);
68
if (local_err) {
95
+ } else {
69
error_propagate(errp, local_err);
96
+ lsock = opt_fdnum;
70
- r = -EINVAL;
71
goto out;
72
}
97
}
73
98
99
csock = accept(lsock, NULL, NULL);
100
@@ -XXX,XX +XXX,XX @@ out:
101
if (vdev_scsi) {
102
g_main_loop_unref(vdev_scsi->loop);
103
g_free(vdev_scsi);
104
- unlink(unix_fn);
105
+ unlink(opt_socket_path);
106
}
107
if (csock >= 0) {
108
close(csock);
109
@@ -XXX,XX +XXX,XX @@ out:
110
if (lsock >= 0) {
111
close(lsock);
112
}
113
- g_free(unix_fn);
114
+ g_free(opt_socket_path);
115
g_free(iscsi_uri);
116
117
return err;
118
@@ -XXX,XX +XXX,XX @@ err:
119
goto out;
120
121
help:
122
- fprintf(stderr, "Usage: %s [ -u unix_sock_path -i iscsi_uri ] | [ -h ]\n",
123
+ fprintf(stderr, "Usage: %s [ -s socket-path -i iscsi-uri -f fd -p print-capabilities ] | [ -h ]\n",
124
argv[0]);
125
- fprintf(stderr, " -u path to unix socket\n");
126
- fprintf(stderr, " -i iscsi uri for lun 0\n");
127
+ fprintf(stderr, " -s, --socket-path=SOCKET_PATH path to unix socket\n");
128
+ fprintf(stderr, " -i, --iscsi-uri=ISCSI_URI iscsi uri for lun 0\n");
129
+ fprintf(stderr, " -f, --fd=FILE_DESCRIPTOR file-descriptor\n");
130
+ fprintf(stderr, " -p, --print-capabilities=PRINT_CAPABILITIES denotes print-capabilities\n");
131
fprintf(stderr, " -h print help and quit\n");
132
133
goto err;
74
--
134
--
75
2.17.1
135
2.35.1
76
77
diff view generated by jsdifflib
1
Signed-off-by: Jeff Cody <jcody@redhat.com>
1
The GLib documentation says "a NULL-terminated array of GOptionEntrys"
2
Message-id: 647f5b5ab7efd8bf567a504c832b1d2d6f719b23.1536704901.git.jcody@redhat.com
2
so we'd better make sure there is a terminator that lets
3
Signed-off-by: Jeff Cody <jcody@redhat.com>
3
g_option_context_add_main_entries() know when the end of the array has
4
been reached.
5
6
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
7
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
8
Message-id: 20220411150057.3009667-1-stefanha@redhat.com
9
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
4
---
10
---
5
qemu-deprecated.texi | 15 +++++++++++++++
11
contrib/vhost-user-blk/vhost-user-blk.c | 3 ++-
6
1 file changed, 15 insertions(+)
12
1 file changed, 2 insertions(+), 1 deletion(-)
7
13
8
diff --git a/qemu-deprecated.texi b/qemu-deprecated.texi
14
diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-blk/vhost-user-blk.c
9
index XXXXXXX..XXXXXXX 100644
15
index XXXXXXX..XXXXXXX 100644
10
--- a/qemu-deprecated.texi
16
--- a/contrib/vhost-user-blk/vhost-user-blk.c
11
+++ b/qemu-deprecated.texi
17
+++ b/contrib/vhost-user-blk/vhost-user-blk.c
12
@@ -XXX,XX +XXX,XX @@ used instead.
18
@@ -XXX,XX +XXX,XX @@ static GOptionEntry entries[] = {
13
In order to prevent QEMU from automatically opening an image's backing
19
{"blk-file", 'b', 0, G_OPTION_ARG_FILENAME, &opt_blk_file,
14
chain, use ``"backing": null'' instead.
20
"block device or file path", "PATH"},
15
21
{ "read-only", 'r', 0, G_OPTION_ARG_NONE, &opt_read_only,
16
+@subsubsection rbd keyvalue pair encoded filenames: "" (since 3.1.0)
22
- "Enable read-only", NULL }
17
+
23
+ "Enable read-only", NULL },
18
+Options for ``rbd'' should be specified according to its runtime options,
24
+ { NULL, },
19
+like other block drivers. Legacy parsing of keyvalue pair encoded
25
};
20
+filenames is useful to open images with the old format for backing files;
26
21
+These image files should be updated to use the current format.
27
int main(int argc, char **argv)
22
+
23
+Example of legacy encoding:
24
+
25
+@code{json:@{"file.driver":"rbd", "file.filename":"rbd:rbd/name"@}}
26
+
27
+The above, converted to the current supported format:
28
+
29
+@code{json:@{"file.driver":"rbd", "file.pool":"rbd", "file.image":"name"@}}
30
+
31
@subsection vio-spapr-device device options
32
33
@subsubsection "irq": "" (since 3.0.0)
34
--
28
--
35
2.17.1
29
2.35.1
36
37
diff view generated by jsdifflib
1
When we converted rbd to get rid of the older key/value-centric
1
From: Liu Yiding <liuyd.fnst@fujitsu.com>
2
encoding format, we broke compatibility with image files with backing
3
file strings encoded in the old format.
4
2
5
This leaves a bit of an ugly conundrum, and a hacky solution.
3
virtiofsd has introduced killpriv_v2/no_killpriv_v2 for a while. Add
4
description of it to docs/helper.
6
5
7
If the initial attempt to parse the "proper" options fails, it assumes
6
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
8
that we may have an older key/value encoded filename. Fall back to
7
Message-Id: <20220421095151.2231099-1-liuyd.fnst@fujitsu.com>
9
attempting to parse the filename, and extract the required options from
10
it. If that fails, pass along the original error message.
11
8
12
We do not support mixed modern usage alongside legacy keyvalue pair
9
[Small documentation fixes: s/as client supports/as the client supports/
13
usage.
10
and s/. /. /.
11
--Stefan]
14
12
15
A deprecation warning has been added, although care should be taken
13
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
16
when actually deprecating since the impact is not limited to
14
---
17
commandline or qapi usage, but also opening existing images.
15
docs/tools/virtiofsd.rst | 5 +++++
16
tools/virtiofsd/helper.c | 3 +++
17
2 files changed, 8 insertions(+)
18
18
19
Reviewed-by: Eric Blake <eblake@redhat.com>
19
diff --git a/docs/tools/virtiofsd.rst b/docs/tools/virtiofsd.rst
20
Signed-off-by: Jeff Cody <jcody@redhat.com>
21
Message-id: 15b332e5432ad069441f7275a46080f465d789a0.1536704901.git.jcody@redhat.com
22
Signed-off-by: Jeff Cody <jcody@redhat.com>
23
---
24
block/rbd.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
25
1 file changed, 51 insertions(+), 2 deletions(-)
26
27
diff --git a/block/rbd.c b/block/rbd.c
28
index XXXXXXX..XXXXXXX 100644
20
index XXXXXXX..XXXXXXX 100644
29
--- a/block/rbd.c
21
--- a/docs/tools/virtiofsd.rst
30
+++ b/block/rbd.c
22
+++ b/docs/tools/virtiofsd.rst
31
@@ -XXX,XX +XXX,XX @@ static int qemu_rbd_convert_options(QDict *options, BlockdevOptionsRbd **opts,
23
@@ -XXX,XX +XXX,XX @@ Options
32
return 0;
24
label. Server will try to set that label on newly created file
25
atomically wherever possible.
26
27
+ * killpriv_v2|no_killpriv_v2 -
28
+ Enable/disable ``FUSE_HANDLE_KILLPRIV_V2`` support. KILLPRIV_V2 is enabled
29
+ by default as long as the client supports it. Enabling this option helps
30
+ with performance in write path.
31
+
32
.. option:: --socket-path=PATH
33
34
Listen on vhost-user UNIX domain socket at PATH.
35
diff --git a/tools/virtiofsd/helper.c b/tools/virtiofsd/helper.c
36
index XXXXXXX..XXXXXXX 100644
37
--- a/tools/virtiofsd/helper.c
38
+++ b/tools/virtiofsd/helper.c
39
@@ -XXX,XX +XXX,XX @@ void fuse_cmdline_help(void)
40
" -o announce_submounts Announce sub-mount points to the guest\n"
41
" -o posix_acl/no_posix_acl Enable/Disable posix_acl. (default: disabled)\n"
42
" -o security_label/no_security_label Enable/Disable security label. (default: disabled)\n"
43
+ " -o killpriv_v2/no_killpriv_v2\n"
44
+ " Enable/Disable FUSE_HANDLE_KILLPRIV_V2.\n"
45
+ " (default: enabled as long as client supports it)\n"
46
);
33
}
47
}
34
48
35
+static int qemu_rbd_attempt_legacy_options(QDict *options,
36
+ BlockdevOptionsRbd **opts,
37
+ char **keypairs)
38
+{
39
+ char *filename;
40
+ int r;
41
+
42
+ filename = g_strdup(qdict_get_try_str(options, "filename"));
43
+ if (!filename) {
44
+ return -EINVAL;
45
+ }
46
+ qdict_del(options, "filename");
47
+
48
+ qemu_rbd_parse_filename(filename, options, NULL);
49
+
50
+ /* keypairs freed by caller */
51
+ *keypairs = g_strdup(qdict_get_try_str(options, "=keyvalue-pairs"));
52
+ if (*keypairs) {
53
+ qdict_del(options, "=keyvalue-pairs");
54
+ }
55
+
56
+ r = qemu_rbd_convert_options(options, opts, NULL);
57
+
58
+ g_free(filename);
59
+ return r;
60
+}
61
+
62
static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
63
Error **errp)
64
{
65
@@ -XXX,XX +XXX,XX @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
66
67
r = qemu_rbd_convert_options(options, &opts, &local_err);
68
if (local_err) {
69
- error_propagate(errp, local_err);
70
- goto out;
71
+ /* If keypairs are present, that means some options are present in
72
+ * the modern option format. Don't attempt to parse legacy option
73
+ * formats, as we won't support mixed usage. */
74
+ if (keypairs) {
75
+ error_propagate(errp, local_err);
76
+ goto out;
77
+ }
78
+
79
+ /* If the initial attempt to convert and process the options failed,
80
+ * we may be attempting to open an image file that has the rbd options
81
+ * specified in the older format consisting of all key/value pairs
82
+ * encoded in the filename. Go ahead and attempt to parse the
83
+ * filename, and see if we can pull out the required options. */
84
+ r = qemu_rbd_attempt_legacy_options(options, &opts, &keypairs);
85
+ if (r < 0) {
86
+ error_propagate(errp, local_err);
87
+ goto out;
88
+ }
89
+ /* Take care whenever deciding to actually deprecate; once this ability
90
+ * is removed, we will not be able to open any images with legacy-styled
91
+ * backing image strings. */
92
+ error_report("RBD options encoded in the filename as keyvalue pairs "
93
+ "is deprecated. Future versions may cease to parse "
94
+ "these options in the future.");
95
}
96
97
/* Remove the processed options from the QDict (the visitor processes
98
--
49
--
99
2.17.1
50
2.35.1
100
101
diff view generated by jsdifflib
Deleted patch
1
This is a small test that will check for the ability to parse
2
both legacy and modern options for rbd.
3
1
4
The way the test is set up is for failure to occur, but without
5
having to wait to timeout on a non-existent rbd server. The error
6
messages in the success path show that the arguments were parsed.
7
8
The failure behavior prior to the patch series that has this test, is
9
qemu-img complaining about mandatory options (e.g. 'pool') not being
10
provided.
11
12
Reviewed-by: Eric Blake <eblake@redhat.com>
13
Signed-off-by: Jeff Cody <jcody@redhat.com>
14
Message-id: f830580e339b974a83ed4870d11adcdc17f49a47.1536704901.git.jcody@redhat.com
15
Signed-off-by: Jeff Cody <jcody@redhat.com>
16
---
17
tests/qemu-iotests/231 | 62 ++++++++++++++++++++++++++++++++++++++
18
tests/qemu-iotests/231.out | 9 ++++++
19
tests/qemu-iotests/group | 1 +
20
3 files changed, 72 insertions(+)
21
create mode 100755 tests/qemu-iotests/231
22
create mode 100644 tests/qemu-iotests/231.out
23
24
diff --git a/tests/qemu-iotests/231 b/tests/qemu-iotests/231
25
new file mode 100755
26
index XXXXXXX..XXXXXXX
27
--- /dev/null
28
+++ b/tests/qemu-iotests/231
29
@@ -XXX,XX +XXX,XX @@
30
+#!/bin/bash
31
+#
32
+# Test legacy and modern option parsing for rbd/ceph. This will not
33
+# actually connect to a ceph server, but rather looks for the appropriate
34
+# error message that indicates we parsed the options correctly.
35
+#
36
+# Copyright (C) 2018 Red Hat, Inc.
37
+#
38
+# This program is free software; you can redistribute it and/or modify
39
+# it under the terms of the GNU General Public License as published by
40
+# the Free Software Foundation; either version 2 of the License, or
41
+# (at your option) any later version.
42
+#
43
+# This program is distributed in the hope that it will be useful,
44
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
45
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46
+# GNU General Public License for more details.
47
+#
48
+# You should have received a copy of the GNU General Public License
49
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
50
+#
51
+
52
+# creator
53
+owner=jcody@redhat.com
54
+
55
+seq=`basename $0`
56
+echo "QA output created by $seq"
57
+
58
+here=`pwd`
59
+status=1    # failure is the default!
60
+
61
+_cleanup()
62
+{
63
+ rm "${BOGUS_CONF}"
64
+}
65
+trap "_cleanup; exit \$status" 0 1 2 3 15
66
+
67
+# get standard environment, filters and checks
68
+. ./common.rc
69
+. ./common.filter
70
+
71
+_supported_fmt generic
72
+_supported_proto rbd
73
+_supported_os Linux
74
+
75
+BOGUS_CONF=${TEST_DIR}/ceph-$$.conf
76
+touch "${BOGUS_CONF}"
77
+
78
+_filter_conf()
79
+{
80
+ sed -e "s#$BOGUS_CONF#BOGUS_CONF#g"
81
+}
82
+
83
+# We expect this to fail, with no monitor ip provided and a null conf file. Just want it
84
+# to fail in the right way.
85
+$QEMU_IMG info "json:{'file.driver':'rbd','file.filename':'rbd:rbd/bogus:conf=${BOGUS_CONF}'}" 2>&1 | _filter_conf
86
+$QEMU_IMG info "json:{'file.driver':'rbd','file.pool':'rbd','file.image':'bogus','file.conf':'${BOGUS_CONF}'}" 2>&1 | _filter_conf
87
+
88
+# success, all done
89
+echo "*** done"
90
+rm -f $seq.full
91
+status=0
92
diff --git a/tests/qemu-iotests/231.out b/tests/qemu-iotests/231.out
93
new file mode 100644
94
index XXXXXXX..XXXXXXX
95
--- /dev/null
96
+++ b/tests/qemu-iotests/231.out
97
@@ -XXX,XX +XXX,XX @@
98
+QA output created by 231
99
+qemu-img: RBD options encoded in the filename as keyvalue pairs is deprecated. Future versions may cease to parse these options in the future.
100
+unable to get monitor info from DNS SRV with service name: ceph-mon
101
+no monitors specified to connect to.
102
+qemu-img: Could not open 'json:{'file.driver':'rbd','file.filename':'rbd:rbd/bogus:conf=BOGUS_CONF'}': error connecting: No such file or directory
103
+unable to get monitor info from DNS SRV with service name: ceph-mon
104
+no monitors specified to connect to.
105
+qemu-img: Could not open 'json:{'file.driver':'rbd','file.pool':'rbd','file.image':'bogus','file.conf':'BOGUS_CONF'}': error connecting: No such file or directory
106
+*** done
107
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
108
index XXXXXXX..XXXXXXX 100644
109
--- a/tests/qemu-iotests/group
110
+++ b/tests/qemu-iotests/group
111
@@ -XXX,XX +XXX,XX @@
112
226 auto quick
113
227 auto quick
114
229 auto quick
115
+231 auto quick
116
--
117
2.17.1
118
119
diff view generated by jsdifflib