projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add cluster-init --no-etc-hosts parameter
[ganeti-local]
/
lib
/
opcodes.py
diff --git
a/lib/opcodes.py
b/lib/opcodes.py
index
dea9d62
..
f49bfb7
100644
(file)
--- a/
lib/opcodes.py
+++ b/
lib/opcodes.py
@@
-337,6
+337,17
@@
class OpSetNodeParams(OpCode):
"force",
"master_candidate",
"offline",
"force",
"master_candidate",
"offline",
+ "drained",
+ ]
+
+
+class OpPowercycleNode(OpCode):
+ """Tries to powercycle a node."""
+ OP_ID = "OP_NODE_POWERCYCLE"
+ OP_DSC_FIELD = "node_name"
+ __slots__ = [
+ "node_name",
+ "force",
]
# instance opcodes
]
# instance opcodes
@@
-381,7
+392,7
@@
class OpStartupInstance(OpCode):
"""Startup an instance."""
OP_ID = "OP_INSTANCE_STARTUP"
OP_DSC_FIELD = "instance_name"
"""Startup an instance."""
OP_ID = "OP_INSTANCE_STARTUP"
OP_DSC_FIELD = "instance_name"
- __slots__ = ["instance_name", "force", "extra_args"]
+ __slots__ = ["instance_name", "force", "hvparams", "beparams"]
class OpShutdownInstance(OpCode):
class OpShutdownInstance(OpCode):
@@
-395,8
+406,7
@@
class OpRebootInstance(OpCode):
"""Reboot an instance."""
OP_ID = "OP_INSTANCE_REBOOT"
OP_DSC_FIELD = "instance_name"
"""Reboot an instance."""
OP_ID = "OP_INSTANCE_REBOOT"
OP_DSC_FIELD = "instance_name"
- __slots__ = ["instance_name", "reboot_type", "extra_args",
- "ignore_secondaries" ]
+ __slots__ = ["instance_name", "reboot_type", "ignore_secondaries" ]
class OpReplaceDisks(OpCode):
class OpReplaceDisks(OpCode):