[libvirt] [PATCH 1/6] docs: Remove unnecessary <auth> example for iscsi disk type='volume'

Peter Krempa pkrempa at redhat.com
Fri Sep 15 03:48:54 UTC 2017


On Thu, Sep 14, 2017 at 14:03:05 -0400, John Ferlan wrote:
> Alter the example to remove the <auth> from:
> 
>   <disk type='volume' device='disk'>
>     <driver name='qemu' type='raw'/>
>     <source pool='iscsi-pool' volume='unit:0:0:1' mode='host'/>
>     <auth username='myuser'>
>       <secret type='iscsi' usage='libvirtiscsi'/>
>     </auth>
>     <target dev='vdb' bus='virtio'/>
>   </disk>
> 
> and
> 
>   <disk type='volume' device='disk'>
>     <driver name='qemu' type='raw'/>
>     <source pool='iscsi-pool' volume='unit:0:0:2' mode='direct'/>
>     <auth username='myuser'>
>       <secret type='iscsi' usage='libvirtiscsi'/>
>     </auth>
>     <target dev='vdc' bus='virtio'/>
>   </disk>
> 
> The reality is, it's not even used. For a <source pool> the authdef
> from the storage source pool will supercede whatever is in the <disk>
> definition during virStorageTranslateDiskSourcePool processing. In fact,
> if the pool doesn't have/need authentication, then the authdef would
> be removed anyway as the storage pool would be handling things.
> 
> The "proof" for this is in the adjustment to the test to add an
> <auth> for a disk. The resulting .args file won't add what normally
> would be added "myname:encodedpassword@" prior to the hostname in
> the IQN (e.g. iscsi://myname:encodedpassword@iscsi.example.org:3260/...
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  docs/formatdomain.html.in                                   |  6 ------
>  .../qemuxml2argv-disk-source-pool-mode.args                 |  3 +++
>  .../qemuxml2argvdata/qemuxml2argv-disk-source-pool-mode.xml | 13 +++++++++++++
>  .../qemuxml2xmlout-disk-source-pool-mode.xml                | 13 +++++++++++++
>  4 files changed, 29 insertions(+), 6 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170915/535301d7/attachment-0001.sig>


More information about the libvir-list mailing list