Preload the string-escape code in noded
[ganeti-local] / lib / opcodes.py
index 288f2e5..85ec445 100644 (file)
@@ -941,7 +941,8 @@ class OpInstanceDeactivateDisks(OpCode):
   """Deactivate an instance's disks."""
   OP_DSC_FIELD = "instance_name"
   OP_PARAMS = [
-    _PInstanceName
+    _PInstanceName,
+    _PForce,
     ]
 
 
@@ -951,6 +952,7 @@ class OpInstanceRecreateDisks(OpCode):
   OP_PARAMS = [
     _PInstanceName,
     ("disks", ht.EmptyList, ht.TListOf(ht.TPositiveInt)),
+    ("nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString)),
     ]
 
 
@@ -968,6 +970,7 @@ class OpInstanceQueryData(OpCode):
   OP_PARAMS = [
     ("instances", ht.EmptyList, ht.TListOf(ht.TNonEmptyString)),
     ("static", False, ht.TBool),
+    ("use_locking", False, ht.TBool),
     ]
 
 
@@ -986,6 +989,7 @@ class OpInstanceSetParams(OpCode):
     ("os_name", None, ht.TMaybeString),
     ("force_variant", False, ht.TBool),
     ("osparams", None, ht.TMaybeDict),
+    ("wait_for_sync", True, ht.TBool),
     ]