Skip to content

Make admin project creation wait for SAR #16849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

enj
Copy link
Contributor

@enj enj commented Oct 12, 2017

This change adds a SAR check to direct project creation to ensure that the designated user can get the project which was created for them. It also updates the project integration tests to be more tolerant of the project ACL being out of date. This race condition became more apparent as we moved to the generated clients since those clients were smaller and had their own rate limiters (instead of a one big client that could do everything and shared the same rate limiter). Since the new clients would perform actions at a faster pace, the race against the project ACL would occur more frequently.

Signed-off-by: Monis Khan [email protected]

Fixes #16716

/kind bug

/assign @smarterclayton @simo5 @deads2k

This change adds a SAR check to direct project creation to ensure
that the designated user can get the project which was created for
them.  It also updates the project integration tests to be more
tolerant of the project ACL being out of date.  This race condition
became more apparent as we moved to the generated clients since
those clients were smaller and had their own rate limiters (instead
of a one big client that could do everything and shared the same
rate limiter).  Since the new clients would perform actions at a
faster pace, the race against the project ACL would occur more
frequently.

Signed-off-by: Monis Khan <[email protected]>
@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 12, 2017
@smarterclayton
Copy link
Contributor

smarterclayton commented Oct 12, 2017 via email

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 12, 2017
@mrogers950
Copy link

/lgtm

@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enj, mrogers950, smarterclayton

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 12, 2017
@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue.

@openshift-merge-robot openshift-merge-robot merged commit 695e862 into openshift:master Oct 13, 2017
openshift-merge-robot added a commit that referenced this pull request Oct 17, 2017
…stream-stage

Automatic merge from submit-queue.

Automated cherry pick of #16849

Cherry pick of #16849 on stage.

#16849: Make admin project creation wait for SAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. queue/blocks-others queue/critical-fix size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants