diff options
author | Roman Safronov <rsafrono@redhat.com> | 2023-02-20 15:21:13 +0200 |
---|---|---|
committer | Roman Safronov <rsafrono@redhat.com> | 2023-02-20 18:17:56 +0200 |
commit | f235785a781c7488e903996fdefdeaf62b04dfe8 (patch) | |
tree | 35c684218f06cef691228c8ddf45749873c02991 /tempest | |
parent | ff2424e0bc0aca9bef8e7da216d6f9bdd74f7a9d (diff) | |
download | tempest-f235785a781c7488e903996fdefdeaf62b04dfe8.tar.gz |
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
Diffstat (limited to 'tempest')
-rw-r--r-- | tempest/config.py | 12 |
1 files changed, 6 insertions, 6 deletions
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', |