Skip to content
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

Prevent quota updates or assignment with finite log rates #2948

Conversation

acrmp
Copy link
Member

@acrmp acrmp commented Sep 1, 2022

This PR builds on #2900 to prevent updates to or assignment of org and space quotas with a finite log rate limit where they would apply to orgs or spaces that contain processes with unlimited log rate limits.

  • If an existing deployment is upgraded to gain log rate limiting support then existing application processes will default to -1 (unlimited).
  • If an org or space quota is subsequently updated to include a finite log rate limit then processes in the affected orgs or spaces will be unable to restart without having their log rate limit changed.
  • Block org and space quota finite log rate limit updates until processes under the affected orgs or spaces have been updated with a finite log rate limit. Specify the names of the first two orgs or spaces and a total count in the error.
  • Block assignment of org or space quotas with finite log rate limits to orgs or spaces that contain processes with unlimited log rate limits.
  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@acrmp acrmp force-pushed the pr/182726901-log-rate-block-quota-updates branch 3 times, most recently from 2523601 to cd83d9f Compare September 8, 2022 00:14
@acrmp acrmp marked this pull request as ready for review September 8, 2022 00:55
acrmp and others added 2 commits September 12, 2022 19:15
- If an existing deployment is upgraded to gain log rate limiting
  support then existing application processes will default to -1
  (unlimited).
- If an org or space quota is subsequently updated to include a finite
  log rate limit then processes in the affected orgs or spaces will be
  unable to restart without having their log rate limit changed.
- Block org and space quota finite log rate limit updates until
  processes under the affected orgs or spaces have been updated with a
  finite log rate limit. Specify the names of the first two orgs or
  spaces and a total count in the error.
- Block assignment of org or space quotas with finite log rate limits to
  orgs or spaces that contain processes with unlimited log rate limits.

Co-authored-by: Carson Long <lcarson@vmware.com>
Block assignment of org or space quotas via the v2 endpoint if the quota
has a finite log rate where the org or space contains processes that have
unlimited log rate limits.

Co-authored-by: Carson Long <lcarson@vmware.com>
@acrmp acrmp force-pushed the pr/182726901-log-rate-block-quota-updates branch from cd83d9f to b57dfc8 Compare September 13, 2022 03:16
Copy link
Member

@MerricdeLauney MerricdeLauney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the changes. Looks good to us!

cc: @jpalermo

@MerricdeLauney MerricdeLauney merged commit 6ebc911 into cloudfoundry:main Sep 13, 2022
@acrmp acrmp deleted the pr/182726901-log-rate-block-quota-updates branch September 13, 2022 19:09
will-gant pushed a commit to sap-contributions/cloud_controller_ng that referenced this pull request Dec 16, 2022
…ry#2948)

* Prevent org and space quota log rate limit changes

- If an existing deployment is upgraded to gain log rate limiting
  support then existing application processes will default to -1
  (unlimited).
- If an org or space quota is subsequently updated to include a finite
  log rate limit then processes in the affected orgs or spaces will be
  unable to restart without having their log rate limit changed.
- Block org and space quota finite log rate limit updates until
  processes under the affected orgs or spaces have been updated with a
  finite log rate limit. Specify the names of the first two orgs or
  spaces and a total count in the error.
- Block assignment of org or space quotas with finite log rate limits to
  orgs or spaces that contain processes with unlimited log rate limits.

* Prevent assignment of org and space quotas (v2)

Block assignment of org or space quotas via the v2 endpoint if the quota
has a finite log rate where the org or space contains processes that have
unlimited log rate limits.

Co-authored-by: Carson Long <lcarson@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants