Bug 1565460
Summary: | cinder-manage db purge fails | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Nilesh <nchandek> |
Component: | openstack-cinder | Assignee: | Rajat Dhasmana <rdhasman> |
Status: | CLOSED DUPLICATE | QA Contact: | Avi Avraham <aavraham> |
Severity: | high | Docs Contact: | RHOS Documentation Team <rhos-docs> |
Priority: | high | ||
Version: | 10.0 (Newton) | CC: | dciabrin, eharney, jvisser, mbayer, pkesavar, srevivo |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-12-13 15:58:48 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: | 1777906, 1794693, 1796144 |
Description
Nilesh
2018-04-10 04:47:00 UTC
the issue as described so far seems to be that you are unsatisfied with the use case not being covered from https://bugs.launchpad.net/cinder/+bug/1542169, and you would prefer that they implement option "2. Explicitly delete attachment records" as stated at https://bugs.launchpad.net/cinder/+bug/1542169/comments/1. This is not a mariadb issue. It looks like this is or was a bug in Cinder: the fix for https://bugs.launchpad.net/cinder/+bug/1542169 was not actually a fix, it just generated a better error message. I think we could fix this by adjusting https://git.openstack.org/cgit/openstack/cinder/tree/cinder/db/sqlalchemy/api.py?h=14.0.0#n6636 to skip any volumes that still have attachment records. (Since they aren't supposed to be in that state and it isn't clear what to do with them.) Issuing a warning for the admin in that case might also be helpful, but not having "cinder-manage" fail would be a good improvement in itself. *** This bug has been marked as a duplicate of bug 1777906 *** |