Revision a52ba89d scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
1332 | 1332 |
|
1333 | 1333 |
# options used in more than one cmd |
1334 | 1334 |
node_opt = cli_option("-n", "--node", dest="node", help="Target node", |
1335 |
metavar="<node>") |
|
1335 |
metavar="<node>", |
|
1336 |
completion_suggest=OPT_COMPL_ONE_NODE) |
|
1336 | 1337 |
|
1337 | 1338 |
os_opt = cli_option("-o", "--os-type", dest="os", help="What OS to run", |
1338 |
metavar="<os>") |
|
1339 |
metavar="<os>", |
|
1340 |
completion_suggest=OPT_COMPL_ONE_OS) |
|
1339 | 1341 |
|
1340 | 1342 |
# multi-instance selection options |
1341 | 1343 |
m_force_multi = cli_option("--force-multiple", dest="force_multi", |
... | ... | |
1409 | 1411 |
choices=list(constants.FILE_DRIVER)), |
1410 | 1412 |
cli_option("-I", "--iallocator", metavar="<NAME>", |
1411 | 1413 |
help="Select nodes for the instance automatically using the" |
1412 |
" <NAME> iallocator plugin", default=None, type="string"), |
|
1414 |
" <NAME> iallocator plugin", default=None, type="string", |
|
1415 |
completion_suggest=OPT_COMPL_ONE_IALLOCATOR), |
|
1413 | 1416 |
cli_option("-H", "--hypervisor", dest="hypervisor", |
1414 | 1417 |
help="Hypervisor and hypervisor options, in the format" |
1415 | 1418 |
" hypervisor:option=value,option=value,...", default=None, |
... | ... | |
1467 | 1470 |
[DEBUG_OPT, FORCE_OPT, SUBMIT_OPT, |
1468 | 1471 |
cli_option("-n", "--new-node", dest="target_node", |
1469 | 1472 |
help="Destinattion node", metavar="NODE", |
1470 |
default=None), |
|
1473 |
default=None, |
|
1474 |
completion_suggest=OPT_COMPL_ONE_NODE), |
|
1471 | 1475 |
], |
1472 | 1476 |
"[-f] <instance>", |
1473 | 1477 |
"Move instance to an arbitrary node" |
... | ... | |
1531 | 1535 |
cli_option("-n", "--new-secondary", dest="new_secondary", |
1532 | 1536 |
help=("New secondary node (for secondary" |
1533 | 1537 |
" node change)"), metavar="NODE", |
1534 |
default=None), |
|
1538 |
default=None, |
|
1539 |
completion_suggest=OPT_COMPL_ONE_NODE), |
|
1535 | 1540 |
cli_option("-p", "--on-primary", dest="on_primary", |
1536 | 1541 |
default=False, action="store_true", |
1537 | 1542 |
help=("Replace the disk(s) on the primary" |
... | ... | |
1553 | 1558 |
" automatically using the" |
1554 | 1559 |
" <NAME> iallocator plugin (enables" |
1555 | 1560 |
" secondary node replacement)", |
1556 |
default=None, type="string"), |
|
1561 |
default=None, type="string", |
|
1562 |
completion_suggest=OPT_COMPL_ONE_IALLOCATOR), |
|
1557 | 1563 |
SUBMIT_OPT, |
1558 | 1564 |
], |
1559 | 1565 |
"[-s|-p|-n NODE|-I NAME] <instance>", |
... | ... | |
1601 | 1607 |
cli_option("-t", "--type", dest="reboot_type", |
1602 | 1608 |
help="Type of reboot: soft/hard/full", |
1603 | 1609 |
default=constants.INSTANCE_REBOOT_HARD, |
1604 |
type="string", metavar="<REBOOT>"), |
|
1610 |
metavar="<REBOOT>", |
|
1611 |
choices=list(constants.REBOOT_TYPES)), |
|
1605 | 1612 |
cli_option("--ignore-secondaries", dest="ignore_secondaries", |
1606 | 1613 |
default=False, action="store_true", |
1607 | 1614 |
help="Ignore errors from secondaries"), |
Also available in: Unified diff