'Retrieve stats info for NexentaStor appliance.'

def _update_volume_stats(self):

    LOG.debug('Updating    volume    stats')
    stats = self.nms.volume.get_child_props(self.configuration.nexenta_volume, 'health|size|used|available')
    total_amount = utils.str2gib_size(stats['size'])
    free_amount = utils.str2gib_size(stats['available'])
    location_info = ('%(driver)s:%(host)s:%(volume)s' % {'driver': self.__class__.__name__, 'host': self.nms_host, 'volume': self.volume})
    self._stats = {'vendor_name': 'Nexenta', 'dedup': self.volume_deduplication, 'compression': self.volume_compression, 'description': self.volume_description, 'driver_version': self.VERSION, 'storage_protocol': 'iSCSI', 'total_capacity_gb': total_amount, 'free_capacity_gb': free_amount, 'reserved_percentage': self.configuration.reserved_percentage, 'QoS_support': False, 'volume_backend_name': self.backend_name, 'location_info': location_info, 'iscsi_target_portal_port': self.iscsi_target_portal_port, 'nms_url': self.nms.url}
