Re: [openstack-dev] [qa] Cleaning OpenStack resources
Hi David, I have been working on an OpenStack resources cleanup script that allows you to wipe out all resources in a given project, I guess you could use / adapt it for your own case. It is available on github there: https://github.com/cloudwatt/ospurge You can also install it with pip (pip install ospurge). As for the floating ips, you should be able to list and remove them, by using the neutron CLI: * neutron floatingip-list * neutron floatingip-delete Forent Flament - Original Message - From: "David Kranz" To: "OpenStack Development Mailing List" Sent: Wednesday, February 19, 2014 10:15:12 PM Subject: [openstack-dev] [qa] Cleaning OpenStack resources I was looking at https://review.openstack.org/#/c/73274/1 which makes it configurable whether a brute-force cleanup of resources is done after success. This got my wondering how this should really be done. As admin, there are some resources that can be cleaned and some that I don't know how. For example, as admin you can list all servers and delete them with the --all-tenants flag. But for floating ips I don't see a way to list all of them even as admin through the apis. Is there a way that an admin can, through the api, locate all resources used by a particular tenant? -David ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [qa] Cleaning OpenStack resources
On Wed, 2014-02-19 at 16:15 -0500, David Kranz wrote: > I was looking at https://review.openstack.org/#/c/73274/1 which makes it > configurable whether a brute-force cleanup of resources is done after > success. This got my wondering how this should really be done. As admin, > there are some resources that can be cleaned and some that I don't know > how. For example, as admin you can list all servers and delete them with > the --all-tenants flag. But for floating ips I don't see a way to list > all of them even as admin through the apis. Is there a way that an admin > can, through the api, locate all resources used by a particular tenant? Unfortunately, I don't think this is consistently possible between all the services :( -jay ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [qa] Cleaning OpenStack resources
I was looking at https://review.openstack.org/#/c/73274/1 which makes it configurable whether a brute-force cleanup of resources is done after success. This got my wondering how this should really be done. As admin, there are some resources that can be cleaned and some that I don't know how. For example, as admin you can list all servers and delete them with the --all-tenants flag. But for floating ips I don't see a way to list all of them even as admin through the apis. Is there a way that an admin can, through the api, locate all resources used by a particular tenant? -David ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev