Revision cd04dfd2 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
2019 | 2019 |
def Verify(self): |
2020 | 2020 |
"""Verify the hypervisor. |
2021 | 2021 |
|
2022 |
Check that the binary exists. |
|
2022 |
Check that the required binaries exist. |
|
2023 |
|
|
2024 |
@return: Problem description if something is wrong, C{None} otherwise |
|
2023 | 2025 |
|
2024 | 2026 |
""" |
2025 | 2027 |
# FIXME: this is the global kvm version, but the actual version can be |
2026 | 2028 |
# customized as an hv parameter. we should use the nodegroup's default kvm |
2027 | 2029 |
# path parameter here. |
2028 | 2030 |
if not os.path.exists(constants.KVM_PATH): |
2029 |
return "The kvm binary ('%s') does not exist." % constants.KVM_PATH
|
|
2031 |
return "The KVM binary ('%s') does not exist" % constants.KVM_PATH
|
|
2030 | 2032 |
if not os.path.exists(constants.SOCAT_PATH): |
2031 |
return "The socat binary ('%s') does not exist." % constants.SOCAT_PATH |
|
2033 |
return "The socat binary ('%s') does not exist" % constants.SOCAT_PATH |
|
2034 |
return None |
|
2032 | 2035 |
|
2033 | 2036 |
@classmethod |
2034 | 2037 |
def CheckParameterSyntax(cls, hvparams): |
Also available in: Unified diff