OP_ID = "OP_INSTANCE_CREATE"
OP_DSC_FIELD = "instance_name"
__slots__ = OpCode.__slots__ + [
- "instance_name", "os_type", "pnode",
- "disk_template", "snode", "mode",
+ "instance_name", "os_type", "force_variant",
+ "pnode", "disk_template", "snode", "mode",
"disks", "nics",
"src_node", "src_path", "start",
"wait_for_sync", "ip_check",
"""Reinstall an instance's OS."""
OP_ID = "OP_INSTANCE_REINSTALL"
OP_DSC_FIELD = "instance_name"
- __slots__ = OpCode.__slots__ + ["instance_name", "os_type"]
+ __slots__ = OpCode.__slots__ + ["instance_name", "os_type", "force_variant"]
class OpRemoveInstance(OpCode):
"""Remove an instance."""
OP_ID = "OP_INSTANCE_REMOVE"
OP_DSC_FIELD = "instance_name"
- __slots__ = OpCode.__slots__ + ["instance_name", "ignore_failures"]
+ __slots__ = OpCode.__slots__ + [
+ "instance_name",
+ "ignore_failures",
+ "shutdown_timeout",
+ ]
class OpRenameInstance(OpCode):
"""Shutdown an instance."""
OP_ID = "OP_INSTANCE_SHUTDOWN"
OP_DSC_FIELD = "instance_name"
- __slots__ = OpCode.__slots__ + ["instance_name"]
+ __slots__ = OpCode.__slots__ + ["instance_name", "timeout"]
class OpRebootInstance(OpCode):
OP_ID = "OP_INSTANCE_REBOOT"
OP_DSC_FIELD = "instance_name"
__slots__ = OpCode.__slots__ + [
- "instance_name", "reboot_type", "ignore_secondaries",
+ "instance_name", "reboot_type", "ignore_secondaries", "shutdown_timeout",
]
"""Failover an instance."""
OP_ID = "OP_INSTANCE_FAILOVER"
OP_DSC_FIELD = "instance_name"
- __slots__ = OpCode.__slots__ + ["instance_name", "ignore_consistency"]
+ __slots__ = OpCode.__slots__ + [
+ "instance_name", "ignore_consistency", "shutdown_timeout",
+ ]
class OpMigrateInstance(OpCode):
"""
OP_ID = "OP_INSTANCE_MOVE"
OP_DSC_FIELD = "instance_name"
- __slots__ = OpCode.__slots__ + ["instance_name", "target_node"]
+ __slots__ = OpCode.__slots__ + [
+ "instance_name", "target_node", "shutdown_timeout",
+ ]
class OpConnectConsole(OpCode):
"""Export an instance."""
OP_ID = "OP_BACKUP_EXPORT"
OP_DSC_FIELD = "instance_name"
- __slots__ = OpCode.__slots__ + ["instance_name", "target_node", "shutdown"]
+ __slots__ = OpCode.__slots__ + [
+ "instance_name", "target_node", "shutdown", "shutdown_timeout",
+ ]
class OpRemoveExport(OpCode):