Revision a82a94e1 lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
459 | 459 |
|
460 | 460 |
op = opcodes.OpInstanceRemove(instance_name=instance_name, |
461 | 461 |
ignore_failures=opts.ignore_failures, |
462 |
shutdown_timeout=opts.shutdown_timeout) |
|
462 |
shutdown_timeout=opts.shutdown_timeout, |
|
463 |
keep_disks=opts.keep_disks) |
|
463 | 464 |
SubmitOrSend(op, opts, cl=cl) |
464 | 465 |
return 0 |
465 | 466 |
|
... | ... | |
1372 | 1373 |
disks=disks, |
1373 | 1374 |
hotplug=opts.hotplug, |
1374 | 1375 |
hotplug_if_possible=opts.hotplug_if_possible, |
1376 |
keep_disks=opts.keep_disks, |
|
1375 | 1377 |
disk_template=opts.disk_template, |
1376 | 1378 |
remote_node=opts.node, |
1377 | 1379 |
pnode=opts.new_primary_node, |
... | ... | |
1559 | 1561 |
"remove": ( |
1560 | 1562 |
RemoveInstance, ARGS_ONE_INSTANCE, |
1561 | 1563 |
[FORCE_OPT, SHUTDOWN_TIMEOUT_OPT, IGNORE_FAILURES_OPT, SUBMIT_OPT, |
1562 |
DRY_RUN_OPT, PRIORITY_OPT], |
|
1564 |
DRY_RUN_OPT, PRIORITY_OPT, KEEPDISKS_OPT],
|
|
1563 | 1565 |
"[-f] <instance>", "Shuts down the instance and removes it"), |
1564 | 1566 |
"rename": ( |
1565 | 1567 |
RenameInstance, |
... | ... | |
1580 | 1582 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT, OFFLINE_INST_OPT, |
1581 | 1583 |
ONLINE_INST_OPT, IGNORE_IPOLICY_OPT, RUNTIME_MEM_OPT, |
1582 | 1584 |
NOCONFLICTSCHECK_OPT, NEW_PRIMARY_OPT, HOTPLUG_OPT, |
1583 |
HOTPLUG_IF_POSSIBLE_OPT], |
|
1585 |
HOTPLUG_IF_POSSIBLE_OPT, KEEPDISKS_OPT],
|
|
1584 | 1586 |
"<instance>", "Alters the parameters of an instance"), |
1585 | 1587 |
"shutdown": ( |
1586 | 1588 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
Also available in: Unified diff