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

Bug 1281595

Summary: Purge deleted rows from the database
Product: Red Hat OpenStack Reporter: Sergey Gotliv <sgotliv>
Component: openstack-cinderAssignee: Gorka Eguileor <geguileo>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0 (Juno)CC: adahms, eharney, geguileo, nlevinki, scohen, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 6.0 (Juno)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-2014.2.3-11.el7ost Doc Type: Enhancement
Doc Text:
This update adds the ability to clean up rows that are already marked as deleted of a certain specified age. Age is calculated as timedelta from now() in days, which are specified via the command line. This update removes clutter from the Block Storage service database.
Story Points: ---
Clone Of: 1281591 Environment:
Last Closed: 2016-01-21 13:54:39 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: 1281591    
Bug Blocks:    

Comment 2 lkuchlan 2016-01-04 14:38:10 UTC
Verification instructions:
1. Create a volume and delete it
2. Set the system clock +1 day from the current date
3. cinder-manage db purge 1

Results:
The "deleted" entries have removed successfully from Cinder's DB

Tested using:
python-cinder-2014.2.3-11.el7ost.noarch
python-cinderclient-1.1.1-1.el7ost.noarch
openstack-cinder-2014.2.3-11.el7ost.noarch

Comment 4 errata-xmlrpc 2016-01-21 13:54:39 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://rhn.redhat.com/errata/RHBA-2016-0059.html