<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 2, 2016 at 8:57 AM, Abel Lopez <span dir="ltr"><<a href="mailto:alopgeek@gmail.com" target="_blank">alopgeek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">For cinder, since kilo, we've had 'cinder-manage db purge-deleted'<div class="gmail-HOEnZb"><div class="gmail-h5"><div><span></span><br></div></div></div></blockquote><div><br></div><div>This is the issue we see with this tool in Liberty, I think this might be fixed in M.</div><div><br></div><div># cinder-manage db purge 365<br></div><div>.... (some stuff works here)</div><div>...</div><div><br></div><div>2016-09-02 15:07:02.196 203924 ERROR cinder DBReferenceError: (pymysql.err.IntegrityError) (1451, u'Cannot delete or update a parent row: a foreign key constraint fails (`cinder`.`volume_glance_metadata`, CONSTRAINT `volume_glance_metadata_ibfk_2` FOREIGN KEY (`snapshot_id`) REFERENCES `snapshots` (`id`))') [SQL: u'DELETE FROM snapshots WHERE snapshots.deleted_at < %s'] [parameters: (datetime.datetime(2015, 9, 3, 15, 7, 2, 189701),)] </div></div><br></div></div>