dell_storagecenter_driver/dell_storagecenter_api.py
def unmap_volume(self, scvolume, scserver):
        """Unmaps the Dell volume object from the Dell server object.

        Deletes all mappings to a Dell server object, not just the ones on
        the path defined in cinder.conf.

        :param scvolume: Storage Center volume object.
        :param scserver: Storage Center server opbject.
        :returns: True or False.
        """
        rtn = True
        serverid = self._get_id(scserver)
        volumeid = self._get_id(scvolume)
        if serverid is not None and volumeid is not None:
            profiles = self.find_mapping_profiles(scvolume)
            for profile in profiles:
                prosrv = profile.get('server')
                if prosrv is not None and self._get_id(prosrv) == serverid:
                    r = self.client.delete('StorageCenter/ScMappingProfile/%s'
                                           % self._get_id(profile))
                    if not self._check_result(r):
                        LOG.debug('ScMappingProfile error: '
                                  '%(code)d %(reason)s',
                                  {'code': r.status_code,
                                   'reason': r.reason})
                        LOG.error('Unable to unmap Volume %s',
                                  volumeid)
                        # 1 failed unmap is as good as 100.
                        # Fail it and leave
                        rtn = False
                        break
                    LOG.debug('Volume %(vol)s unmapped from %(srv)s',
                              {'vol': volumeid,
                               'srv': serverid})
        return rtn
Unmaps the Dell volume object from the Dell server object.

        Deletes all mappings to a Dell server object, not just the ones on
        the path defined in cinder.conf.

        :param scvolume: Storage Center volume object.
        :param scserver: Storage Center server opbject.
        :returns: True or False.
        
Unmaps the Dell volume object from the Dell server object.
Deletes all mappings to a Dell server object, not just the ones on
the path defined in cinder.conf.
Unmaps the Dell volume object from the Dell server object . Deletes all mappings to a Dell server object not just the ones on the path defined in cinder . conf .
def unmap_volume(self, scvolume, scserver):
        rtn = True
        serverid = self._get_id(scserver)
        volumeid = self._get_id(scvolume)
        if serverid is not None and volumeid is not None:
            profiles = self.find_mapping_profiles(scvolume)
            for profile in profiles:
                prosrv = profile.get('server')
                if prosrv is not None and self._get_id(prosrv) == serverid:
                    r = self.client.delete('StorageCenter/ScMappingProfile/%s'
                                           % self._get_id(profile))
                    if not self._check_result(r):
                        LOG.debug('ScMappingProfile error: '
                                  '%(code)d %(reason)s',
                                  {'code': r.status_code,
                                   'reason': r.reason})
                        LOG.error('Unable to unmap Volume %s',
                                  volumeid)
                        rtn = False
                        break
                    LOG.debug('Volume %(vol)s unmapped from %(srv)s',
                              {'vol': volumeid,
                               'srv': serverid})
        return rtn
def unmap_volume ( self , scvolume , scserver ) : rtn = True serverid = self . _get_id ( scserver ) volumeid = self . _get_id ( scvolume ) if serverid is not None and volumeid is not None : profiles = self . find_mapping_profiles ( scvolume ) for profile in profiles : prosrv = profile . get ( 'server' ) if prosrv is not None and self . _get_id ( prosrv ) == serverid : r = self . client . delete ( 'StorageCenter/ScMappingProfile/%s' % self . _get_id ( profile ) ) if not self . _check_result ( r ) : LOG . debug ( 'ScMappingProfile error: ' '%(code)d %(reason)s' , { 'code' : r . status_code , 'reason' : r . reason } ) LOG . error ( 'Unable to unmap Volume %s' , volumeid ) rtn = False break LOG . debug ( 'Volume %(vol)s unmapped from %(srv)s' , { 'vol' : volumeid , 'srv' : serverid } ) return rtn
Unmaps the Dell volume object from the Dell server object.
Unmaps the Dell volume object from the Dell server object .
"""Unmaps the Dell volume object from the Dell server object.

        Deletes all mappings to a Dell server object, not just the ones on
        the path defined in cinder.conf.

        :param scvolume: Storage Center volume object.
        :param scserver: Storage Center server opbject.
        :returns: True or False.
        """ # 1 failed unmap is as good as 100. # Fail it and leave
True or False.
True or False .
self
scvolume
Storage Center volume object.
Storage Center volume object .
scserver
Storage Center server opbject.
Storage Center server opbject .