Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1595887

Summary: Backport to OSP 13: Add DB cleanup functionality to nova-manage.
Product: Red Hat OpenStack Reporter: Andreas Karis <akaris>
Component: openstack-novaAssignee: melanie witt <mwitt>
Status: CLOSED ERRATA QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: amodi, berrange, ccamacho, cpaquin, dasmith, dcadzow, egallen, eglynn, fan-wxa, fsoppels, hfukumot, jhakimra, jruzicka, kchamart, lyarwood, mas-hatada, mschuppe, pablo.iranzo, rcernin, redhat-bz, rhel-osp-bz, sbauza, schhabdi, sferdjao, sgordon, slong, srevivo, vromanso
Target Milestone: z11Keywords: FeatureBackport, Reopened, Triaged, ZStream
Target Release: 13.0 (Queens)   
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: openstack-nova-17.0.12-7.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1154875 Environment:
Last Closed: 2020-03-10 11:27:15 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    
Bug Blocks: 1541693, 1595886, 1732852, 1888097, 1894145    

Comment 1 Andreas Karis 2018-06-27 16:49:14 UTC
Requesting a backport to OSP 13 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

Comment 13 errata-xmlrpc 2020-03-10 11:27:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0759