Bug 1595886

Summary: Backport to OSP 10: Add DB cleanup functionality to nova-manage.
Product: Red Hat OpenStack Reporter: Andreas Karis <akaris>
Component: openstack-novaAssignee: OSP DFG:Compute <osp-dfg-compute>
Status: CLOSED WONTFIX QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: berrange, ccamacho, cpaquin, dasmith, dcadzow, eglynn, jhakimra, jruzicka, kchamart, lyarwood, mschuppe, nhicher, pablo.iranzo, rcernin, rdopiera, rfreire, sbauza, sclewis, sferdjao, sgordon, slong, srevivo, vromanso
Target Milestone: ---Keywords: EasyFix, FeatureBackport, FutureFeature, Patch, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://blueprints.launchpad.net/nova/+spec/purge-deleted-instances-cmd
Whiteboard: upstream_milestone_none upstream_definition_pending-approval upstream_status_needs-code-review
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1154875 Environment:
Last Closed: 2018-08-21 14:02:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1154875, 1595887    
Bug Blocks: 1541693    

Comment 2 Andreas Karis 2018-06-27 16:46:46 UTC
Requesting a backport to OSP 10 for this feature:

----------------

This is now fully merged upstream.

To test this, it's possible to just use the existing archive command on a database with deleted records:

 nova-manage db archive_deleted_rows --all-cells --purge --verbose --until-complete