Revision 60152bbe lib/client/gnt_debug.py
b/lib/client/gnt_debug.py | ||
---|---|---|
173 | 173 |
tags=opts.tags, |
174 | 174 |
direction=opts.direction, |
175 | 175 |
allocator=opts.iallocator, |
176 |
reloc_mode=opts.reloc_mode,
|
|
176 |
evac_mode=opts.evac_mode,
|
|
177 | 177 |
target_groups=target_groups) |
178 | 178 |
result = SubmitOpCode(op, opts=opts) |
179 | 179 |
ToStdout("%s" % result) |
... | ... | |
582 | 582 |
help="Select number of VCPUs for the instance"), |
583 | 583 |
cli_option("--tags", default=None, |
584 | 584 |
help="Comma separated list of tags"), |
585 |
cli_option("--reloc-mode", default=constants.IALLOCATOR_MRELOC_ANY, |
|
586 |
choices=list(constants.IALLOCATOR_MRELOC_MODES), |
|
587 |
help=("Instance relocation mode (one of %s)" % |
|
588 |
utils.CommaJoin(constants.IALLOCATOR_MRELOC_MODES))), |
|
589 |
cli_option("--target-groups", help="Target groups for relocation"), |
|
585 |
cli_option("--evac-mode", default=constants.IALLOCATOR_NEVAC_ALL, |
|
586 |
choices=list(constants.IALLOCATOR_NEVAC_MODES), |
|
587 |
help=("Node evacuation mode (one of %s)" % |
|
588 |
utils.CommaJoin(constants.IALLOCATOR_NEVAC_MODES))), |
|
589 |
cli_option("--target-groups", help="Target groups for relocation", |
|
590 |
default=[], action="append"), |
|
590 | 591 |
DRY_RUN_OPT, PRIORITY_OPT, |
591 | 592 |
], |
592 | 593 |
"{opts...} <instance>", "Executes a TestAllocator OpCode"), |
Also available in: Unified diff