Revision 83f5d475
b/doc/design-2.3.rst | ||
---|---|---|
292 | 292 |
entire cache. In time, it is expected that LUs will be modified to not |
293 | 293 |
invalidate, if they are not expected to change the node's and/or |
294 | 294 |
instance's state (e.g. ``LUConnectConsole``, or |
295 |
``LUActivateInstanceDisks``).
|
|
295 |
``LUInstanceActivateDisks``).
|
|
296 | 296 |
|
297 | 297 |
Invalidation of a node's properties will also invalidate the capacity |
298 | 298 |
data associated with that node. |
b/lib/client/gnt_cluster.py | ||
---|---|---|
477 | 477 |
for iname in instances: |
478 | 478 |
if iname in missing: |
479 | 479 |
continue |
480 |
op = opcodes.OpActivateInstanceDisks(instance_name=iname)
|
|
480 |
op = opcodes.OpInstanceActivateDisks(instance_name=iname)
|
|
481 | 481 |
try: |
482 | 482 |
ToStdout("Activating disks for instance '%s'", iname) |
483 | 483 |
SubmitOpCode(op, opts=opts, cl=cl) |
b/lib/client/gnt_instance.py | ||
---|---|---|
589 | 589 |
|
590 | 590 |
""" |
591 | 591 |
instance_name = args[0] |
592 |
op = opcodes.OpActivateInstanceDisks(instance_name=instance_name,
|
|
592 |
op = opcodes.OpInstanceActivateDisks(instance_name=instance_name,
|
|
593 | 593 |
ignore_size=opts.ignore_size) |
594 | 594 |
disks_info = SubmitOrSend(op, opts) |
595 | 595 |
for host, iname, nname in disks_info: |
b/lib/cmdlib.py | ||
---|---|---|
4621 | 4621 |
return values |
4622 | 4622 |
|
4623 | 4623 |
|
4624 |
class LUActivateInstanceDisks(NoHooksLU):
|
|
4624 |
class LUInstanceActivateDisks(NoHooksLU):
|
|
4625 | 4625 |
"""Bring up an instance's disks. |
4626 | 4626 |
|
4627 | 4627 |
""" |
b/lib/opcodes.py | ||
---|---|---|
934 | 934 |
] |
935 | 935 |
|
936 | 936 |
|
937 |
class OpActivateInstanceDisks(OpCode):
|
|
937 |
class OpInstanceActivateDisks(OpCode):
|
|
938 | 938 |
"""Activate an instance's disks.""" |
939 | 939 |
OP_ID = "OP_INSTANCE_ACTIVATE_DISKS" |
940 | 940 |
OP_DSC_FIELD = "instance_name" |
b/lib/rapi/rlib2.py | ||
---|---|---|
1120 | 1120 |
instance_name = self.items[0] |
1121 | 1121 |
ignore_size = bool(self._checkIntVariable('ignore_size')) |
1122 | 1122 |
|
1123 |
op = opcodes.OpActivateInstanceDisks(instance_name=instance_name,
|
|
1123 |
op = opcodes.OpInstanceActivateDisks(instance_name=instance_name,
|
|
1124 | 1124 |
ignore_size=ignore_size) |
1125 | 1125 |
|
1126 | 1126 |
return baserlib.SubmitJob([op]) |
b/lib/watcher/__init__.py | ||
---|---|---|
406 | 406 |
"""Encapsulates the activation of all disks of an instance. |
407 | 407 |
|
408 | 408 |
""" |
409 |
op = opcodes.OpActivateInstanceDisks(instance_name=self.name)
|
|
409 |
op = opcodes.OpInstanceActivateDisks(instance_name=self.name)
|
|
410 | 410 |
cli.SubmitOpCode(op, cl=client) |
411 | 411 |
|
412 | 412 |
|
... | ... | |
595 | 595 |
utils.CommaJoin(offline_disk_instances)) |
596 | 596 |
# we submit only one job, and wait for it. not optimal, but spams |
597 | 597 |
# less the job queue |
598 |
job = [opcodes.OpActivateInstanceDisks(instance_name=name)
|
|
598 |
job = [opcodes.OpInstanceActivateDisks(instance_name=name)
|
|
599 | 599 |
for name in offline_disk_instances] |
600 | 600 |
job_id = cli.SendJob(job, cl=client) |
601 | 601 |
|
b/tools/burnin | ||
---|---|---|
847 | 847 |
for instance in self.instances: |
848 | 848 |
Log("instance %s", instance, indent=1) |
849 | 849 |
op_start = self.StartInstanceOp(instance) |
850 |
op_act = opcodes.OpActivateInstanceDisks(instance_name=instance)
|
|
850 |
op_act = opcodes.OpInstanceActivateDisks(instance_name=instance)
|
|
851 | 851 |
op_deact = opcodes.OpDeactivateInstanceDisks(instance_name=instance) |
852 | 852 |
op_stop = self.StopInstanceOp(instance) |
853 | 853 |
Log("activate disks when online", indent=2) |
Also available in: Unified diff