debuggers.hg

changeset 21050:b82dd03944e0

xend: XenAPI does not support pvSCSI multipath

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 05 14:42:25 2010 +0000 (2010-03-05)
parents 8f98581c2dd1
children 0d85c05b1554
files tools/python/xen/xend/XendNode.py
line diff
     1.1 --- a/tools/python/xen/xend/XendNode.py	Fri Mar 05 14:40:19 2010 +0000
     1.2 +++ b/tools/python/xen/xend/XendNode.py	Fri Mar 05 14:42:25 2010 +0000
     1.3 @@ -333,7 +333,11 @@ class XendNode:
     1.4                      pscsi_uuid = uuid.createString()
     1.5                      saved_pscsi_table[scsi_id] = pscsi_uuid
     1.6                  else:
     1.7 -                    saved_HBA_uuid = saved_pscsis[pscsi_uuid].get('HBA', None)
     1.8 +                    try:
     1.9 +                        saved_HBA_uuid = saved_pscsis[pscsi_uuid].get('HBA', None)
    1.10 +                    except KeyError:
    1.11 +                        log.warn("Multi-path SCSI devices are not supported for XenAPI")
    1.12 +                        return
    1.13  
    1.14                  physical_host = int(pscsi_record['physical_HCTL'].split(':')[0])
    1.15                  if pscsi_HBA_table.has_key(physical_host):