Revision 1f4b9d39 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2008, 2009, 2010, 2011, 2012 Google Inc.
4
# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
2034 2034
    @return: Problem description if something is wrong, C{None} otherwise
2035 2035

  
2036 2036
    """
2037
    # FIXME: this is the global kvm version, but the actual version can be
2038
    # customized as an hv parameter. we should use the nodegroup's default kvm
2039
    # path parameter here.
2037
    msgs = []
2038
    # FIXME: this is the global kvm binary, but the actual path can be
2039
    # customized as an hv parameter; we should use the nodegroup's
2040
    # default kvm path parameter here.
2040 2041
    if not os.path.exists(constants.KVM_PATH):
2041
      return "The KVM binary ('%s') does not exist" % constants.KVM_PATH
2042
      msgs.append("The KVM binary ('%s') does not exist" % constants.KVM_PATH)
2042 2043
    if not os.path.exists(constants.SOCAT_PATH):
2043
      return "The socat binary ('%s') does not exist" % constants.SOCAT_PATH
2044
    return None
2044
      msgs.append("The socat binary ('%s') does not exist" %
2045
                  constants.SOCAT_PATH)
2046

  
2047
    return self._FormatVerifyResults(msgs)
2045 2048

  
2046 2049
  @classmethod
2047 2050
  def CheckParameterSyntax(cls, hvparams):

Also available in: Unified diff