Revision a9f33339 lib/cmdlib/cluster.py
b/lib/cmdlib/cluster.py | ||
---|---|---|
3023 | 3023 |
if self._exclusive_storage: |
3024 | 3024 |
node_verify_param[constants.NV_EXCLUSIVEPVS] = True |
3025 | 3025 |
|
3026 |
node_group_uuids = dict(map(lambda n: (n.name, n.group), |
|
3027 |
self.cfg.GetAllNodesInfo().values())) |
|
3028 |
groups_config = self.cfg.GetAllNodeGroupsInfoDict() |
|
3029 |
|
|
3026 | 3030 |
# At this point, we have the in-memory data structures complete, |
3027 | 3031 |
# except for the runtime information, which we'll gather next |
3028 | 3032 |
|
... | ... | |
3034 | 3038 |
all_nvinfo = self.rpc.call_node_verify(self.my_node_uuids, |
3035 | 3039 |
node_verify_param, |
3036 | 3040 |
self.cfg.GetClusterName(), |
3037 |
self.cfg.GetClusterInfo().hvparams) |
|
3041 |
self.cfg.GetClusterInfo().hvparams, |
|
3042 |
node_group_uuids, |
|
3043 |
groups_config) |
|
3038 | 3044 |
nvinfo_endtime = time.time() |
3039 | 3045 |
|
3040 | 3046 |
if self.extra_lv_nodes and vg_name is not None: |
... | ... | |
3042 | 3048 |
self.rpc.call_node_verify(self.extra_lv_nodes, |
3043 | 3049 |
{constants.NV_LVLIST: vg_name}, |
3044 | 3050 |
self.cfg.GetClusterName(), |
3045 |
self.cfg.GetClusterInfo().hvparams) |
|
3051 |
self.cfg.GetClusterInfo().hvparams, |
|
3052 |
node_group_uuids, |
|
3053 |
groups_config) |
|
3046 | 3054 |
else: |
3047 | 3055 |
extra_lv_nvinfo = {} |
3048 | 3056 |
|
... | ... | |
3077 | 3085 |
key = constants.NV_FILELIST |
3078 | 3086 |
vf_nvinfo.update(self.rpc.call_node_verify( |
3079 | 3087 |
additional_node_uuids, {key: node_verify_param[key]}, |
3080 |
self.cfg.GetClusterName(), self.cfg.GetClusterInfo().hvparams)) |
|
3088 |
self.cfg.GetClusterName(), self.cfg.GetClusterInfo().hvparams, |
|
3089 |
node_group_uuids, |
|
3090 |
groups_config)) |
|
3081 | 3091 |
else: |
3082 | 3092 |
vf_nvinfo = all_nvinfo |
3083 | 3093 |
vf_node_info = self.my_node_info.values() |
Also available in: Unified diff