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/5797 /review. fuel-infra. org/gitweb? p=openstack/ nova.git; a=commitdiff; h=193735ca11d8d 55bb9b581b3ba4b de71f74a2ff9 ci/fuel- 6.1/2014. 2
Committed: https:/
Submitter: Roman Podoliaka
Branch: openstack-
commit 193735ca11d8d55 bb9b581b3ba4bde 71f74a2ff9
Author: Timofey Durakov <email address hidden>
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