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

RFE: add --resource argument for cleaning up specific type of resources #25

Open
bregman-arie opened this issue Mar 29, 2016 · 1 comment

Comments

@bregman-arie
Copy link

The usage would be: shade_janitor --cloud my_cloud --resource [network, router, subnet, instance,etc]
if for example user specified --resource network, it will delete all networks in a specific project.

This is useful in case you reached the quota limit for specific type of resources or you want to make sure no resource of type X exist in your tenant.

@yazug
Copy link
Collaborator

yazug commented Apr 28, 2016

how would this work? since most of the resource cleanups are dependent on their parent being cleaned up first.

using current features you could run
shade_janitor/janitor.py --dryrun > cmds.txt
grep 'network' cmds.txt
and run those cleanup commands it would get any of the resources cleaned up that don't have other dependencies.

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