From nobody Tue May 7 06:46:25 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
205.139.110.61 as permitted sender) client-ip=205.139.110.61;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1587471071; cv=none;
d=zohomail.com; s=zohoarc;
b=QQLo+WrHMLBlAmva9IkfeZkzxQixBorVg0Pt5oqswEv221MSamb23mItxGEEMFfNl/4sASL1P9tNeJEULQebZvnUWY1A9LAv64g8oo+AObP/JIjUM4zVmpHKbjcZogXV8XP/SsxQs9q8B/ALCyT3ZylPFHXezCfx0162/M+3GHM=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1587471071;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=tMM/ycrIJxjFgI1RooqcjtD47uBtJxNh9XeFzOgKzyw=;
b=OGUriwRjuSxWGM4tZLQA0ZktiJT683c84XqbRlqbjqs/fh1Z+Z0p5AO+plIbfHej98a50IqOASOj/x00ZGHBw/EoVmIsXXw7XF7+x0Fi0oiSY3XcA1zq1OcoYZ6lIa/9soc8hOQ4nQ1iNFlKe2XF+oyio9FMGk/q5iareyGfFzM=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com
[205.139.110.61]) by mx.zohomail.com
with SMTPS id 1587471071899929.0733604690595;
Tue, 21 Apr 2020 05:11:11 -0700 (PDT)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-296-m7lhycInPxabm-iT4YD_iw-1; Tue, 21 Apr 2020 08:11:08 -0400
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
[10.5.11.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C11C9107B267;
Tue, 21 Apr 2020 12:11:02 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 7E0525C221;
Tue, 21 Apr 2020 12:11:02 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id 224E293900;
Tue, 21 Apr 2020 12:11:02 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
[10.5.11.15])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 03LCB0N7026869 for ;
Tue, 21 Apr 2020 08:11:00 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 70110B3A6D; Tue, 21 Apr 2020 12:11:00 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-30.pek2.redhat.com
[10.72.12.30])
by smtp.corp.redhat.com (Postfix) with ESMTP id EF6CCB3A6B;
Tue, 21 Apr 2020 12:10:58 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1587471070;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=tMM/ycrIJxjFgI1RooqcjtD47uBtJxNh9XeFzOgKzyw=;
b=bByRSTsn9FcyH+iWQpIHCjZAC9u41HjKUjcUrEk38lQCHdpQFmO1X2guhSW5qqbF+ilyU6
oCBwW4E+WPidRy9mcWBD6yuKiS8V9XDMR7VLTpIu50avwGWxWF+J4lpdn+JVNQVYvNfZa4
veF2DCZeQY3iD+NeJFYnQEFxvpow03k=
X-MC-Unique: m7lhycInPxabm-iT4YD_iw-1
From: Han Han
To: libvir-list@redhat.com
Subject: [PATCH v2 1/5] qemu_capabilities: Add QEMU_CAPS_RBD_NAMESPACE
Date: Tue, 21 Apr 2020 20:10:44 +0800
Message-Id: <20200421121048.146724-2-hhan@redhat.com>
In-Reply-To: <20200421121048.146724-1-hhan@redhat.com>
References: <20200421121048.146724-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-loop: libvir-list@redhat.com
Cc: pkrempa@redhat.com, Han Han
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Add rbd namespace in aarch64 capability replies.
The capability flag will be used for rbd namespace option. The rbd namespace
is introduced since ceph Nautilus and qemu v5.0.0.
Signed-off-by: Han Han
---
src/qemu/qemu_capabilities.c | 2 ++
src/qemu/qemu_capabilities.h | 1 +
tests/qemucapabilitiesdata/caps_5.0.0.aarch64.replies | 5 +++++
tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml | 1 +
tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml | 1 +
tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml | 1 +
6 files changed, 11 insertions(+)
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 994f1fd1..f4344464 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -571,6 +571,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
=20
/* 360 */
"fsdev.multidevs",
+ "rbd.namespace",
);
=20
=20
@@ -1450,6 +1451,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSc=
hemaQueries[] =3D {
{ "blockdev-add/arg-type/+nvme", QEMU_CAPS_DRIVE_NVME },
{ "query-named-block-nodes/arg-type/flat", QEMU_CAPS_QMP_QUERY_NAMED_B=
LOCK_NODES_FLAT },
{ "blockdev-snapshot/$allow-write-only-overlay", QEMU_CAPS_BLOCKDEV_SN=
APSHOT_ALLOW_WRITE_ONLY },
+ { "blockdev-add/arg-type/+rbd/namespace", QEMU_CAPS_RBD_NAMESPACE },
};
=20
typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
index d247e197..1aed6af3 100644
--- a/src/qemu/qemu_capabilities.h
+++ b/src/qemu/qemu_capabilities.h
@@ -552,6 +552,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for =
syntax-check */
=20
/* 360 */
QEMU_CAPS_FSDEV_MULTIDEVS, /* fsdev.multidevs */
+ QEMU_CAPS_RBD_NAMESPACE, /* -blockdev '{"driver":"rbd",...,"namespace"=
:str}' */
=20
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.replies b/tests/=
qemucapabilitiesdata/caps_5.0.0.aarch64.replies
index a3136a09..cacdee67 100644
--- a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.replies
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.replies
@@ -16940,6 +16940,11 @@
"name": "pool",
"type": "str"
},
+ {
+ "name": "namespace",
+ "default": null,
+ "type": "str"
+ },
{
"name": "image",
"type": "str"
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml b/tests/qemu=
capabilitiesdata/caps_5.0.0.aarch64.xml
index 30664c62..79ef10b3 100644
--- a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
@@ -183,6 +183,7 @@
+
4002050
0
61700241
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml b/tests/qemuca=
pabilitiesdata/caps_5.0.0.ppc64.xml
index a6800482..e420c8ff 100644
--- a/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml
@@ -191,6 +191,7 @@
+
4002050
0
42900241
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml b/tests/qemuc=
apabilitiesdata/caps_5.0.0.x86_64.xml
index df3557d1..5db56b75 100644
--- a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
@@ -228,6 +228,7 @@
+
4002091
0
43100241
--=20
2.25.0
From nobody Tue May 7 06:46:25 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.81 as permitted sender) client-ip=207.211.31.81;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1587471126; cv=none;
d=zohomail.com; s=zohoarc;
b=dfFZq9xQUXhuYnAMtTryMMd/+RrGNK29sM+ZMSywl9ILbv/L7RSyitbkGbb1DXFv/ID0PX4ZPi9O7a1BJqlaoRF+peAgtK/Ti66xS5hS5yoNTZTB3bK8obp+MBQ7lxkA8+tUmPvqaieSc9ToAspNefFSVQqvRSZsHpNu1ToDz8g=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1587471126;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=1MfoXA7f+a69UcTNcQeS4xKnfuev3M+81aDcAGN3rps=;
b=Is9h6AkdFtC4KfoXirNyJ+PmPbGmS8X6IxsBd8Ox3gf6knjp7aokmA6BHSP36IP5XP2V80L4sdCD5BM6y38FKcwI0RiGxoERdor4x9tGr0fRBPlTRuXGY1Jl4kmuL+XDCxaeZpdto1YVY2B6wPqoCDm0KDN2OXYrRTF/U6q41rw=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com
[207.211.31.81]) by mx.zohomail.com
with SMTPS id 15874711262021018.0231526890092;
Tue, 21 Apr 2020 05:12:06 -0700 (PDT)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-202-wdwETH-HNAuHWApX06hwIQ-1; Tue, 21 Apr 2020 08:11:10 -0400
Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com
[10.5.11.13])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3567B2EDD;
Tue, 21 Apr 2020 12:11:05 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 995BDA394F;
Tue, 21 Apr 2020 12:11:04 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id 047AF18089CF;
Tue, 21 Apr 2020 12:11:04 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
[10.5.11.15])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 03LCB2hD026882 for ;
Tue, 21 Apr 2020 08:11:02 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 686B0B3A6B; Tue, 21 Apr 2020 12:11:02 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-30.pek2.redhat.com
[10.72.12.30])
by smtp.corp.redhat.com (Postfix) with ESMTP id F0AD7B3A61;
Tue, 21 Apr 2020 12:11:00 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1587471125;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=1MfoXA7f+a69UcTNcQeS4xKnfuev3M+81aDcAGN3rps=;
b=ZbUBrBn28vglVGnzbabQH5GyhsAdGY7pQiEK4irN2xJE9SVXTErOUtxUM3ZI/iDSiwPQ3S
gq6/4Cf+2qmlfGefDhNLys/twlZPNouYW5yRHrizHSQxqjnC/dxZqJ+Go24qMIz9qvN65B
cgDVzym9tdY7Ig+dIPJUZnWkoY2k03E=
X-MC-Unique: wdwETH-HNAuHWApX06hwIQ-1
From: Han Han
To: libvir-list@redhat.com
Subject: [PATCH v2 2/5] conf: Support to parse rbd namespace attribute
Date: Tue, 21 Apr 2020 20:10:45 +0800
Message-Id: <20200421121048.146724-3-hhan@redhat.com>
In-Reply-To: <20200421121048.146724-1-hhan@redhat.com>
References: <20200421121048.146724-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-loop: libvir-list@redhat.com
Cc: pkrempa@redhat.com, Han Han
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
src/conf/domain_conf.c | 4 ++++
src/util/virstoragefile.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 6ad7552b..a4ee2e1e 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -9488,6 +9488,7 @@ virDomainDiskSourceNetworkParse(xmlNodePtr node,
=20
/* config file currently only works with remote disks */
src->configFile =3D virXPathString("string(./config/@file)", ctxt);
+ src->namespace =3D virXPathString("string(./@namespace)", ctxt);
=20
if (src->protocol =3D=3D VIR_STORAGE_NET_PROTOCOL_HTTP ||
src->protocol =3D=3D VIR_STORAGE_NET_PROTOCOL_HTTPS)
@@ -24614,6 +24615,9 @@ virDomainDiskSourceFormatNetwork(virBufferPtr attrB=
uf,
path =3D g_strdup_printf("%s/%s", src->volume, src->path);
=20
virBufferEscapeString(attrBuf, " name=3D'%s'", path ? path : src->path=
);
+ if (src->namespace)
+ virBufferEscapeString(attrBuf, " namespace=3D'%s'", src->namespace=
);
+
virBufferEscapeString(attrBuf, " query=3D'%s'", src->query);
=20
if (src->haveTLS !=3D VIR_TRISTATE_BOOL_ABSENT &&
diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h
index 7939c09c..8b683b7e 100644
--- a/src/util/virstoragefile.h
+++ b/src/util/virstoragefile.h
@@ -284,6 +284,7 @@ struct _virStorageSource {
char *snapshot; /* for storage systems supporting internal snapshots */
char *configFile; /* some storage systems use config file as part of
the source definition */
+ char *namespace; /* for the storage systems supporting namespace */
char *query; /* query string for HTTP based protocols */
size_t nhosts;
virStorageNetHostDefPtr hosts;
--=20
2.25.0
From nobody Tue May 7 06:46:25 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.120 as permitted sender) client-ip=207.211.31.120;
envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1587471080; cv=none;
d=zohomail.com; s=zohoarc;
b=mBf5w6TxjNq7Sir99iFCzdsE85HlagvDfDQvYeZ3Be3edT3IcQp6+S+Nqy2tOxMIgkMM4XzBiLy7j/Gi7bD683YAhatzolupzvroVXe4/lYNGLHNgEBbPRPZ4Bdgs3MQcHERXmHWocJnkS4MB2ymgzl4YrJOpSekj1wZJkNk85k=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1587471080;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=eAlbg+p55ihhodkOn+gb9xC5Wd69IWL2ERQ5I5fyTeE=;
b=jz5uDMHCfGVDazI/KWitu4FiG+ATcF7fRXNZTJlQA415ZHnZGJJJnowUFvMV5ITqARMHSNjuXINJaBbvQgygVzlkDoN7YlDF+R/9DEMyMdLr39z/mQM52ehHTRsK+hMcLtj5gZbLtWo9BHZRrfsNWtD5WXaI9bVRMuffB9CItbA=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
[207.211.31.120]) by mx.zohomail.com
with SMTPS id 1587471080701961.0762131438876;
Tue, 21 Apr 2020 05:11:20 -0700 (PDT)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-461-W3uiiXoINoKCKp9Hiaw7qA-1; Tue, 21 Apr 2020 08:11:16 -0400
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 710ED107B279;
Tue, 21 Apr 2020 12:11:10 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 3BB6560C87;
Tue, 21 Apr 2020 12:11:10 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id DB1399391D;
Tue, 21 Apr 2020 12:11:09 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
[10.5.11.15])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 03LCB8e1026896 for ;
Tue, 21 Apr 2020 08:11:08 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 75493B3A6B; Tue, 21 Apr 2020 12:11:08 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-30.pek2.redhat.com
[10.72.12.30])
by smtp.corp.redhat.com (Postfix) with ESMTP id EEF34B3A61;
Tue, 21 Apr 2020 12:11:02 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1587471079;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=eAlbg+p55ihhodkOn+gb9xC5Wd69IWL2ERQ5I5fyTeE=;
b=BPdKIGE1LVT7owjBLs41aO+vy1tsVxOFcpu/9RAmJX/FvkWarPJbmjG5T9FMPoDLCMU4rY
1Nwi00TTswBV4mrbIKzXD2Luo8/khluI5NzYT3N49hqsW7Zh5gA8SYmnJISVukeFxoZZ4h
IIn/VWCG/kzF88ajzCgOTbwLFgZuVUw=
X-MC-Unique: W3uiiXoINoKCKp9Hiaw7qA-1
From: Han Han
To: libvir-list@redhat.com
Subject: [PATCH v2 3/5] qemu: Implement rbd namespace attribute
Date: Tue, 21 Apr 2020 20:10:46 +0800
Message-Id: <20200421121048.146724-4-hhan@redhat.com>
In-Reply-To: <20200421121048.146724-1-hhan@redhat.com>
References: <20200421121048.146724-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-loop: libvir-list@redhat.com
Cc: pkrempa@redhat.com, Han Han
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Ceph Nautilus supports separate image namespaces within a pool for
tenant isolation and QEMU added it as a rbd blockdev options from 5.0.0.
This optional attribute is used to access a image with namespace.
Add unit tests for this attribute.
https://bugzilla.redhat.com/show_bug.cgi?id=3D1816909
Signed-off-by: Han Han
---
src/qemu/qemu_block.c | 1 +
src/qemu/qemu_command.c | 14 ++++++-
...k-network-rbd-namespace.x86_64-latest.args | 41 +++++++++++++++++++
.../disk-network-rbd-namespace.xml | 33 +++++++++++++++
tests/qemuxml2argvtest.c | 1 +
...sk-network-rbd-namespace.x86_64-latest.xml | 41 +++++++++++++++++++
tests/qemuxml2xmltest.c | 1 +
7 files changed, 131 insertions(+), 1 deletion(-)
create mode 100644 tests/qemuxml2argvdata/disk-network-rbd-namespace.x86_6=
4-latest.args
create mode 100644 tests/qemuxml2argvdata/disk-network-rbd-namespace.xml
create mode 100644 tests/qemuxml2xmloutdata/disk-network-rbd-namespace.x86=
_64-latest.xml
diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c
index d32277d7..8cc007ac 100644
--- a/src/qemu/qemu_block.c
+++ b/src/qemu/qemu_block.c
@@ -872,6 +872,7 @@ qemuBlockStorageSourceGetRBDProps(virStorageSourcePtr s=
rc,
"s:pool", src->volume,
"s:image", src->path,
"S:snapshot", src->snapshot,
+ "S:namespace", src->namespace,
"S:conf", src->configFile,
"A:server", &servers,
"S:user", username,
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 988d38e4..32b6bb4d 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -1047,7 +1047,12 @@ qemuBuildNetworkDriveStr(virStorageSourcePtr src,
return NULL;
}
=20
- virBufferStrcat(&buf, "rbd:", src->volume, "/", src->path, NUL=
L);
+ virBufferStrcat(&buf, "rbd:", src->volume, "/", NULL);
+ /* The filename of image with namespace: rbd:POOL/NAMESPACE/IM=
AGE... */
+ if (src->namespace)
+ virBufferStrcat(&buf, src->namespace, "/", NULL);
+
+ virBufferStrcat(&buf, src->path, NULL);
=20
if (src->snapshot)
virBufferEscape(&buf, '\\', ":", "@%s", src->snapshot);
@@ -1425,6 +1430,13 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk,
_("detect_zeroes is not supported by this QEMU =
binary"));
return -1;
}
+
+ if (disk->src->namespace &&
+ !virQEMUCapsGet(qemuCaps, QEMU_CAPS_RBD_NAMESPACE)) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+ _("rbd namespace is not supported by this QEMU =
binary"));
+ return -1;
+ }
}
=20
if (disk->serial &&
diff --git a/tests/qemuxml2argvdata/disk-network-rbd-namespace.x86_64-lates=
t.args b/tests/qemuxml2argvdata/disk-network-rbd-namespace.x86_64-latest.ar=
gs
new file mode 100644
index 00000000..138b7538
--- /dev/null
+++ b/tests/qemuxml2argvdata/disk-network-rbd-namespace.x86_64-latest.args
@@ -0,0 +1,41 @@
+LC_ALL=3DC \
+PATH=3D/bin \
+HOME=3D/tmp/lib/domain--1-QEMUGuest1 \
+USER=3Dtest \
+LOGNAME=3Dtest \
+XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \
+XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \
+XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \
+QEMU_AUDIO_DRV=3Dnone \
+/usr/bin/qemu-system-x86_64 \
+-name guest=3DQEMUGuest1,debug-threads=3Don \
+-S \
+-object secret,id=3DmasterKey0,format=3Draw,\
+file=3D/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
+-machine pc,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff \
+-cpu qemu64 \
+-m 214 \
+-overcommit mem-lock=3Doff \
+-smp 1,sockets=3D1,cores=3D1,threads=3D1 \
+-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
+-display none \
+-no-user-config \
+-nodefaults \
+-chardev socket,id=3Dcharmonitor,fd=3D1729,server,nowait \
+-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \
+-rtc base=3Dutc \
+-no-shutdown \
+-no-acpi \
+-boot strict=3Don \
+-device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 \
+-blockdev '{"driver":"rbd","pool":"pool","image":"image","namespace":"ns",\
+"server":[{"host":"mon1.example.org","port":"6321"},{"host":"mon2.example.=
org",\
+"port":"6322"},{"host":"mon3.example.org","port":"6322"}],\
+"node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
+-blockdev '{"node-name":"libvirt-1-format","read-only":false,"driver":"raw=
",\
+"file":"libvirt-1-storage"}' \
+-device virtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x2,drive=3Dlibvirt-1=
-format,\
+id=3Dvirtio-disk0,bootindex=3D1 \
+-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,\
+resourcecontrol=3Ddeny \
+-msg timestamp=3Don
diff --git a/tests/qemuxml2argvdata/disk-network-rbd-namespace.xml b/tests/=
qemuxml2argvdata/disk-network-rbd-namespace.xml
new file mode 100644
index 00000000..8b526c4a
--- /dev/null
+++ b/tests/qemuxml2argvdata/disk-network-rbd-namespace.xml
@@ -0,0 +1,33 @@
+
+ QEMUGuest1
+ c7a5fdbd-edaf-9455-926a-d65c16db1809
+ 219136
+ 219136
+ 1
+
+ hvm
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index fdeb3c2e..aaa32da6 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -1081,6 +1081,7 @@ mymain(void)
DO_TEST_CAPS_VER("disk-network-rbd", "2.5.0");
DO_TEST_CAPS_VER("disk-network-rbd", "2.12.0");
DO_TEST_CAPS_LATEST("disk-network-rbd");
+ DO_TEST_CAPS_LATEST("disk-network-rbd-namespace");
DO_TEST_FAILURE("disk-network-rbd-no-colon", NONE);
DO_TEST("disk-network-sheepdog", NONE);
DO_TEST_CAPS_VER("disk-network-sheepdog", "2.12.0");
diff --git a/tests/qemuxml2xmloutdata/disk-network-rbd-namespace.x86_64-lat=
est.xml b/tests/qemuxml2xmloutdata/disk-network-rbd-namespace.x86_64-latest=
.xml
new file mode 100644
index 00000000..2166696c
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/disk-network-rbd-namespace.x86_64-latest.xml
@@ -0,0 +1,41 @@
+
+ QEMUGuest1
+ c7a5fdbd-edaf-9455-926a-d65c16db1809
+ 219136
+ 219136
+ 1
+
+ hvm
+
+
+
+ qemu64
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index b4c83fcc..6e8a8196 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -333,6 +333,7 @@ mymain(void)
DO_TEST("disk-network-iscsi", QEMU_CAPS_VIRTIO_SCSI);
DO_TEST("disk-network-gluster", NONE);
DO_TEST("disk-network-rbd", NONE);
+ DO_TEST_CAPS_LATEST("disk-network-rbd-namespace");
DO_TEST("disk-network-source-auth", NONE);
DO_TEST("disk-network-sheepdog", NONE);
DO_TEST("disk-network-vxhs", NONE);
--=20
2.25.0
From nobody Tue May 7 06:46:25 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
205.139.110.61 as permitted sender) client-ip=205.139.110.61;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1587471085; cv=none;
d=zohomail.com; s=zohoarc;
b=QGcuF5WozBCHdrIbi7H7OCk0uL+Ozif1mqN/SO0w8BlsU4FVmJD36+XIFQfEaoVKd63+VVtiBR+LPjWlvJsvMgaylULz9ImL6BxFa3s+CpOEPP6fGsvvHQcP1oDFLYmaz7/DL54rSq8r2FRVoeZK7izd7RiTIQf5QsHqfHNkKig=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1587471085;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=/tVJm4SfPgBryGb9j8O9CoDH0S9RVrlTUvT0hOFsaz8=;
b=ls79oUyMrbzWub9RfgBaZoHHNFJ6XAu6YuVc48fD7WW1Ux6YJCUe9i4zJznhmUXSAz8Zg3Y1Ocnb38ZokylyHKlFB7OAeHHC9ubgG8kdQmra8hE3CWTq0y9lQUG9i1NBX8rVAhPn7MwhC4gz/xj+FeDqZO5QDxFlMa4rIrw3OkM=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com
[205.139.110.61]) by mx.zohomail.com
with SMTPS id 1587471085213898.5908308956831;
Tue, 21 Apr 2020 05:11:25 -0700 (PDT)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-50-HI6rf2EeM0u3RxvFKX_jPA-1; Tue, 21 Apr 2020 08:11:18 -0400
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com
[10.5.11.11])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9189A80256A;
Tue, 21 Apr 2020 12:11:12 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A7F976E6F;
Tue, 21 Apr 2020 12:11:12 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0BBFA18089D5;
Tue, 21 Apr 2020 12:11:12 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
[10.5.11.15])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 03LCBABq026911 for ;
Tue, 21 Apr 2020 08:11:10 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 649EEB3A72; Tue, 21 Apr 2020 12:11:10 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-30.pek2.redhat.com
[10.72.12.30])
by smtp.corp.redhat.com (Postfix) with ESMTP id 10B20B3A70;
Tue, 21 Apr 2020 12:11:08 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1587471083;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=/tVJm4SfPgBryGb9j8O9CoDH0S9RVrlTUvT0hOFsaz8=;
b=KrROtLFUosDxLSWDkHqWHwGZ7qjVfM9rw2OnAeF8ebdtks9Fiiswnh5u2QoiKt0M3TUs62
kjMr+nhJ1A2wZqSgJ6JX9CuV5KbQRKYwD9NZMc52e1+Ec33PT7thP5M1nbFLM0R/xfM90Q
+H/uWyBPiUHjggbIGOSXyd/bBIYrhIg=
X-MC-Unique: HI6rf2EeM0u3RxvFKX_jPA-1
From: Han Han
To: libvir-list@redhat.com
Subject: [PATCH v2 4/5] doc: rng schemas and html doc for rbd namespace
attribute
Date: Tue, 21 Apr 2020 20:10:47 +0800
Message-Id: <20200421121048.146724-5-hhan@redhat.com>
In-Reply-To: <20200421121048.146724-1-hhan@redhat.com>
References: <20200421121048.146724-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-loop: libvir-list@redhat.com
Cc: pkrempa@redhat.com, Han Han
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
docs/formatdomain.html.in | 5 +++++
docs/schemas/domaincommon.rng | 3 +++
2 files changed, 8 insertions(+)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index d56600dc..06e1a7ee 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -3118,6 +3118,11 @@
(Since 6.2.0)
=20
+ For protocol rbd
, an optional attribute
+ namespace
specifies the namespace of a rbd pool.
+ (Since 6.3.0 and QEMU 5.0.0)
+
+
For "iscsi" (since 1.0.4), t=
he
name
attribute may include a logical unit numbe=
r,
separated from the target's name by a slash (e.g.,
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index dcf2e09d..294ade34 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1762,6 +1762,9 @@
+
+
+
[
]
--=20
2.25.0
From nobody Tue May 7 06:46:25 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.120 as permitted sender) client-ip=207.211.31.120;
envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1587471088; cv=none;
d=zohomail.com; s=zohoarc;
b=HfVBLPGgGj5UAQoO4YKHQpBCAtylQlFGvX3E/YuYDXp7IBqPU7q6ZgdgIesMM4HU1JtOD8uSsTpomix3scxIHez0znpCVjwqjWblaZB3ybIZ9+g127/UDZ1O1TUAjr1fciO5JHC+liLdssZcJgYuqcoxv8GCm87eKrBVGGESszU=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1587471088;
h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=tQYjjcXfPmXbuTaU82z4sD3oXoZa+0mAfOxtKw0dwAk=;
b=UWSb7Kz018fbk1+LWwG3auhJaovmpfad+uRBQckC7c9FrL9eXOU/1VPgUCKO+l/RW07mnlaPjah6QilwAi/zySBq1oa1B0H+z4pji2LmVDtWgW0hB0z22wS5oDPkAbiWH8G0SmxICZDhFKAXNO73PAL5BZb/lUkDyCBgoZMgEEI=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from= (p=none dis=none)
header.from=
Return-Path:
Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com
[207.211.31.120]) by mx.zohomail.com
with SMTPS id 1587471088228884.693841877413;
Tue, 21 Apr 2020 05:11:28 -0700 (PDT)
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
[209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
us-mta-131-NSHikHpOPYWQ-JCIwLk2ig-1; Tue, 21 Apr 2020 08:11:24 -0400
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
[10.5.11.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1E973DB6B;
Tue, 21 Apr 2020 12:11:17 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id E9ACB5C221;
Tue, 21 Apr 2020 12:11:16 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9531C18089D7;
Tue, 21 Apr 2020 12:11:16 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
[10.5.11.15])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id 03LCBDNA026927 for ;
Tue, 21 Apr 2020 08:11:13 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 72D90B3A71; Tue, 21 Apr 2020 12:11:13 +0000 (UTC)
Received: from localhost.localdomain.com (ovpn-12-30.pek2.redhat.com
[10.72.12.30])
by smtp.corp.redhat.com (Postfix) with ESMTP id E5307B3A70;
Tue, 21 Apr 2020 12:11:10 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1587471087;
h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=tQYjjcXfPmXbuTaU82z4sD3oXoZa+0mAfOxtKw0dwAk=;
b=Z5hnN7SvABqjMTev/KnVXUopVh0+ppegzYesW5aVhRyWSEmNfoWRfzmmcZK22Vwnh+UzvH
nkEsPo79wRKcYDfK61kbZ+3k0sMEKaTktJdPOo50U+uAbXgtdw6ebwm12MaG+Ze3HLdawu
B1p5zw0vx3CBcMBBZ0oqp5K5P+Fu45Q=
X-MC-Unique: NSHikHpOPYWQ-JCIwLk2ig-1
From: Han Han
To: libvir-list@redhat.com
Subject: [PATCH v2 5/5] news: qemu: Support rbd namespace
Date: Tue, 21 Apr 2020 20:10:48 +0800
Message-Id: <20200421121048.146724-6-hhan@redhat.com>
In-Reply-To: <20200421121048.146724-1-hhan@redhat.com>
References: <20200421121048.146724-1-hhan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-loop: libvir-list@redhat.com
Cc: pkrempa@redhat.com, Han Han
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: quoted-printable
X-ZohoMail-DKIM: pass (identity @redhat.com)
Content-Type: text/plain; charset="utf-8"
Signed-off-by: Han Han
---
docs/news.xml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/news.xml b/docs/news.xml
index 0d3f3386..14ebc15f 100644
--- a/docs/news.xml
+++ b/docs/news.xml
@@ -44,6 +44,16 @@
+
+
+ qemu: Support rbd namespace attribute
+
+
+ The namespaces is for the tenant isolation within a rbd pool,
+ introduced from Ceph Nautilus, supported since QEMU 5.0.0. In li=
bvirt
+ use it by namespace attribute in the source element of rbd.
+
+
--=20
2.25.0