Fixes Nova live-migration post-copy

Live migration post-copy was not working because to be effective,
'live_migration_timeout_action' must be set to 'force_complete'.

Closes-bug: #1950894
Change-Id: I66984a12b89cb0ac2aeebeb393a6f6c026d865da
(cherry picked from commit d04cbcea20)
(cherry picked from commit e2daf7121f)
(cherry picked from commit 6fb73abcb8)
This commit is contained in:
Erlon R. Cruz 2021-11-26 15:33:02 -03:00
parent edf5ff9b0e
commit 152e19debd
3 changed files with 8 additions and 3 deletions

View File

@ -147,14 +147,17 @@ options:
type: boolean
default: False
description: |
If live-migration is enabled, this option allows Nova to switch an on-
going live migration to post-copy mode.
If live-migration is enabled, this option allows Nova to switch an
on-going live migration to post-copy mode. The switch will happen if the
migration reaches 'live-migration-completion-timeout'. This supersedes
'live-migration-permit-auto-converge'.
live-migration-permit-auto-converge:
type: boolean
default: False
description: |
If live-migration is enabled, this option allows Nova to throttle down
CPU when an on-going live migration is slow.
CPU when an on-going live migration is slow. This is superseded by
'live-migration-permit-post-copy'.
authorized-keys-path:
type: string
default: '{homedir}/.ssh/authorized_keys'

View File

@ -295,6 +295,7 @@ live_migration_downtime_delay = {{ live_migration_downtime_delay }}
{% endif -%}
{% if live_migration_permit_post_copy -%}
live_migration_permit_post_copy = {{ live_migration_permit_post_copy }}
live_migration_timeout_action = force_complete
{% endif -%}
{% if live_migration_permit_auto_converge -%}
live_migration_permit_auto_converge = {{ live_migration_permit_auto_converge }}

View File

@ -302,6 +302,7 @@ live_migration_downtime_delay = {{ live_migration_downtime_delay }}
{% endif -%}
{% if live_migration_permit_post_copy -%}
live_migration_permit_post_copy = {{ live_migration_permit_post_copy }}
live_migration_timeout_action = force_complete
{% endif -%}
{% if live_migration_permit_auto_converge -%}
live_migration_permit_auto_converge = {{ live_migration_permit_auto_converge }}