This patch aims at deleting the records of the archived instances from
the instance_mappings and request_specs tables in the API database
immediately following their archival from instances to shadow_instances
table. So upon running the 'nova-manage db archive_deleted_rows' command
the records of the archived instances will be automatically removed from
the instance_mappings and request_specs tables as well. A warning has
also been added to fix the issue of 'nova-manage verify_instance'
returning a valid instance mapping even after the instance is deleted.
The patch also adds InstanceMappingList.destory_bulk() and
RequestSpec.destroy_bulk() methods for ease of bulk deletion of records.
Reviewed: https:/ /review. openstack. org/515034 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=32fd58813f8 247641a6b574b5f 01528b29d48b76
Committed: https:/
Submitter: Zuul
Branch: master
commit 32fd58813f82476 41a6b574b5f0152 8b29d48b76
Author: Surya Seetharaman <email address hidden>
Date: Wed Oct 25 13:43:43 2017 +0200
cleanup mapping/reqspec after archive instance
This patch aims at deleting the records of the archived instances from deleted_ rows' command
the instance_mappings and request_specs tables in the API database
immediately following their archival from instances to shadow_instances
table. So upon running the 'nova-manage db archive_
the records of the archived instances will be automatically removed from
the instance_mappings and request_specs tables as well. A warning has
also been added to fix the issue of 'nova-manage verify_instance'
returning a valid instance mapping even after the instance is deleted.
The patch also adds InstanceMapping List.destory_ bulk() and .destroy_ bulk() methods for ease of bulk deletion of records.
RequestSpec
Change-Id: I483701a55576c2 45d091ff086b320 81b392f746e
Closes-Bug: #1724621
Closes-Bug: #1678056