예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
 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()')
예제 #4
0
    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()
예제 #5
0
    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()