File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8105,7 +8105,7 @@ def _neutron_failed_migration_callback(event_name, instance):
8105
8105
LOG.error(msg, msg_args)
8106
8106
8107
8107
@staticmethod
8108
- def _get_neutron_events_for_live_migration(instance, migration ):
8108
+ def _get_neutron_events_for_live_migration(instance):
8109
8109
# We don't generate events if CONF.vif_plugging_timeout=0
8110
8110
# meaning that the operator disabled using them.
8111
8111
if CONF.vif_plugging_timeout:
@@ -8181,8 +8181,7 @@ class _BreakWaitForInstanceEvent(Exception):
8181
8181
"""
8182
8182
pass
8183
8183
8184
- events = self._get_neutron_events_for_live_migration(
8185
- instance, migration)
8184
+ events = self._get_neutron_events_for_live_migration(instance)
8186
8185
try:
8187
8186
if ('block_migration' in migrate_data and
8188
8187
migrate_data.block_migration):
Original file line number Diff line number Diff line change @@ -9280,7 +9280,7 @@ def test_get_neutron_events_for_live_migration_empty(self):
9280
9280
self.assertTrue(nw_info.return_value[0].is_hybrid_plug_enabled())
9281
9281
self.assertEqual(
9282
9282
[], self.compute._get_neutron_events_for_live_migration(
9283
- self.instance, migration ))
9283
+ self.instance))
9284
9284
9285
9285
# 2. no VIFs
9286
9286
self.flags(vif_plugging_timeout=300)
@@ -9289,7 +9289,7 @@ def test_get_neutron_events_for_live_migration_empty(self):
9289
9289
nw_info.return_value = network_model.NetworkInfo([])
9290
9290
self.assertEqual(
9291
9291
[], self.compute._get_neutron_events_for_live_migration(
9292
- self.instance, migration ))
9292
+ self.instance))
9293
9293
9294
9294
# 3. no plug time events
9295
9295
with mock.patch.object(self.instance, 'get_network_info') as nw_info:
@@ -9300,7 +9300,7 @@ def test_get_neutron_events_for_live_migration_empty(self):
9300
9300
self.assertFalse(nw_info.return_value[0].is_hybrid_plug_enabled())
9301
9301
self.assertEqual(
9302
9302
[], self.compute._get_neutron_events_for_live_migration(
9303
- self.instance, migration ))
9303
+ self.instance))
9304
9304
9305
9305
@mock.patch('nova.compute.rpcapi.ComputeAPI.pre_live_migration')
9306
9306
@mock.patch('nova.compute.manager.ComputeManager._post_live_migration')
You can’t perform that action at this time.
0 commit comments