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

Bosh cannot update CF quotas #1201

Closed
mtekel opened this issue Apr 11, 2016 · 1 comment
Closed

Bosh cannot update CF quotas #1201

mtekel opened this issue Apr 11, 2016 · 1 comment

Comments

@mtekel
Copy link

mtekel commented Apr 11, 2016

When you define quotas in CF manfest, e.g.

    quota_definitions:
      default:
        memory_limit: 10240
        non_basic_services_allowed: true
        total_routes: 1000
        total_services: 100

BOSH will create them. But when you change any values, BOSH will apply your changes - which will finish successfully, but the quota in CF will not be updated. In cc logs, you can find quota collision logs:

{
    "data": {
        "name": "default",
        "values": {
            "memory_limit": 2048,
            "non_basic_services_allowed": false,
            "total_routes": 1000,
            "total_services": 10
        }
    },
    "fiber_id": 47214725162920,
    "file": "/var/vcap/data/packages/cloud_controller_ng/6d32e116fa47763d6885214954e0d737c28b29e5.1-aa02996eae5e64a4ff823957b8ec5baf64d0b2b5/cloud_controller_ng/lib/cloud_controller/seeds.rb",
    "lineno": 20,
    "log_level": "warn",
    "message": "seeds.quota-collision",
    "method": "block in create_seed_quota_definitions",
    "process_id": 10857,
    "source": "cc.seeds",
    "thread_id": 47214699944340,
    "timestamp": 1460386421.1394439
}

and

{
    "data": {
        "existing_quota_name": "default"
    },
    "fiber_id": 47214725162920,
    "file": "/var/vcap/data/packages/cloud_controller_ng/6d32e116fa47763d6885214954e0d737c28b29e5.1-aa02996eae5e64a4ff823957b8ec5baf64d0b2b5/cloud_controller_ng/lib/cloud_controller/seeds.rb",
    "lineno": 46,
    "log_level": "warn",
    "message": "seeds.system-domain-organization.collision",
    "method": "create_seed_organizations",
    "process_id": 10857,
    "source": "cc.seeds",
    "thread_id": 47214699944340,
    "timestamp": 1460386421.1927507
}

CF release 228, BOSH version 253

Updating quotas with cf update-quota works normally.

@mtekel mtekel changed the title Bosh cannot update quotas Bosh cannot update CF quotas Apr 11, 2016
@cppforlife
Copy link
Contributor

I'll close this issue here since you've opened one against capi-release. BOSH just passes properties to the releases and it's up to releases to define what happens then. Not sure if it ever was supported by cloud controller to update quotas via manifest.

mtekel added a commit to alphagov/paas-cf that referenced this issue Apr 12, 2016
Because BOSH can't apply default quota changes when updated in manifest
(see cloudfoundry/bosh#1201), use cf cli to
do the updates until the issue is fixed upstream. Use a small script to
extract the quota settings from manifest.
mtekel added a commit to alphagov/paas-cf that referenced this issue Apr 12, 2016
Because BOSH can't apply default quota changes when updated in manifest
(see cloudfoundry/bosh#1201), use cf cli to
do the updates until the issue is fixed upstream. Use a small script to
extract the quota settings from manifest.
mtekel added a commit to alphagov/paas-cf that referenced this issue Apr 12, 2016
Because BOSH can't apply default quota changes when updated in manifest
(see cloudfoundry/bosh#1201), use cf cli to
do the updates until the issue is fixed upstream. Use a small script to
extract the quota settings from manifest.
mtekel added a commit to alphagov/paas-cf that referenced this issue Apr 12, 2016
Because BOSH can't apply default quota changes when updated in manifest
(see cloudfoundry/bosh#1201), use cf cli to
do the updates until the issue is fixed upstream. Use a small script to
extract the quota settings from manifest.
Jonty pushed a commit to alphagov/paas-cf that referenced this issue Apr 18, 2016
Because BOSH can't apply default quota changes when updated in manifest
(see cloudfoundry/bosh#1201), use cf cli to
do the updates until the issue is fixed upstream. Use a small script to
extract the quota settings from manifest.
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

No branches or pull requests

2 participants