'Commit reservations.
:param context: The request context, for access checks.
:param reservations: A list of the reservation UUIDs, as
returned by the reserve() method.
:param project_id: Specify the project_id if current context
is admin and admin wants to impact on
common user\'s tenant.'

def commit(self, context, reservations, project_id=None, user_id=None):

    try:
        self._driver.commit(context, reservations, project_id=project_id, user_id=user_id)
    except Exception:
        LOG.exception(_LE('Failed    to    commit    reservations    %s'), reservations)
        return
    LOG.debug('Committed    reservations    %s', reservations)
