def delete(self, path): if utils.is_lun_scan_enabled(): wok_log.error("Lun scan is enabled. Cannot add/remote LUNs manually.") raise InvalidOperation("GS390XSTG00009") path_components = utils.validate_lun_path(path) utils.remove_lun(*path_components)
def delete(self, path): if utils.is_lun_scan_enabled(): wok_log.error( "Lun scan is enabled. Cannot add/remote LUNs manually.") raise InvalidOperation("GS390XSTG00009") path_components = utils.validate_lun_path(path) utils.remove_lun(*path_components)
def tearDownClass(self): """ clean up :return: """ self.logging.info('--> TestPartitions.tearDownClass()') self.logging.debug('remove the lun added in setup class') utils.remove_lun(self.hba_id, self.remote_wwpn, self.lun_id) utils.remove_lun(self.hba_id, self.remote_wwpn, self.lun_id_2) self.logging.info('<-- TestPartitions.tearDownClass()')
def delete(self, path): if utils.is_lun_scan_enabled()['current']: wok_log.error( "Lun scan is enabled. Cannot add/remote LUNs manually.") raise InvalidOperation("GS390XSTG00009") path_components = utils.validate_lun_path(path) try: fc_lock.acquire() utils.remove_lun(*path_components) except OperationFailed as e: wok_log.error("Removing LUN failed") raise OperationFailed("GS390XSTG00002", {'err': e}) finally: fc_lock.release()