Add minimum value in max_concurrent_live_migrations

Add minimum value 0 in the max_concurrent_live_migrations option.

Change-Id: I52ead0154e311a0ebdfd6d7413704fa350020587
This commit is contained in:
Takashi NATSUME
2019-03-28 11:13:38 +09:00
parent 03322bb517
commit 37c42c97e2
4 changed files with 12 additions and 23 deletions

View File

@@ -621,9 +621,9 @@ Possible Values:
* 0 : treated as unlimited.
* Any positive integer representing maximum concurrent builds.
"""),
# TODO(sfinucan): Add min parameter
cfg.IntOpt('max_concurrent_live_migrations',
default=1,
min=0,
help="""
Maximum number of live migrations to run concurrently. This limit is enforced
to avoid outbound live migrations overwhelming the host/network and causing
@@ -633,7 +633,6 @@ that doing so is safe and stable in your environment.
Possible values:
* 0 : treated as unlimited.
* Negative value defaults to 0.
* Any positive integer representing maximum number of live migrations
to run concurrently.
"""),