<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 07 Sep 2016, at 15:05, John Davidge <<a href="mailto:John.Davidge@rackspace.com" class="">John.Davidge@rackspace.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">Hello,</div>
<div class=""><br class="">
</div>
<div class="">During the Mitaka cycle we merged a new feature into the python-neutronclient called ’neutron purge’. This enables a simple CLI command that deletes all of the neutron resources owned by a given tenant. It’s documented in the networking guide[1].</div>
<div class=""><br class="">
</div>
<div class="">We did this in response to feedback from operators that they needed a better way to remove orphaned resources after a tenant had been deleted. So far this feature has been well received, and we already have a couple of enhancement requests. Given
 that we’re moving to OSC I’m hesitant to continue iterating on this in the neutron client, and so I’m reaching out to propose that we look into making this a part of OSC.</div>
<div class=""><br class="">
</div>
<div class="">Earlier this week I was about to file a BP, when I noticed one covering this subject was already filed last month[2]. I’ve spoken to Roman, who says that they’ve been thinking about implementing this in nova, and have come to the same conclusion
 that it would fit better in OSC.</div>
<div class=""><br class="">
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>This would be really great. From experience of using the existing purge commands (such as for deleted volumes), would it be possible to add a dry run option where it would list the deletions that it would do but not do them. This would allow the operator
 to check what is due to be cleaned up.</div>
<div><br class="">
</div>
<div>One other area where there have sometimes been problems is when lots of items need to be deleted. Some purge commands add a max resources or similar so that you can do it in smaller steps and avoid a timeout. </div>
<div><br class="">
</div>
<div>Tim</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class=""></div>
<div class="">I would propose that we work together to establish how this command will behave in OSC, and build a framework that implements the cleanup of a small set of core resources. This should be achievable during the Ocata cycle. After that, we can reach
 out to the wider community to encourage a cross-project effort to incrementally support more projects/resources over time.</div>
<div class=""><br class="">
</div>
<div class="">If you already have an etherpad for planning summit sessions then please let me know, I’d love to get involved.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">John</div>
<div class=""><br class="">
</div>
<div class="">[1] <a href="http://docs.openstack.org/mitaka/networking-guide/ops-resource-purge.html" class="">http://docs.openstack.org/mitaka/networking-guide/ops-resource-purge.html</a></div>
<div class="">[2] <a href="https://blueprints.launchpad.net/python-openstackclient/+spec/tenant-data-scrub" class="">https://blueprints.launchpad.net/python-openstackclient/+spec/tenant-data-scrub</a></div>
   
<hr class="">
Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy can be viewed at
<a href="http://www.rackspace.co.uk/legal/privacy-policy" class="">www.rackspace.co.uk/legal/privacy-policy</a> - This e-mail message may contain confidential or privileged information intended for the recipient. Any dissemination, distribution or copying of
 the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at
<a href="mailto:abuse@rackspace.com" class="">abuse@rackspace.com</a> and delete the original message. Your cooperation is appreciated.
</div>
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>