Commit ed9c2202 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add an option --sequential



...which can be used to tell commands like gnt-group evacuate to
sequentially perform their action to keep load away from the cluster.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 593fd115
......@@ -196,6 +196,7 @@ __all__ = [
"IPOLICY_STD_SPECS_OPT",
"IPOLICY_DISK_TEMPLATES",
"IPOLICY_VCPU_RATIO",
"SEQUENTIAL_OPT",
"SPICE_CACERT_OPT",
"SPICE_CERT_OPT",
"SRC_DIR_OPT",
......@@ -843,6 +844,10 @@ PRINT_JOBID_OPT = cli_option("--print-jobid", dest="print_jobid",
help=("Additionally print the job as first line"
" on stdout (for scripting)."))
SEQUENTIAL_OPT = cli_option("--sequential", dest="sequential",
default=False, action="store_true",
help=("Execute all resulting jobs sequentially"))
SYNC_OPT = cli_option("--sync", dest="do_locking",
default=False, action="store_true",
help=("Grab locks while doing the queries"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment