commit 8c136a8ee4733d8d3af61406fc9eeccb4e9b7a68
Author: Chris Behrens <email address hidden>
Date: Wed May 29 14:21:00 2013 +0000
Don't delete sys_meta on instance delete
Unfortunately, we require to access instance_system_metadata to get
data (specifically at least instance_type data) for instances that have
been deleted.
There's 2 cases where this is true:
1) nova-api supports showing deleting instances when you specify a
'changes-since' param.
2) The _usage_audit_log periodic task pulls all instances during the
audit period, which includes instances that have been deleted during
that period.
This reverts commit 17bca438954638d74035d560e826a26a532b3ea3, which was
attempting to fix a bug where we leave instance_system_metadata entries
undeleted from the DB. There's not an easy way to query for the deleted
sys_meta data in an efficient manner, and leaving the entries undeleted is
the lesser of the 2 evils for now.
Reviewed: https:/ /review. openstack. org/31244 github. com/openstack/ nova/commit/ 8c136a8ee4733d8 d3af61406fc9eec cb4e9b7a68
Committed: http://
Submitter: Jenkins
Branch: stable/grizzly
commit 8c136a8ee4733d8 d3af61406fc9eec cb4e9b7a68
Author: Chris Behrens <email address hidden>
Date: Wed May 29 14:21:00 2013 +0000
Don't delete sys_meta on instance delete
Unfortunately, we require to access instance_ system_ metadata to get
data (specifically at least instance_type data) for instances that have
been deleted.
There's 2 cases where this is true:
1) nova-api supports showing deleting instances when you specify a
'changes-since' param.
2) The _usage_audit_log periodic task pulls all instances during the
audit period, which includes instances that have been deleted during
that period.
This reverts commit 17bca438954638d 74035d560e826a2 6a532b3ea3, which was system_ metadata entries
attempting to fix a bug where we leave instance_
undeleted from the DB. There's not an easy way to query for the deleted
sys_meta data in an efficient manner, and leaving the entries undeleted is
the lesser of the 2 evils for now.
Fixes bug 1185190
Change-Id: I898f0546c49126 dcc56a423712008 2f95dc82304 8f4fc51a0d2c661 eec05139c0)
(cherry picked from commit 4885aa28706a185