]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Need to set secrettype for direct iscsi disk volume
authorJohn Ferlan <jferlan@redhat.com>
Mon, 8 Jun 2015 22:41:28 +0000 (18:41 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Jun 2015 11:14:40 +0000 (07:14 -0400)
commit1feaccf0001794e167b0374abf75d97024414e27
tree61a9ad316faa80bf68deab4f08104717379032ec
parentf8867012900ab124a7b09b0022155b4f1d950d52
storage: Need to set secrettype for direct iscsi disk volume

https://bugzilla.redhat.com/show_bug.cgi?id=1200206

Commit id '1b4eaa61' added the ability to have a mode='direct' for
an iscsi disk volume.  It relied on virStorageTranslateDiskSourcePool
in order to copy any disk source pool authentication information to
the direct disk volume, but it neglected to also copy the 'secrettype'
field which ends up being used in the domain volume formatting code.
Adding a secrettype for this case will allow for proper formatting later
and allow disk snapshotting to work properly

Additionally libvirtd restart processing would fail to find the domain
since the translation processing code is run after domain xml processing,
so handle the the case where the authdef could have an empty secrettype
field when processing the auth and additionally ignore performing the
actual and expected auth secret type checks for a DISK_VOLUME since that
data will be reassembled later during translation processing of the
running domain.
src/conf/domain_conf.c
src/storage/storage_driver.c