JOHN YOU wrote:
Hi, Li Ming:
When the client is booting up from master server, client is stopped at flowwing point.
if cciss_dev.vendor.startswith('0x'):
vendor = cciss_dev.vendor[2:].strip()
pci = PCI([vendor])
SCSI Handdled Error , PCI not defined.
Can I change code from
if cciss_dev.vendor.startswith('0x'):
vendor = cciss_dev.vendor[2:].strip()
pci = PCI([vendor])
if pci.ids.has_key(vendor):
cciss_dev.vendor = pci.ids[vendor]['NAME']
if cciss_dev.model and cciss_dev.model.startswith('0x'):
device = cciss_dev.model[2:].strip()
if pci.ids[vendor]['DEVICE'].has_key(device):
cciss_dev.model = pci.ids[vendor]['DEVICE'][device]['NAME']
else:
cciss_dev.model = None
else:
cciss_dev.vendor = None
cciss_dev.model = None
return dict(cciss_dev)
************************************************** ***********
to
# if cciss_dev.vendor.startswith('0x'):
cciss_dev.model = None
cciss_dev.vendor = None
# vendor = cciss_dev.vendor[2:].strip()
# pci = PCI([vendor])
# if pci.ids.has_key(vendor):
# cciss_dev.vendor = pci.ids[vendor]['NAME']
#
# if cciss_dev.model and cciss_dev.model.startswith('0x'):
# device = cciss_dev.model[2:].strip()
# if pci.ids[vendor]['DEVICE'].has_key(device):
# cciss_dev.model = pci.ids[vendor]['DEVICE'][device]['NAME']
# else:
# cciss_dev.model = None
# else:
# cciss_dev.vendor = None
# cciss_dev.model = None
return dict(cciss_dev)
script file name : probe.py
Hardware HP DL460 Balde Server, Disk Raid Controller E200i
linux version : RHEL 5.2 x86_64
kusu version: 1.1
In master server, lspci can show all pci devices included disk raid controller E200i.
Thank YOU and Best Regards
JOHN YOU