Revision a0add446 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
5913 | 5913 |
self.name = name |
5914 | 5914 |
self.mem_size = self.disks = self.disk_template = None |
5915 | 5915 |
self.os = self.tags = self.nics = self.vcpus = None |
5916 |
self.hypervisor = None |
|
5916 | 5917 |
self.relocate_from = None |
5917 | 5918 |
# computed fields |
5918 | 5919 |
self.required_nodes = None |
... | ... | |
5960 | 5961 |
node_list = cfg.GetNodeList() |
5961 | 5962 |
|
5962 | 5963 |
if self.mode == constants.IALLOCATOR_MODE_ALLOC: |
5963 |
hypervisor = self.hypervisor |
|
5964 |
hypervisor_name = self.hypervisor
|
|
5964 | 5965 |
elif self.mode == constants.IALLOCATOR_MODE_RELOC: |
5965 |
hypervisor = cfg.GetInstanceInfo(self.name).hypervisor |
|
5966 |
hypervisor_name = cfg.GetInstanceInfo(self.name).hypervisor
|
|
5966 | 5967 |
|
5967 | 5968 |
node_data = self.lu.rpc.call_node_info(node_list, cfg.GetVGName(), |
5968 |
hypervisor) |
|
5969 |
hypervisor_name)
|
|
5969 | 5970 |
node_iinfo = self.lu.rpc.call_all_instances_info(node_list, |
5970 | 5971 |
cluster_info.enabled_hypervisors) |
5971 | 5972 |
for nname in node_list: |
Also available in: Unified diff