Revision 4e745e62
b/lib/cmdlib/common.py | ||
---|---|---|
717 | 717 |
@param devs: The root devices (not any of its children!) |
718 | 718 |
@param cfg: The config object |
719 | 719 |
@returns The annotated disk copies |
720 |
@see L{rpc.AnnotateDiskParams} |
|
720 |
@see L{rpc.node.AnnotateDiskParams}
|
|
721 | 721 |
|
722 | 722 |
""" |
723 | 723 |
return rpc.AnnotateDiskParams(devs, cfg.GetInstanceDiskParams(instance)) |
b/lib/rpc/node.py | ||
---|---|---|
615 | 615 |
|
616 | 616 |
|
617 | 617 |
def MakeLegacyNodeInfo(data, disk_template): |
618 |
"""Formats the data returned by L{rpc.RpcRunner.call_node_info}.
|
|
618 |
"""Formats the data returned by call_node_info.
|
|
619 | 619 |
|
620 | 620 |
Converts the data into a single dictionary. This is fine for most use cases, |
621 | 621 |
but some require information from more than one volume group or hypervisor. |
b/lib/rpc_defs.py | ||
---|---|---|
84 | 84 |
|
85 | 85 |
|
86 | 86 |
def _MigrationStatusPostProc(result): |
87 |
"""Post-processor for L{rpc.RpcRunner.call_instance_get_migration_status}.
|
|
87 |
"""Post-processor for L{RpcRunner.call_instance_get_migration_status}. |
|
88 | 88 |
|
89 | 89 |
""" |
90 | 90 |
if not result.fail_msg and result.payload is not None: |
... | ... | |
93 | 93 |
|
94 | 94 |
|
95 | 95 |
def _BlockdevFindPostProc(result): |
96 |
"""Post-processor for L{rpc.RpcRunner.call_blockdev_find}. |
|
96 |
"""Post-processor for L{rpc.node.RpcRunner.call_blockdev_find}.
|
|
97 | 97 |
|
98 | 98 |
""" |
99 | 99 |
if not result.fail_msg and result.payload is not None: |
... | ... | |
102 | 102 |
|
103 | 103 |
|
104 | 104 |
def _BlockdevGetMirrorStatusPostProc(result): |
105 |
"""Post-processor for L{rpc.RpcRunner.call_blockdev_getmirrorstatus}.
|
|
105 |
"""Post-processor for call_blockdev_getmirrorstatus.
|
|
106 | 106 |
|
107 | 107 |
""" |
108 | 108 |
if not result.fail_msg: |
... | ... | |
122 | 122 |
|
123 | 123 |
|
124 | 124 |
def _BlockdevGetMirrorStatusMultiPostProc(result): |
125 |
"""Post-processor for L{rpc.RpcRunner.call_blockdev_getmirrorstatus_multi}.
|
|
125 |
"""Post-processor for call_blockdev_getmirrorstatus_multi.
|
|
126 | 126 |
|
127 | 127 |
""" |
128 | 128 |
if not result.fail_msg: |
... | ... | |
145 | 145 |
|
146 | 146 |
|
147 | 147 |
def _OsGetPostProc(result): |
148 |
"""Post-processor for L{rpc.RpcRunner.call_os_get}. |
|
148 |
"""Post-processor for L{rpc.node.RpcRunner.call_os_get}.
|
|
149 | 149 |
|
150 | 150 |
""" |
151 | 151 |
if not result.fail_msg and isinstance(result.payload, dict): |
Also available in: Unified diff