Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virt_vm: fix migration timeout limit #1083

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huangwei
Copy link
Contributor

Upstream qemu recently changed the migration max downtime from 3600 to
2000 (see qemu commit 87c9cc1c). This caused an error if test script
calls save_to_file() defined in qemu_vm.py because MIGRATE_TIMEOUT is
passed to self.monitor.migrate_set_downtime(). The error reads
"Parameter 'downtime_limit' expects an integer in the range of 0 to
2000 seconds".

This patch addresses the problem by changing the downtime limit to 2000.

Signed-off-by: Wei Huang [email protected]

Upstream qemu recently changed the migration max downtime from 3600 to
2000 (see qemu commit 87c9cc1c). This caused an error if test script
calls save_to_file() defined in qemu_vm.py because MIGRATE_TIMEOUT is
passed to self.monitor.migrate_set_downtime(). The error reads
"Parameter 'downtime_limit' expects an integer in the range of 0 to
2000 seconds".

This patch addresses the problem by changing the downtime limit to 2000.

Signed-off-by: Wei Huang <[email protected]>
@@ -502,7 +502,7 @@ class BaseVM(object):
LOGIN_TIMEOUT = 10
LOGIN_WAIT_TIMEOUT = 240
COPY_FILES_TIMEOUT = 600
MIGRATE_TIMEOUT = 3600
MIGRATE_TIMEOUT = 2000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MIGRATE_TIMEOUT is used by API like def migrate() uses it for migration timeout.
so let us have MIGRATE_DOWNTIME = 2000 and set it for monitor.migrate_set_downtime(self.MIGRATE_DOWNTIME)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants