From f235785a781c7488e903996fdefdeaf62b04dfe8 Mon Sep 17 00:00:00 2001 From: Roman Safronov Date: Mon, 20 Feb 2023 15:21:13 +0200 Subject: Allow float value when overriding downtime Live migration downtime is configured as an integer option while a default value is set to a float number. When a user tries to override the option with another float number he receives a ValueError. This patch changes the option to allow overriding with a float number. Change-Id: I955f4ec09c9a2fbaed61a82839ac15d3eef29ab0 --- tempest/config.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tempest') diff --git a/tempest/config.py b/tempest/config.py index 00b394eff..dfc0a8eb3 100644 --- a/tempest/config.py +++ b/tempest/config.py @@ -975,12 +975,12 @@ ValidationGroup = [ default='ecdsa', help='Type of key to use for ssh connections. ' 'Valid types are rsa, ecdsa'), - cfg.IntOpt('allowed_network_downtime', - default=5.0, - help="Allowed VM network connection downtime during live " - "migration, in seconds. " - "When the measured downtime exceeds this value, an " - "exception is raised."), + cfg.FloatOpt('allowed_network_downtime', + default=5.0, + help="Allowed VM network connection downtime during live " + "migration, in seconds. " + "When the measured downtime exceeds this value, an " + "exception is raised."), ] volume_group = cfg.OptGroup(name='volume', -- cgit v1.2.1