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

Bug 1265249

Summary: [RFE][glance] DB purge command
Product: Red Hat OpenStack Reporter: Martin Magr <mmagr>
Component: openstack-glanceAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: eglynn, fpercoco, jjoyce, scohen, sgotliv, srevivo
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-glance-13.0.0-0.20160907204321.e822301.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 15:16:09 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:    
Bug Blocks: 1249106, 1283388, 1342299    

Description Martin Magr 2015-09-22 13:15:53 UTC
Description of problem:

It is required to have "glance-manage db purge" command according to BP [1] to be able to implement safe database size management in our installers (bz#1249106). Patch for this feauture is ready [3], but upstream planned the feature for M-release.

[1] https://review.openstack.org/#/c/132659/
[2] https://review.openstack.org/#/c/216782/
[3] https://review.openstack.org/#/c/216782/

Comment 1 Martin Magr 2015-09-22 13:17:01 UTC
Correction: [2] https://review.openstack.org/#/c/132659/

Comment 2 Sean Cohen 2015-10-08 13:12:03 UTC
(In reply to Martin Magr from comment #1)
> Correction: [2] https://review.openstack.org/#/c/132659/

Hi Martin,
As non of these patches made it in to Liberty, pushing out at this point
Sean

Comment 3 Flavio Percoco 2015-10-19 12:01:40 UTC
This is the latest spec: https://review.openstack.org/#/c/234747/

Comment 4 Mike McCune 2016-03-28 22:35:49 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 9 Avi Avraham 2016-11-03 13:24:57 UTC
The RFE was verified on the following version 
python-glanceclient-2.5.0-1.el7ost.noarch
python-glance-store-0.18.1-0.20161003180701.4e144bb.el7ost.noarch
openstack-glance-13.0.0-1.el7ost.noarch
The following worming message was got as the command output:
Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:1171: OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.enginefacade. according to the development team can be ignored

Comment 11 errata-xmlrpc 2016-12-14 15:16:09 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/RHEA-2016-2948.html