Revision 1559e1e7
b/lib/client/gnt_instance.py | ||
---|---|---|
1322 | 1322 |
force=opts.force, |
1323 | 1323 |
wait_for_sync=opts.wait_for_sync, |
1324 | 1324 |
offline_inst=opts.offline_inst, |
1325 |
online_inst=opts.online_inst) |
|
1325 |
online_inst=opts.online_inst, |
|
1326 |
ignore_ipolicy=opts.ignore_ipolicy) |
|
1326 | 1327 |
|
1327 | 1328 |
# even if here we process the result, we allow submit only |
1328 | 1329 |
result = SubmitOrSend(op, opts) |
... | ... | |
1507 | 1508 |
[BACKEND_OPT, DISK_OPT, FORCE_OPT, HVOPTS_OPT, NET_OPT, SUBMIT_OPT, |
1508 | 1509 |
DISK_TEMPLATE_OPT, SINGLE_NODE_OPT, OS_OPT, FORCE_VARIANT_OPT, |
1509 | 1510 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT, OFFLINE_INST_OPT, |
1510 |
ONLINE_INST_OPT], |
|
1511 |
ONLINE_INST_OPT, IGNORE_IPOLICY_OPT],
|
|
1511 | 1512 |
"<instance>", "Alters the parameters of an instance"), |
1512 | 1513 |
"shutdown": ( |
1513 | 1514 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
b/lib/cmdlib.py | ||
---|---|---|
11788 | 11788 |
_CheckNodesFreeDiskPerVG(self, [self.op.remote_node], required) |
11789 | 11789 |
|
11790 | 11790 |
snode_info = self.cfg.GetNodeInfo(self.op.remote_node) |
11791 |
ipolicy = _CalculateGroupIPolicy(cluster, snode_info.group) |
|
11792 |
_CheckTargetNodeIPolicy(self, ipolicy, instance, snode_info, |
|
11793 |
ignore=self.op.ignore_ipolicy) |
|
11791 | 11794 |
if pnode_info.group != snode_info.group: |
11792 | 11795 |
self.LogWarning("The primary and secondary nodes are in two" |
11793 | 11796 |
" different node groups; the disk parameters" |
b/lib/opcodes.py | ||
---|---|---|
1359 | 1359 |
_PInstanceName, |
1360 | 1360 |
_PForce, |
1361 | 1361 |
_PForceVariant, |
1362 |
_PIgnoreIpolicy, |
|
1362 | 1363 |
# TODO: Use _TestNicDef |
1363 | 1364 |
("nics", ht.EmptyList, ht.TList, |
1364 | 1365 |
"List of NIC changes. Each item is of the form ``(op, settings)``." |
b/man/gnt-instance.rst | ||
---|---|---|
861 | 861 |
| [{-O|--os-parameters} *param*=*value*... ] |
862 | 862 |
| [--offline \| --online] |
863 | 863 |
| [--submit] |
864 |
| [--ignore-ipolicy] |
|
864 | 865 |
| {*instance*} |
865 | 866 |
|
866 | 867 |
Modifies the memory size, number of vcpus, ip address, MAC address |
... | ... | |
914 | 915 |
but not wait for its completion. The job ID will be shown so that it |
915 | 916 |
can be examined via **gnt-job info**. |
916 | 917 |
|
918 |
If ``--ignore-ipolicy`` is given any instance policy violations occuring |
|
919 |
during this operation are ignored. |
|
920 |
|
|
917 | 921 |
Most of the changes take effect at the next restart. If the instance is |
918 | 922 |
running, there is no effect on the instance. |
919 | 923 |
|
Also available in: Unified diff