Revision 5bbd3f7f lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
83 | 83 |
calls we can't raise an exception just because one one out of many |
84 | 84 |
failed, and therefore we use this class to encapsulate the result. |
85 | 85 |
|
86 |
@ivar data: the data payload, for successfull results, or None
|
|
86 |
@ivar data: the data payload, for successful results, or None |
|
87 | 87 |
@type failed: boolean |
88 | 88 |
@ivar failed: whether the operation failed at RPC level (not |
89 | 89 |
application level on the remote node) |
... | ... | |
161 | 161 |
list of nodes, will contact (in parallel) all nodes, and return a |
162 | 162 |
dict of results (key: node name, value: result). |
163 | 163 |
|
164 |
One current bug is that generic failure is still signalled by
|
|
164 |
One current bug is that generic failure is still signaled by |
|
165 | 165 |
'False' result, which is not good. This overloading of values can |
166 | 166 |
cause bugs. |
167 | 167 |
|
... | ... | |
220 | 220 |
@return: List of RPC results |
221 | 221 |
|
222 | 222 |
""" |
223 |
assert _http_manager, "RPC module not intialized" |
|
223 |
assert _http_manager, "RPC module not initialized"
|
|
224 | 224 |
|
225 | 225 |
_http_manager.ExecRequests(self.nc.values()) |
226 | 226 |
|
... | ... | |
269 | 269 |
@type instance: L{objects.Instance} |
270 | 270 |
@param instance: an Instance object |
271 | 271 |
@type hvp: dict or None |
272 |
@param hvp: a dictionary with overriden hypervisor parameters |
|
272 |
@param hvp: a dictionary with overridden hypervisor parameters
|
|
273 | 273 |
@type bep: dict or None |
274 |
@param bep: a dictionary with overriden backend parameters |
|
274 |
@param bep: a dictionary with overridden backend parameters
|
|
275 | 275 |
@rtype: dict |
276 | 276 |
@return: the instance dict, with the hvparams filled with the |
277 | 277 |
cluster defaults |
Also available in: Unified diff