Fixed nova-network dhcp-hostsfile update during live-migration
During live migration _post_live_migration and
post_live_migration_at_destination_method are executed
simultaneously, because second one is called over rpc.cast
In _post_live_migration method there was setup_network_on_host
call with teardown=True, which expects new host in instances
table db field. This update could be happened later, as it
executes on destination node in second method. To guarantee
execution order setup_network_on_host call, which cleans
dhcp-hostfile is moved to destination node.
Reviewed: https:/ /review. fuel-infra. org/8260 ci/fuel- 7.0/2015. 1.0
Submitter: mos-infra-ci <>
Branch: openstack-
Commit: 057e4171761445f 5295538c947d0ab 10b431ec49
Author: Timofey Durakov <email address hidden>
Date: Thu Jul 16 08:22:39 2015
Fixed nova-network dhcp-hostsfile update during live-migration
During live migration _post_live_ migration and migration_ at_destination_ method are executed migration method there was setup_network_ on_host on_host call, which cleans
post_live_
simultaneously, because second one is called over rpc.cast
In _post_live_
call with teardown=True, which expects new host in instances
table db field. This update could be happened later, as it
executes on destination node in second method. To guarantee
execution order setup_network_
dhcp-hostfile is moved to destination node.
Change-Id: I52bea4db7608ab cf73fa781d2c0aa f3eaeb2f468
Closes-Bug: #1391010
Upstream-Bug: #1444497