dell_storagecenter_driver/dell_storagecenter_api.py
def _find_active_controller(self, scvolume):
        """Finds the controller on which the Dell volume is active.

        There can be more than one Dell backend controller per Storage center
        but a given volume can only be active on one of them at a time.

        :param scvolume: Dell backend volume object.
        :returns: Active controller ID.
        """
        actvctrl = None
        # TODO(Swanson): We have a function that gets this.  Call that.
        r = self.client.get('StorageCenter/ScVolume/%s/VolumeConfiguration'
                            % self._get_id(scvolume))
        if self._check_result(r):
            volconfig = self._first_result(r)
            controller = volconfig.get('controller')
            actvctrl = self._get_id(controller)
        else:
            LOG.debug('VolumeConfiguration error: %(code)d %(reason)s',
                      {'code': r.status_code,
                       'reason': r.reason})
            LOG.error('Unable to retrieve VolumeConfiguration: %s',
                      self._get_id(scvolume))
        LOG.debug('activecontroller %s', actvctrl)
        return actvctrl
Finds the controller on which the Dell volume is active.

        There can be more than one Dell backend controller per Storage center
        but a given volume can only be active on one of them at a time.

        :param scvolume: Dell backend volume object.
        :returns: Active controller ID.
        
Finds the controller on which the Dell volume is active.
There can be more than one Dell backend controller per Storage center
but a given volume can only be active on one of them at a time.
Finds the controller on which the Dell volume is active . There can be more than one Dell backend controller per Storage center but a given volume can only be active on one of them at a time .
def _find_active_controller(self, scvolume):
        actvctrl = None
        r = self.client.get('StorageCenter/ScVolume/%s/VolumeConfiguration'
                            % self._get_id(scvolume))
        if self._check_result(r):
            volconfig = self._first_result(r)
            controller = volconfig.get('controller')
            actvctrl = self._get_id(controller)
        else:
            LOG.debug('VolumeConfiguration error: %(code)d %(reason)s',
                      {'code': r.status_code,
                       'reason': r.reason})
            LOG.error('Unable to retrieve VolumeConfiguration: %s',
                      self._get_id(scvolume))
        LOG.debug('activecontroller %s', actvctrl)
        return actvctrl
def _find_active_controller ( self , scvolume ) : actvctrl = None r = self . client . get ( 'StorageCenter/ScVolume/%s/VolumeConfiguration' % self . _get_id ( scvolume ) ) if self . _check_result ( r ) : volconfig = self . _first_result ( r ) controller = volconfig . get ( 'controller' ) actvctrl = self . _get_id ( controller ) else : LOG . debug ( 'VolumeConfiguration error: %(code)d %(reason)s' , { 'code' : r . status_code , 'reason' : r . reason } ) LOG . error ( 'Unable to retrieve VolumeConfiguration: %s' , self . _get_id ( scvolume ) ) LOG . debug ( 'activecontroller %s' , actvctrl ) return actvctrl
Finds the controller on which the Dell volume is active.
Finds the controller on which the Dell volume is active .
"""Finds the controller on which the Dell volume is active.

        There can be more than one Dell backend controller per Storage center
        but a given volume can only be active on one of them at a time.

        :param scvolume: Dell backend volume object.
        :returns: Active controller ID.
        """ # TODO(Swanson): We have a function that gets this.  Call that.
Active controller ID.
Active controller ID .
self
scvolume
Dell backend volume object.
Dell backend volume object .