Commit e337de97 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Add RPC calls for storage unit list

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent ac2d0fe4
......@@ -42,6 +42,7 @@ from ganeti import jstore
from ganeti import daemon
from ganeti import http
from ganeti import utils
from ganeti import storage
import ganeti.http.server
......@@ -354,6 +355,16 @@ class NodeHttpServer(http.server.HttpServer):
return backend.ListVolumeGroups()
# Storage --------------------------
def perspective_storage_list(params):
"""Get list of storage units.
(su_name, su_args, name, fields) = params
return storage.GetStorage(su_name, *su_args).List(name, fields)
# bridge --------------------------
......@@ -432,6 +432,15 @@ class RpcRunner(object):
return self._MultiNodeCall(node_list, "vg_list", [])
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])
def call_bridges_exist(self, node, bridges_list):
"""Checks if a node has all the bridges given.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment