From f69b367e0431ecfed8da78fba0cab52954597e45 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Mon, 24 Oct 2011 18:02:33 +0200
Subject: [PATCH] rpc: Convert storage-related calls

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/build/rpc_definitions.py |  3 ++-
 lib/rpc.py                   | 30 ------------------------------
 2 files changed, 2 insertions(+), 31 deletions(-)

diff --git a/lib/build/rpc_definitions.py b/lib/build/rpc_definitions.py
index 17f61a276..b3f183e71 100644
--- a/lib/build/rpc_definitions.py
+++ b/lib/build/rpc_definitions.py
@@ -343,5 +343,6 @@ _MISC_CALLS = [
 
 CALLS = {
   "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS + _NODE_CALLS +
-    _FILE_STORAGE_CALLS + _MISC_CALLS + _INSTANCE_CALLS + _BLOCKDEV_CALLS),
+    _FILE_STORAGE_CALLS + _MISC_CALLS + _INSTANCE_CALLS + _BLOCKDEV_CALLS +
+    _STORAGE_CALLS),
   }
diff --git a/lib/rpc.py b/lib/rpc.py
index aef57078e..e4b8507f0 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -625,36 +625,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
   # Begin RPC calls
   #
 
-  @_RpcTimeout(_TMO_NORMAL)
-  def call_storage_list(self, node_list, su_name, su_args, name, fields):
-    """Get list of storage units.
-
-    This is a multi-node call.
-
-    """
-    return self._MultiNodeCall(node_list, "storage_list",
-                               [su_name, su_args, name, fields])
-
-  @_RpcTimeout(_TMO_NORMAL)
-  def call_storage_modify(self, node, su_name, su_args, name, changes):
-    """Modify a storage unit.
-
-    This is a single-node call.
-
-    """
-    return self._SingleNodeCall(node, "storage_modify",
-                                [su_name, su_args, name, changes])
-
-  @_RpcTimeout(_TMO_NORMAL)
-  def call_storage_execute(self, node, su_name, su_args, name, op):
-    """Executes an operation on a storage unit.
-
-    This is a single-node call.
-
-    """
-    return self._SingleNodeCall(node, "storage_execute",
-                                [su_name, su_args, name, op])
-
   @_RpcTimeout(_TMO_NORMAL)
   def call_instance_start(self, node, instance, hvp, bep, startup_paused):
     """Starts an instance.
-- 
GitLab