libvirt/src/storage
John Ferlan 844c1d7e32 storage: Check for valid fc_host parent at startup
https://bugzilla.redhat.com/show_bug.cgi?id=1160565

If a 'parent' attribute is provided for the fchost, then at startup
time check to ensure it is a vport capable scsi_host. If the parent
is not vport capable, then disallow the startup. The following is the
expected results:

error: Failed to start pool fc_pool
error: XML error: parent 'scsi_host2' specified for vHBA is not vport capable

where the XML for the fc_pool is:

    <pool type='scsi'>
      <name>fc_pool</name>
      <source>
        <adapter type='fc_host' parent='scsi_host2' wwnn='5001a4aaf3ca174b' wwpn='5001a4a77192b864'/>
      </source>
...

and 'scsi_host2' is not vport capable.

Providing an incorrect parent and a correct wwnn/wwpn could lead to
failures at shutdown (deleteVport) where the assumption is the parent
is for the fchost.

NOTE: If the provided wwnn/wwpn doesn't resolve to an existing scsi_host,
      then we will be creating one with code (virManageVport) which
      assumes the parent is vport capable.

Signed-off-by: John Ferlan <jferlan@redhat.com>
2014-11-12 10:18:27 -05:00
..
parthelper.c Fix spacing around commas 2014-08-22 15:03:39 +02:00
storage_backend_disk.c storage: Resolve Coverity OVERFLOW_BEFORE_WIDEN 2014-09-11 07:33:19 -04:00
storage_backend_disk.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_fs.c storage: Resolve Coverity UNUSED_VALUE 2014-09-11 07:33:19 -04:00
storage_backend_fs.h storage: add file functions for local and block files 2014-02-14 10:47:57 +01:00
storage_backend_gluster.c Do not crash on gluster snapshots with no host name 2014-11-12 09:36:31 +01:00
storage_backend_gluster.h storage: Add storage file backends for gluster 2014-02-14 11:07:23 +01:00
storage_backend_iscsi.c storage: Split out volume wiping as separate backend function 2014-07-17 10:12:34 +02:00
storage_backend_iscsi.h Move functions using iscsiadm to viriscsi.c 2014-03-20 18:04:50 +01:00
storage_backend_logical.c storage: logical: drop useless if 2014-07-21 21:34:14 +04:00
storage_backend_logical.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_mpath.c storage: Split out volume wiping as separate backend function 2014-07-17 10:12:34 +02:00
storage_backend_mpath.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
storage_backend_rbd.c Utilize virDomainDiskAuth for storage pools 2014-07-03 17:39:15 -04:00
storage_backend_rbd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_scsi.c storage: Check for valid fc_host parent at startup 2014-11-12 10:18:27 -05:00
storage_backend_scsi.h storage: Move virStorageBackendSCSIGetHostNumber into iscsi backend 2013-04-08 18:41:06 +08:00
storage_backend_sheepdog.c conf: track sizes directly in source struct 2014-04-02 06:03:00 -06:00
storage_backend_sheepdog.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
storage_backend_zfs.c storage: zfs: implement pool build and delete 2014-09-18 18:08:29 +04:00
storage_backend_zfs.h storage: ZFS support 2014-08-12 19:40:20 +04:00
storage_backend.c fdstream: introduce virFDStreamOpenBlockDevice 2014-08-25 10:46:13 +04:00
storage_backend.h storage: Implement storage driver helper to chown disk images 2014-07-24 09:58:59 +02:00
storage_driver.c Remove use of storagePrivateData from storage driver 2014-11-07 11:12:50 +01:00
storage_driver.h util: storage: Allow metadata crawler to report useful errors 2014-09-24 09:28:29 +02:00