hyperv: make sure to plug OVS VIFs after resize/migrate
Since the network_info wasn't getting passed to vmops.power_on
after a resize/cold migrate confirmation, the OVS VIFs weren't
getting plugged.
Change-Id: Ia9b7dc11cd74ba896a7254c16a95b7a834a28475
Closes-Bug: #1657424
(cherry picked from commit 568a682e5e
)
This commit is contained in:
parent
98733a6297
commit
14440efb22
@ -446,7 +446,7 @@ class MigrationOpsTestCase(test_base.HyperVBaseTestCase):
|
||||
mock_instance.name, get_image_vm_gen.return_value,
|
||||
block_device_info)
|
||||
self._migrationops._vmops.power_on.assert_called_once_with(
|
||||
mock_instance)
|
||||
mock_instance, network_info=mock.sentinel.network_info)
|
||||
|
||||
def test_finish_migration(self):
|
||||
self._check_finish_migration(disk_type=constants.DISK)
|
||||
|
@ -298,7 +298,7 @@ class MigrationOps(object):
|
||||
self._check_and_attach_config_drive(instance, vm_gen)
|
||||
self._vmops.set_boot_order(instance_name, vm_gen, block_device_info)
|
||||
if power_on:
|
||||
self._vmops.power_on(instance)
|
||||
self._vmops.power_on(instance, network_info=network_info)
|
||||
|
||||
def _check_ephemeral_disks(self, instance, ephemerals,
|
||||
resize_instance=False):
|
||||
|
Loading…
Reference in New Issue
Block a user