diff options
author | Chris Behrens <cbehrens@codestud.com> | 2013-05-15 09:23:26 +0000 |
---|---|---|
committer | Chris Behrens <cbehrens@codestud.com> | 2013-05-22 06:07:22 +0000 |
commit | 4251bba3bd456f7ba1c7481bb84d839a5fafc757 (patch) | |
tree | 911ce438486b95648c2f06e0e71f922b9c443fa2 /nova/tests | |
parent | c39687edb9138c6eac675b8781a5d4bf5a51c968 (diff) | |
download | nova-4251bba3bd456f7ba1c7481bb84d839a5fafc757.tar.gz nova-4251bba3bd456f7ba1c7481bb84d839a5fafc757.tar.xz nova-4251bba3bd456f7ba1c7481bb84d839a5fafc757.zip |
Don't update API cell on get_nwinfo
Every call to get_instance_nw_info() updates an instance's info_cache.
The purpose of this is to make sure we're constantly healing the
info_cache table. However, this causes a lot of unneeded updates
traveling up to the API cell. Cells has its own periodic task that
heals all instance data.
Fixes bug 1180304
Change-Id: I07774712a6358999fd1fdd0f5a90c6f05e3d8d6e
Diffstat (limited to 'nova/tests')
-rw-r--r-- | nova/tests/cells/test_cells_messaging.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/tests/cells/test_cells_messaging.py b/nova/tests/cells/test_cells_messaging.py index 51a792975..1de39de1f 100644 --- a/nova/tests/cells/test_cells_messaging.py +++ b/nova/tests/cells/test_cells_messaging.py @@ -1033,8 +1033,7 @@ class CellsBroadcastMethodsTestCase(test.TestCase): expected_instance, update_cells=False) self.tgt_db_inst.instance_info_cache_update(self.ctxt, 'fake_uuid', - expected_info_cache, - update_cells=False) + expected_info_cache) self.mox.ReplayAll() self.src_msg_runner.instance_update_at_top(self.ctxt, fake_instance) @@ -1086,8 +1085,7 @@ class CellsBroadcastMethodsTestCase(test.TestCase): expected_instance, update_cells=False) self.tgt_db_inst.instance_info_cache_update(self.ctxt, 'fake_uuid', - expected_info_cache, - update_cells=False) + expected_info_cache) self.mox.ReplayAll() self.src_msg_runner.instance_update_at_top(self.ctxt, fake_instance) |