Bug 1514335

Summary: Conflict Error when multiple user tries to add the same role to different users simultaneously.
Product: OpenShift Container Platform Reporter: Bhavani CR <bhavani.r>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED NOTABUG QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-26 16:07:34 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:

Description Bhavani CR 2017-11-17 06:45:38 UTC
Description of problem:
Conflict Error when multiple user tries to add the same role to different user simultaneously. 
When multiple user tries to add the role (for ex:- "view") to user say user1 and user2 , this shows a conflict error to users.


Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.6.173.0.48-1.git.0.1609d30.el7.noarch

How reproducible:
Execution of command through CLI

Steps to Reproduce:
1.Login to openshift with tmux installed for running command simultanesously
2.oadm policy add-role-to-user view user1
3.oadm policy add-role-to-user view user2
4.Execute the command on tmux with "set sync on".

Actual results:
Conflict error. Operation cannot be fulfilled on rolebindings.authorization.openshift.io "view ":the object has been modified; Please apply your status to latest version and try again

Expected results:
Success message of adding role to user.

Additional info:

Comment 2 Maciej Szulik 2019-02-26 16:07:34 UTC
This is working as expected, we don't support simultaneous modifications, all needs to be performed serially.