Document OpNodeMigrate's result for RAPI
authorMichael Hanselmann <hansmi@google.com>
Fri, 11 Nov 2011 17:04:55 +0000 (18:04 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 15 Nov 2011 06:13:56 +0000 (07:13 +0100)
- Commit b7a1c8161 changed the LU to generate jobs
- Mention documented results in NEWS

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

NEWS
doc/rapi.rst
lib/opcodes.py

diff --git a/NEWS b/NEWS
index 8558660..1e1cd6c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -119,6 +119,8 @@ Misc
 
   - :doc:`RAPI <rapi>` documentation now has detailed parameter
     descriptions.
+  - Some opcode/job results are now also documented, see :doc:`RAPI
+    <rapi>`.
 
 - A lockset's internal lock is now also visible in lock monitor.
 - Log messages from job queue workers now contain information about the
index 97a1112..2135795 100644 (file)
@@ -1284,6 +1284,10 @@ The query arguments used up to and including Ganeti 2.4 are deprecated
 and should no longer be used. The new request format can be detected by
 the presence of the :pyeval:`rlib2._NODE_MIGRATE_REQV1` feature string.
 
+Job result:
+
+.. opcode_result:: OP_NODE_MIGRATE
+
 
 ``/2/nodes/[node_name]/role``
 +++++++++++++++++++++++++++++
index bd8964d..5601b84 100644 (file)
@@ -991,6 +991,7 @@ class OpNodeMigrate(OpCode):
     ("iallocator", None, ht.TMaybeString,
      "Iallocator for deciding the target node for shared-storage instances"),
     ]
+  OP_RESULT = TJobIdListOnly
 
 
 class OpNodeEvacuate(OpCode):