Bug 1075548

Summary: Simultaneous ipa user-add on master and replica, resulting in duplicate user
Product: Red Hat Enterprise Linux 7 Reporter: Varun Mylaraiah <mvarun>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED DUPLICATE QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-12 14:36:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Terminator screenshots none

Description Varun Mylaraiah 2014-03-12 11:04:43 UTC
Description of problem:
ipa user-add parallel running on master and replica, user is adding twice

Version-Release number of selected component (if applicable):
ipa-server-3.3.3-21.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
[root@dell-pe1950-03 ~]# ipa user-add testuser3
First name: testuser3
Last name: testuser3
----------------------
Added user "testuser3"
----------------------
  User login: testuser3
  First name: testuser3
  Last name: testuser3
  Full name: testuser3 testuser3
  Display name: testuser3 testuser3
  Initials: tt
  Home directory: /home/testuser3
  GECOS: testuser3 testuser3
  Login shell: /bin/sh
  Kerberos principal: testuser3
  Email address: testuser3
  UID: 793200005
  GID: 793200005
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

[root@dell-pe1950-03 ~]# ipa user-find
 User login: testuser3
  First name: testuser3
  Last name: testuser3
  Home directory: /home/testuser3
  Login shell: /bin/sh
  Email address: testuser3
  UID: 793200005
  GID: 793200005
  Account disabled: False
  Password: False
  Kerberos keys available: False

  User login: testuser3
  First name: testuser3
  Last name: testuser3
  Home directory: /home/testuser3
  Login shell: /bin/sh
  Email address: testuser3
  UID: 793300503
  GID: 793300503
  Account disabled: False
  Password: False
  Kerberos keys available: False

[root@dell-pe1950-03 ~]# ipa user-del testuser3
------------------------
Deleted user "testuser3"
------------------------

[root@dell-pe1950-03 ~]# ipa user-find
---------------
8 users matched
---------------
  User login: testuser3
  First name: testuser3
  Last name: testuser3
  Home directory: /home/testuser3
  Login shell: /bin/sh
  Email address: testuser3
  UID: 793300503
  GID: 793300503
  Account disabled: False
  Password: False
  Kerberos keys available: False

[root@dell-pe1950-03 ~]# ipa user-add testuser3
First name: testuser3
Last name: testuser3
ipa: ERROR: user with name "testuser3" already exists

[root@dell-pe1950-03 ~]# ipa user-del testuser3
ipa: ERROR: testuser3: user not found
[root@dell-pe1950-03 ~]# 

Additional info:
1.Use Terminator application to "group the tab" and type simultaneously on two terminals.

Comment 2 Varun Mylaraiah 2014-03-12 11:41:29 UTC
Created attachment 873476 [details]
Terminator screenshots

Comment 3 Martin Kosek 2014-03-12 12:53:23 UTC
This is caused by DS creating conflict entries with different DN (with nsuniqueid part, you can verify with "ipa user-find --all" call).

I think this report is more or less duplicate to Bug 772294. If you agree, I will close it as duplicate.

Comment 4 Varun Mylaraiah 2014-03-12 13:30:55 UTC
(In reply to Martin Kosek from comment #3)
> This is caused by DS creating conflict entries with different DN (with
> nsuniqueid part, you can verify with "ipa user-find --all" call).
> 
> I think this report is more or less duplicate to Bug 772294. If you agree, I
> will close it as duplicate.
Yes, this is same as bug #772294. Please go ahead and close this.

Comment 5 Martin Kosek 2014-03-12 14:36:18 UTC

*** This bug has been marked as a duplicate of bug 772294 ***