From nobody Sun Feb 8 17:21:30 2026
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28
as permitted sender) client-ip=209.132.183.28;
envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com;
Authentication-Results: mx.zohomail.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by
mx.zohomail.com
with SMTPS id 1547760187383630.8935245248083;
Thu, 17 Jan 2019 13:23:07 -0800 (PST)
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 mx1.redhat.com (Postfix) with ESMTPS id F02192DE439;
Thu, 17 Jan 2019 21:23:03 +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 918BC1822B;
Thu, 17 Jan 2019 21:23:03 +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 2B0C43F611;
Thu, 17 Jan 2019 21:23:03 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id x0HLMS2k004160 for ;
Thu, 17 Jan 2019 16:22:28 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 27A4360BE8; Thu, 17 Jan 2019 21:22:28 +0000 (UTC)
Received: from unknown0050b6a41c42.attlocal.net.com
(ovpn-116-60.phx2.redhat.com [10.3.116.60])
by smtp.corp.redhat.com (Postfix) with ESMTP id C139360BE5
for ; Thu, 17 Jan 2019 21:22:27 +0000 (UTC)
From: John Ferlan
To: libvir-list@redhat.com
Date: Thu, 17 Jan 2019 16:22:16 -0500
Message-Id: <20190117212216.28316-11-jferlan@redhat.com>
In-Reply-To: <20190117212216.28316-1-jferlan@redhat.com>
References: <20190117212216.28316-1-jferlan@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-loop: libvir-list@redhat.com
Subject: [libvirt] [PATCH v4 10/10] rbd: Utilize storage pool namespace to
manage config options
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: ,
Content-Transfer-Encoding: quoted-printable
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-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]);
Thu, 17 Jan 2019 21:23:05 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
Allow for adjustment of RBD configuration options via Storage
Pool XML Namespace adjustments.
Based off original patch/concept:
https://www.redhat.com/archives/libvir-list/2014-May/msg00940.html
Signed-off-by: John Ferlan
Reviewed-by: Daniel P. Berrang=C3=A9
---
docs/formatstorage.html.in | 52 +++++-
docs/schemas/storagepool.rng | 23 +++
src/storage/storage_backend_rbd.c | 166 +++++++++++++++++-
.../pool-rbd-ns-configopts.xml | 17 ++
.../pool-rbd-ns-configopts.xml | 20 +++
tests/storagepoolxml2xmltest.c | 1 +
6 files changed, 275 insertions(+), 4 deletions(-)
create mode 100644 tests/storagepoolxml2xmlin/pool-rbd-ns-configopts.xml
create mode 100644 tests/storagepoolxml2xmlout/pool-rbd-ns-configopts.xml
diff --git a/docs/formatstorage.html.in b/docs/formatstorage.html.in
index 7a5a38de9e..0e2cfae247 100644
--- a/docs/formatstorage.html.in
+++ b/docs/formatstorage.html.in
@@ -505,7 +505,8 @@
XML syntax targeted solely for the needs of the specific pool type
which is not otherwise supportable via XML. For the "netfs" pool
this provides a mechanism to provide additional mount options on the
- command line.
+ command line. For the "rbd" pool this provides a mechanism to overri=
de
+ default settings for RBD configuration options.
netfs:mount_opts
@@ -552,6 +553,55 @@
=20
Since 5.1.0.
=20
+
rbd:config_opts
+
Provides an XML namespace mechanism to optionally utilize
+ specifically named options for the RBD configuration options
+ via the rados_conf_set API for the rbd type
+ storage pools. In order to designate that the Storage Pool
+ will be using the mechanism, the pool element
+ must be modified to provide the XML namespace attribute
+ syntax as follows:
+
+
+ The rbd:config_opts defines the configuration options
+ by specifying multiple rbd:option subelements with
+ the attribute name specifying the configuration option
+ to be added and value specifying the configuration
+ option value. The name and value for each option is only checked
+ to be not empty. The name and value provided are not checked since
+ it's possible options don't exist on all distributions. It is
+ expected that proper and valid options will be supplied for the
+ target host.
+
+
+ The following XML snippet shows the syntax required in order to
+ utilize
+