Open stephanme opened 4 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/174689337
The labels on this github issue will be updated when the story is started.
Thanks for pointing out this reproducible issue @stephanme. Before we take action I'd like a little more information. Can you describe the use case that requires creating a quota plan with 0 mem and 0 instance mem?
Also - I'm not sure if this is helpful or not, but it is possible to create a quota plan with 0 mem in the current v7 CLI by not passing the -m
flag/value in the create-*-quota
command
One of our use case is an org that just exists for owning a private domain. The private domain is then shared into other orgs where applications are deployed (and which have a real memory quota of course). There may be more use cases I need to check with colleagues who opened internal tickets.
Creating a quota without -m flag works. But if I skip the -i flag this quota plan gets unlimited instance memory. This is something we want to avoid (have seen issues with very large app instances) and we run reports about org quotas from time to time. Also, this doesn't work for cf7 update-quota.
We found two possible workarounds:
Not nice either I would say.
We're also running into this. issue using 7.4.0. Our use case is spaces dedicated to brokered service instances that don't have direct relationships to any one application instance.
Please fill out the issue checklist below and provide ALL the requested information.
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
Can't create quota plan with 0 memory.
What happened
cf cli (7.0.2 and also 6.52.0) complains about incorrect usage. Looks like the parameter validation of cf cli doesn't allow 0 memory and 0 instance memory. There is no interaction with CF API at all.
Expected behavior
Quota plan with 0 memory and 0 instance memory is created. This was possible with cf cli 6.49.0.
Exact Steps To Reproduce
Logged in with admin rights:
Provide more context
(running on Ubuntu)
CF 13.14.0 CF API v2.151.0, v3.86.0 (capi-release patched down to 1.96.0 because of the Azure problem in 1.97.0)