#8 compat tree should be rebuilt after online init
Opened 6 years ago by lkrispen. Modified 4 years ago

In bz 1186352 there is following failure scenario:

Steps to Reproduce:
(1) Install Master
(2) Install replica
(3) Added a user(testuser1) on Master
(4) Added a user (testuser2) on Replica
(5) Took backup on Master
(6) Added a user(testuser3) on Master
(7) Added a user (testuser4) on Replica
(8) Restored from backup taken in step (5)
(9) Users testuser1 and testuser2 found on Master
(10) Did re-initialize on Replica to fetch restored data
(11) Got users testuser1 and testuser2 on Replica too.
(12) Tried to add user testuser3 again on Master. Added successfully
(13) Tried to add user testuser4 again on Replica, Failed

When reproducing the, the state of the consumer after reinit is:

After the re-init on Replica:

testuser4, users, compat, idm.lab.bos.redhat.com

dn: uid=testuser4,cn=users,cn=compat,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

testuser3, users, compat, idm.lab.bos.redhat.com

dn: uid=testuser3,cn=users,cn=compat,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

testuser2, users, compat, idm.lab.bos.redhat.com

dn: uid=testuser2,cn=users,cn=compat,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

testuser1, users, compat, idm.lab.bos.redhat.com

dn: uid=testuser1,cn=users,cn=compat,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

admin, users, compat, idm.lab.bos.redhat.com

dn: uid=admin,cn=users,cn=compat,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

admin, users, accounts, idm.lab.bos.redhat.com

dn: uid=admin,cn=users,cn=accounts,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

sudo, sysaccounts, etc, idm.lab.bos.redhat.com

dn: uid=sudo,cn=sysaccounts,cn=etc,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

testuser1, users, accounts, idm.lab.bos.redhat.com

dn: uid=testuser1,cn=users,cn=accounts,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

testuser2, users, accounts, idm.lab.bos.redhat.com

dn: uid=testuser2,cn=users,cn=accounts,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

So testuser3 and testuser4 are still present in the compat tree and adding testuser4 fails the uid uniqueness check.

After restart the user can be added

Login to comment on this ticket.