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

Cannot set application disk quota through CLI #102

Closed
trastle opened this issue Mar 4, 2014 · 5 comments
Closed

Cannot set application disk quota through CLI #102

trastle opened this issue Mar 4, 2014 · 5 comments

Comments

@trastle
Copy link

trastle commented Mar 4, 2014

It is not possible to set an application's disk quota from the CLI using a CF push. However it is possible to do this via the CF API and the manifest.yml this is not consistent.

We have some users who need to set the disk quota, explaining to them how to use cf curl is pretty rough. It is possible to add this to the CLI?

Notes

It is possible to set the disk quota for an application using the application's manifest.yml.
The required property is disk_quota:


---
applications:
- name: testapp-large-disk
  memory: 512M
  instances: 1
  disk_quota: 3072
  path: .
Setting the disk quota manually

There is currently no CLI command to set the disk quota for an app, however it is supported by the Cloud Foundry REST API. This means you can set the disk quota using the cf curl command.

$ cf curl /v2/apps

# Find the metadata.guid for the app you want to increase the disk quota of

$ cf curl /v2/apps/[APP-GUID-HERE] -X PUT -d '{"disk_quota":2048}'
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: http://www.pivotaltracker.com/story/show/66874868

@cadamsdotcom
Copy link
Contributor

Hi,

Thanks for raising this issue. It looks like there is a story in the CLI team's backlog to implement this feature, and will be prioritized at the discretion of the CLI PM.

Unless you object, we will close this issue and further discussion can continue on that tracker story.

Thanks and regards,
CF Community Pair (@drich10 and @thecadams)

@scottruitt
Copy link
Contributor

Thanks, @thecadams.

Yes, @trastle, we are in the middle of several stories to add disk to 'cf scale' and 'cf push'. Have a look at the backlog toward the end of next week to see them: https://www.pivotaltracker.com/n/projects/892938

fwiw, we'll probably get to them sooner, but that's the priority for now.

@trastle
Copy link
Author

trastle commented Mar 5, 2014

Thanks @scottruitt, @thecadams and @drich10

Should I be able to view the tracker at:
https://www.pivotaltracker.com/n/projects/892938

It would be interesting to have a look but I can't hit the URL.
T.

@scottruitt
Copy link
Contributor

Ah, looks like Tracker Next, which we've been dog-fooding internally, is not yet public. Here's a working link: https://www.pivotaltracker.com/s/projects/892938

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

4 participants