Merge branch 'devel-2.5'
authorGuido Trotter <ultrotter@google.com>
Thu, 20 Oct 2011 13:30:09 +0000 (14:30 +0100)
committerGuido Trotter <ultrotter@google.com>
Thu, 20 Oct 2011 13:30:22 +0000 (14:30 +0100)
* devel-2.5:
  Allow per-hypervisor optional files
  Add hypervisors ancillary files list
  xen: abstract a few hardcoded strings as constants

Conflicts:
lib/cmdlib.py
  - trivial

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

1  2 
lib/backend.py
lib/cmdlib.py
lib/hypervisor/hv_base.py
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_xen.py
test/ganeti.cmdlib_unittest.py

diff --cc lib/backend.py
Simple merge
diff --cc lib/cmdlib.py
@@@ -2155,10 -2169,10 +2150,10 @@@ class LUClusterVerifyGroup(LogicalUnit
        # Nodes missing file
        missing_file = expected_nodes - with_file
  
-       if filename in files_all_opt:
+       if filename in files_opt:
          # All or no nodes
          errorif(missing_file and missing_file != expected_nodes,
 -                cls.ECLUSTERFILECHECK, None,
 +                constants.CV_ECLUSTERFILECHECK, None,
                  "File %s is optional, but it must exist on all or no"
                  " nodes (not found on %s)",
                  filename, utils.CommaJoin(utils.NiceSort(missing_file)))
@@@ -3758,8 -3730,7 +3753,9 @@@ def _ComputeAncillaryFiles(cluster, red
      constants.SSH_KNOWN_HOSTS_FILE,
      constants.CONFD_HMAC_KEY,
      constants.CLUSTER_DOMAIN_SECRET_FILE,
 +    constants.SPICE_CERT_FILE,
 +    constants.SPICE_CACERT_FILE,
+     constants.RAPI_USERS_FILE,
      ])
  
    if not redist:
Simple merge
Simple merge
Simple merge
Simple merge