Revision 2928f08d

b/lib/cmdlib.py
2178 2178
          logging.error("Copy of file %s to node %s failed", fname, to_node)
2179 2179

  
2180 2180
    to_copy = []
2181
    if constants.HT_XEN_HVM in self.cfg.GetClusterInfo().enabled_hypervisors:
2181
    enabled_hypervisors = self.cfg.GetClusterInfo().enabled_hypervisors
2182
    if constants.HTS_USE_VNC.intersection(enabled_hypervisors):
2182 2183
      to_copy.append(constants.VNC_PASSWORD_FILE)
2184

  
2183 2185
    for fname in to_copy:
2184 2186
      result = self.rpc.call_upload_file([node], fname)
2185 2187
      if result[node].failed or not result[node]:
b/lib/constants.py
325 325
HT_KVM = "kvm"
326 326
HYPER_TYPES = frozenset([HT_XEN_PVM, HT_FAKE, HT_XEN_HVM, HT_KVM])
327 327
HTS_REQ_PORT = frozenset([HT_XEN_HVM, HT_KVM])
328
HTS_USE_VNC = frozenset([HT_XEN_HVM, HT_KVM])
328 329

  
329 330
HT_HVM_VNC_BASE_PORT = 5900
330 331
HT_HVM_DEFAULT_BOOT_ORDER = 'dc'

Also available in: Unified diff