There are volume-related rpc calls. This patch renames the ‘volume_list’
call to ‘lv_list’ to make more clear its purpose.
---
daemons/ganeti-noded | 2 +-
lib/cmdlib.py | 2 +-
lib/rpc.py | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/daemons/ganeti-noded b/daemons/ganeti-noded
index 3310171..c1dfa1f 100755
--- a/daemons/ganeti-noded
+++ b/daemons/ganeti-noded
@@ -340,7 +340,7 @@ class NodeHttpServer(http.server.HttpServer):
# volume --------------------------
@staticmethod
- def perspective_volume_list(params):
+ def perspective_lv_list(params):
"""Query the list of logical volumes in a given volume group.
"""
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 03660c1..263fee9 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -1335,7 +1335,7 @@ class LUVerifyDisks(NoHooksLU):
if not nv_dict:
return result
- node_lvs = self.rpc.call_volume_list(nodes, vg_name)
+ node_lvs = self.rpc.call_lv_list(nodes, vg_name)
to_act = set()
for node in nodes:
diff --git a/lib/rpc.py b/lib/rpc.py
index 220232c..b19c048 100644
--- a/lib/rpc.py
+++ b/lib/rpc.py
@@ -417,13 +417,13 @@ class RpcRunner(object):
# Begin RPC calls
#
- def call_volume_list(self, node_list, vg_name):
+ def call_lv_list(self, node_list, vg_name):
"""Gets the logical volumes present in a given volume group.
This is a multi-node call.
"""
- return self._MultiNodeCall(node_list, "volume_list", [vg_name])
+ return self._MultiNodeCall(node_list, "lv_list", [vg_name])
def call_vg_list(self, node_list):
"""Gets the volume group list.
--
1.6.3.3