Bug 1693815 - [OSP13.z]nova-manage db archive_deleted_rows does not cleanup table instance_id_mappings
Summary: [OSP13.z]nova-manage db archive_deleted_rows does not cleanup table instance_...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: async
: 13.0 (Queens)
Assignee: Lee Yarwood
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On:
Blocks: 1696757
TreeView+ depends on / blocked
 
Reported: 2019-03-28 17:02 UTC by jhardee
Modified: 2023-09-07 19:54 UTC (History)
8 users (show)

Fixed In Version: openstack-nova-17.0.9-10.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1696757 (view as bug list)
Environment:
Last Closed: 2019-07-10 13:01:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-28220 0 None None None 2023-09-07 19:54:15 UTC
Red Hat Product Errata RHBA-2019:1740 0 None None None 2019-07-10 13:02:22 UTC

Description jhardee 2019-03-28 17:02:06 UTC
Description of problem:

After running nova-manage delete_archive_logs all tables are cleaned up except instance_id_mappings.


Version-Release number of selected component (if applicable):

Openstack 10


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

Running nova-manage delete_archive_logs all tables are cleaned up except instance_id_mappings.


Expected results:

All tables are cleaned.


Additional info:

https://bugs.launchpad.net/nova/+bug/1786298
https://review.openstack.org/#/c/604373/

Comment 12 Matthew Booth 2019-07-05 12:05:56 UTC
*** Bug 1726256 has been marked as a duplicate of this bug. ***

Comment 13 Matthew Booth 2019-07-05 12:14:18 UTC
We still need a workaround to handle existing instance_id_mappings which weren't deleted with their instance. Something like:

=== WARNING, NOT TESTED! ===
update instance_id_mappings set deleted = id where uuid not in (select uuid from instances where deleted = 0);
=== WARNING, NOT TESTED! ===

Comment 15 errata-xmlrpc 2019-07-10 13:01:53 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-2019:1740


Note You need to log in before you can comment on or make changes to this bug.