'Get volume device ids from volume.
:param volumes: volume objects
:returns: device_ids'

def _get_volume_device_ids(self, volumes, array):

    device_ids = []
    for volume in volumes:
        specs = {utils.ARRAY: array}
        device_id = self._find_device_on_array(volume, specs)
        if (device_id is None):
            LOG.error('Volume    %(name)s    not    found    on    the    array.', {'name': volume['name']})
        else:
            device_ids.append(device_id)
    return device_ids
