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

deis limits:unset web=64M doesn't unset the limit #62

Open
slack opened this issue May 14, 2016 · 6 comments
Open

deis limits:unset web=64M doesn't unset the limit #62

slack opened this issue May 14, 2016 · 6 comments

Comments

@slack
Copy link
Member

slack commented May 14, 2016

k:mustache example-go [master]$ deis limits:unset web=64M
Applying limits... done

=== indoor-whitecap Limits

--- Memory
web     64M

--- CPU
web     250m
k:mustache example-go [master]$ deis limits
=== indoor-whitecap Limits

--- Memory
web     64M

--- CPU
web     250m
kubectl --namespace=indoor-whitecap describe po indoor-whitecap-v15-web-amixa
Name:       indoor-whitecap-v15-web-amixa
Containers:
  indoor-whitecap-web:
    QoS Tier:
      cpu:  Guaranteed
      memory:   Guaranteed
    Limits:
      cpu:  250m
      memory:   64Mi
    Requests:
      memory:       64Mi
      cpu:      250m

Looks like deis limits:unset web does, bit of a surprise behavior.

@slack slack added the bug label May 14, 2016
@slack slack added this to the v2.0-rc1 milestone May 14, 2016
@slack
Copy link
Member Author

slack commented May 14, 2016

If the value is found, it should unset that value, if the value doesn't match it should throw a bad request.
If no value is given it should clear the value, like it does now.

@Joshua-Anderson
Copy link
Contributor

At the moment there is no validation on the process given, so the cli is trying to unset limits on the process web=64M, which doesn't exist.

Just to clarify, you would expect:

deis limits:unset web=64M

to return an error like Error: No limits defined for process 'web=64M' or do you expect it to unset the memory limit on process web

@slack
Copy link
Member Author

slack commented May 15, 2016

I would expect deis limits:unset web=64M to clear the limit if it matched the currently set value of '64M', otherwise throw an error and not create a new release.

If deis limits:unset web=64M does match, then unset and create the release.

If deis limits:unset web is called it should unset the memory limit for web, regardless of its current value.

@bacongobbler
Copy link
Member

given that we have a workaround, is this something we can get back to after 2.0?

@vdice
Copy link
Member

vdice commented May 24, 2016

ping @slack as to if this issue needs to be resolved in v2.0-rc1 -- if so, let's label with showstopper -- otherwise, as @bacongobbler mentioned, I might suggest we move to a later milestone...

@Cryptophobia
Copy link

This issue was moved to teamhephy/workflow-cli#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants