Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1512516 - Conflict Error when multiple user tries to add the same cluster role to different group simultaneously.
Summary: Conflict Error when multiple user tries to add the same cluster role to diffe...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.8.0
Assignee: Maciej Szulik
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-13 12:16 UTC by Kiran
Modified: 2019-02-26 16:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-26 16:06:36 UTC


Attachments (Terms of Use)
Please find the attachment for error (deleted)
2017-11-13 12:16 UTC, Kiran
no flags Details


Links
System ID Priority Status Summary Last Updated
Red Hat Bugzilla 1514335 None NEW Conflict Error when multiple user tries to add the same role to different users simultaneously. 2019-02-26 15:59:08 UTC

Internal Links: 1514335

Description Kiran 2017-11-13 12:16:53 UTC
Created attachment 1351540 [details]
Please find the attachment for error

Description of problem:
Conflict Error when multiple user tries to add the same cluster role to different group simultaneously. 
When multiple user tries to add the cluster role (for ex:- "view") to group say group1 and group2 , 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-cluster-role-to-group view group1
3.oadm policy add-cluster-role-to-group view group2
4.Execute the command on tmux with "sync set on".

Actual results:
Conflict error. Operation cannot be fulfilled on clusterrolebindings.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 cluster.

Additional info:

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


Note You need to log in before you can comment on or make changes to this bug.