'Gathers array stats and converts them to GB values.'

def _get_volume_stats(self, san_ip):

    free_gb = 0
    total_gb = 0
    owner = socket.getfqdn(san_ip)
    owner_lookup = {san_ip: owner}
    pools = self.vmem_mg.pool.get_storage_pools(verify=True, include_full_info=True)
    for (short_info, full_info) in pools:
        mod = ''
        pool_free_mb = 0
        pool_total_mb = 0
        for dev in full_info.get('physicaldevices', []):
            if (dev['owner'] not in owner_lookup):
                owner_lookup[dev['owner']] = socket.getfqdn(dev['owner'])
            if (owner_lookup[dev['owner']] == owner):
                pool_free_mb += dev['availsize_mb']
                pool_total_mb += dev['size_mb']
            elif (not mod):
                mod = '    *'
        LOG.debug('pool    %(pool)s:    %(avail)s    /    %(total)s    MB    free    %(mod)s', {'pool': short_info['name'], 'avail': pool_free_mb, 'total': pool_total_mb, 'mod': mod})
        free_gb += int((pool_free_mb / units.Ki))
        total_gb += int((pool_total_mb / units.Ki))
    data = {'vendor_name': 'Violin    Memory,    Inc.', 'reserved_percentage': self.config.reserved_percentage, 'QoS_support': False, 'free_capacity_gb': free_gb, 'total_capacity_gb': total_gb, 'consistencygroup_support': False}
    return data
