commit 7597ecc1350eb6918c09585e4116911102acb54a
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
Reviewed: https:/ /review. opendev. org/687990 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=7597ecc1350 eb6918c09585e41 16911102acb54a
Committed: https:/
Submitter: Zuul
Branch: master
commit 7597ecc1350eb69 18c09585e411691 1102acb54a
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: I2ac6e90f24b94d c5c0d9c0758f008 a388597036c