'Wait until the LDEV is no longer in a THIN volume pair.'

def _wait_thin_copy_deleting(self, ldev, **kwargs):

    interval = kwargs.pop('interval', self.conf.vsp_async_copy_check_interval)
    def _wait_for_thin_copy_smpl(start_time, ldev, **kwargs):
        'Raise    True    if    the    LDEV    is    no    longer    in    a    THIN    volume    pair.'
        timeout = kwargs.pop('timeout', utils.DEFAULT_PROCESS_WAITTIME)
        ldev_info = self.get_ldev_info(['sts', 'vol_attr'], '-ldev_id', ldev)
        if ((ldev_info['sts'] != NORMAL_STS) or (THIN_ATTR not in ldev_info['vol_attr'])):
            raise loopingcall.LoopingCallDone()
        if utils.check_timeout(start_time, timeout):
            raise loopingcall.LoopingCallDone(False)
    loop = loopingcall.FixedIntervalLoopingCall(_wait_for_thin_copy_smpl, timeutils.utcnow(), ldev, **kwargs)
    if (not loop.start(interval=interval).wait()):
        msg = utils.output_log(MSG.TI_PAIR_STATUS_WAIT_TIMEOUT, svol=ldev)
        raise exception.VSPError(msg)
