def _do(self): """ If need be does something """ from comoonics.scsi import ComSCSI if self.name == "rescan": ComSCSI.rescan(self.dest) elif self.name == "rescan_qla": ComSCSI.rescan_qla(self.dest) else: raise SCSIRequirementException("Unsupported SCSI Rescan name %s", self.name)
def _do(self): """ If need be does something """ from comoonics.scsi import ComSCSI if self.name == "rescan": ComSCSI.rescan(self.dest) elif self.name == "rescan_qla": ComSCSI.rescan_qla(self.dest) else: raise SCSIRequirementException("Unsupported SCSI Rescan name %s", self.name) ComSystem.execLocalOutput("udevsettle") stabilized.stabilized(file="/proc/partitions", iterations=10, type="hash")
def testFCRescan(self): for host in ComSCSI.getFCHosts(): ComSCSI.rescan(host)