Comment 4 for bug 1848342

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (stable/train)

Reviewed: https://review.opendev.org/c/openstack/keystone/+/741205
Committed: https://opendev.org/openstack/keystone/commit/f1c1678efe893df3fc33e5127675e8b58567da32
Submitter: "Zuul (22348)"
Branch: stable/train

commit f1c1678efe893df3fc33e5127675e8b58567da32
Author: Pedro Martins <email address hidden>
Date: Thu Oct 10 08:51:32 2019 -0300

    Stop adding entry in local_user while updating ephemerals

    Problem description
    ===================
    Today we have a consistency problem when updating federated
    users via OpenStack. When I update a ephemeral user via OpenStack,
    a registry in the local_user table is created, making this user
    having entries in user, local_user and federated_user tables in
    the database.

    Furthermore, if I try to do some operations using this user
    (that has entries in all three tables), I get a "More than one
    user exists with the name ..." error from the OpenStack
    Keystone API. It happens because the user has an entry in both
    local_user and federated_user tables.

    I fix the persistence in the local_user table for ephemeral
    users when doing updates.

    Proposal
    ========
    I fix the problem with creating an entry in the
    local_user table while updating an ephemeral user

    Closes-Bug: #1848342

    Change-Id: I2ac6e90f24b94dc5c0d9c0758f008a388597036c
    (cherry picked from commit 7597ecc1350eb6918c09585e4116911102acb54a)