From: Josh Durgin Date: Fri, 28 Oct 2011 18:29:39 +0000 (-0600) Subject: storage: add auth to virDomainDiskDef X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5bd6271f592cfabc6b67ab0156ce932efdb55661;p=libvirt.git storage: add auth to virDomainDiskDef Add additional fields to let you specify the how to authenticate with a disk. The secret to use may be referenced by a usage string or a UUID, i.e.: or Signed-off-by: Josh Durgin --- diff --git a/AUTHORS b/AUTHORS index 391f83aa23..1040117c09 100644 --- a/AUTHORS +++ b/AUTHORS @@ -200,6 +200,7 @@ Patches have also been contributed by: Sage Weil David L Stevens Tyler Coumbes + Josh Durgin [....send patches to get your name here....] diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index fcffb2518e..4fb58293b0 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -913,6 +913,16 @@ <transient/> <address type='drive' controller='0' bus='1' unit='0'/> </disk> + <disk type='network'> + <driver name="qemu" type="raw"/> + <source protocol="rbd" name="image_name2"> + <host name="hostname" port="7000"/> + </source> + <target dev="hdd" bus="ide"/> + <auth username='myuser'> + <secret type='ceph' usage='mypassid'/> + </auth> + </disk> <disk type='block' device='cdrom'> <driver name='qemu' type='raw'/> <target def='hdc' bus='ide'/> @@ -1160,7 +1170,24 @@ "drive" controller, additional attributes controller, bus, and unit are available, each defaulting to 0. - + +
auth
+
If present, the auth element provides the + authentication credentials needed to access the source. It + includes a mandatory attribute username, which + identifies the username to use during authentication, as well + as a sub-element secret with mandatory + attribute type, to tie back to + a libvirt secret object that + holds the actual password or other credentials (the domain XML + intentionally does not expose the password, only the reference + to the object that does manage the password). For now, the + only known secret type is "ceph", for Ceph RBD + network sources, and requires either an + attribute uuid with the UUID of the Ceph secret + object, or an attribute usage with the name + associated with the Ceph secret + object. libvirt 0.9.7
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 08cc64f6d0..3477351435 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -602,6 +602,9 @@ + + + @@ -2535,6 +2538,32 @@ + + + + + + + + + + + + + + ceph + + + + + + + + + + + +