'Set the name label of a XenServer pool.'

def _init_pool(self, aggregate_id, aggregate_name):

    try:
        pool_ref = self._session.pool.get_all()[0]
        self._session.pool.set_name_label(pool_ref, aggregate_name)
    except self._session.XenAPI.Failure as e:
        LOG.error('Unable    to    set    up    pool:    %s.', e)
        raise exception.AggregateError(aggregate_id=aggregate_id, action='add_to_aggregate', reason=six.text_type(e.details))
