-
Notifications
You must be signed in to change notification settings - Fork 574
OCPBUGS-1234 : [CFE-580] Extend user tags limit to 40 based on AWS limits #1272
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
Conversation
Hello @TrilokGeer! Some important instructions when contributing to openshift/api: For merging purposes, this repository follows the no-Feature-Freeze process which means that in addition to the standard
OR
Who should apply these qe/docs/px labels?
|
287627d
to
ba1e3c5
Compare
How many tags are we using in OpenShift today and why are we deciding to change the limit to 10 tags for OpenShift? |
For OpenShift, 2 tags are used during installation, while SD sets 4 tags specific to OpenShift. Customers are not able to tag infrastructure resources with more than 10 tags (including user-defined and OpenShift to the total). Customer is unable to set policy enforcement implementations because of the limitation of 10 tags while AWS supports 50 tags in total. To extend the number of user-defined tags, OpenShift needs to have fixed reservation. Today, 10 tags are considered for OpenShfit with 6 as buffer for future requirements and 40 tags can used as user-defined tags. |
Based on the previous comments, it looks as though we had 25 allocated for customers and 25 allocated for OpenShift, does that not meet the customer requirements? Where did the limit of 10 come from for users? Can you link me the code? |
Installer, today allows 2 OpenShift and 8 user-defined tags regardless of the api limits. To increase the numbers when compared to 50 tags allowed by AWS, the thought is to reserve OpenShift to 10 with future buffer and provide available quota of 40 tags to add user-defined tags. |
Ahh I see, so the installer has imposed a limit, and because the tags are in status, we are confident no one has gone past those installer limits, so this means the change is safe, that makes more sense. |
/cc @patrickdillon |
Up until now, OpenShift has had a 10 tag limit, total, with 2 already consumed by OpenShift (kubernetes.io and name). If customers so far have been limited to 8, then any improvement above 8 is purely a benefit. |
Yes we are fine with the tag limit being bumped. The 10 tag restriction came from limits on the S3 object that is created for bootstrap ignition. That case is being handled in an installer PR, so we have no other concerns with increasing the limit. Thank you! |
@TrilokGeer If you can get the verify fixed then I'll add the LGTM |
3a2adb1
to
ba9832c
Compare
ba9832c
to
97239d6
Compare
@TrilokGeer: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: JoelSpeed, TrilokGeer The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@patrickdillon I don't understand the problem this is solving. This already allows 25 and if we only need "better than 8", then why does this API have to change? don't we already allow 17 more than 8? Perhaps an example object showing the failure that is being fixed by the PR would help and the code that restricts customers to 10 tags based on API validation rule allowing 25 here. |
@deads2k, the thought here is to restrict user to the maximum tags that can be allowed. As @patrickdillon mentioned, the restriction of 10 was set based on S3 object limits but was not restricted in api. Based on clarification with customer, S3 object tags are not required and expectation is to have possible maximum allowed to tag AWS users as per AWS limits (50). One method is to set upper bound on the reservations as 10(OpenShift)/40(User) so that it becomes well defined and limit future updates to the api based on user needs. By updating to 40 at installer, api would fail validation for more than 25. Other method is to gradually increase whenever customer faces validation errors for user tag limits. It'd be great to have a more better solution that will help to mitigate reservation conflict. |
Yeah, the Installer limit of 10 tags is actually orthogonal to the motivation here.As Joel observed, I think the only relevance of the installer limit is to answering the question: is it safe to decrease the number of OpenShift-reserved tags to 10? The fact that it has been impossible to install a cluster with more than 10 totals tags suggests it is safe. That's a different question than the primary one of this PR, which is, I gather, to rebalance the 50 tag limit from 25 user/25 openshift -> 40 user/10 openshift. Trilok explained the motivation in his most recent commnet. Hopefully that helps clarify...
In case it's not already clear, the "Installer 10 limit" was not based on an API validation rule. The history of what happened is something like this:
|
/hold OpenShift reserves half of the resource tag range for internal platform use. Given a specific customer with a specific requirement to change this limit and a consideration of the utility of future tags for the platform, I'm open to adjusting this limit. Lacking a specific need and lacking a clear analysis of future platform objectives, this limit should not be changed. Changes should bring
Lacking that, a 50/50 split is reasonable division that has worked for over a year. |
I am not best to answer here, but wanted to remind that , I could not find the justification, why the existing values are chosen |
@deads2k The customers have a demand of > 8 and do not have use-case which requires more than 25 as of now. Hence, the pr will be closed. |
/close |
@TrilokGeer: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Extend user tag limit to 40 based on AWS limits. 10 tags are reserved for OpenShift use. Previously, there has been a confusion on the tag limit for S3 bucket vs S3 bucket object tag limit. S3 bucket object tag limit is 10 while the requirement is for S3 bucket which has limit of 50 tags.
Reference : https://docs.aws.amazon.com/AmazonS3/latest/userguide/CostAllocTagging.html