| 1 | --- |
| 2 | fixes: |
| 3 | - | |
| 4 | [`bug 1848342 <https://bugs.launchpad.net/keystone/+bug/1848342>`_] |
| 5 | There was an inconsistency in the ephemeral user update flow. Every time a |
| 6 | federated user logged in, keystone created an entry in the local_user |
| 7 | table instead of just updating the entries in the user and federated_user |
| 8 | tables, which caused duplicate entries when listing users. Now, the |
| 9 | keystone will not create the entry in the local_user table while updating |
| 10 | an ephemeral user. |
| 11 | |
| 12 | If you are affected by this bug, a fix in the keystone database will be |
| 13 | needed so we recommend to dump the users' tables before doing this process: |
| 14 | |
| 15 | mysql db example: |
| 16 | - mysqldump -h <mysql host> -p -P <mysql port> -u keystone keystone federated_user local_user user > user_tables.sql |
| 17 | - mysql -h <mysql host> -D keystone -p -P <mysql port> -u keystone -e 'delete from local_user where user_id in (select user_id from federated_user);' |
| 18 | |
| 19 | SQL: |
| 20 | - delete from local_user where user_id in (select user_id from federated_user); |
| 21 | |
| 22 | |
| 23 |