Revision d271c6fd
b/lib/hypervisor/hv_base.py | ||
---|---|---|
101 | 101 |
- a function to check for parameter validity on the remote node, |
102 | 102 |
in the L{ValidateParameters} function |
103 | 103 |
- an error message for the above function |
104 |
@type CAN_MIGRATE: boolean |
|
105 |
@cvar CAN_MIGRATE: whether this hypervisor can do migration (either |
|
106 |
live or non-live) |
|
104 | 107 |
|
105 | 108 |
""" |
106 | 109 |
PARAMETERS = {} |
107 | 110 |
ANCILLARY_FILES = [] |
111 |
CAN_MIGRATE = False |
|
108 | 112 |
|
109 | 113 |
def __init__(self): |
110 | 114 |
pass |
b/lib/hypervisor/hv_fake.py | ||
---|---|---|
40 | 40 |
a real virtualisation software installed. |
41 | 41 |
|
42 | 42 |
""" |
43 |
CAN_MIGRATE = True |
|
44 |
|
|
43 | 45 |
_ROOT_DIR = constants.RUN_DIR + "/ganeti-fake-hypervisor" |
44 | 46 |
|
45 | 47 |
def __init__(self): |
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
44 | 44 |
|
45 | 45 |
class KVMHypervisor(hv_base.BaseHypervisor): |
46 | 46 |
"""KVM hypervisor interface""" |
47 |
CAN_MIGRATE = True |
|
47 | 48 |
|
48 | 49 |
_ROOT_DIR = constants.RUN_GANETI_DIR + "/kvm-hypervisor" |
49 | 50 |
_PIDS_DIR = _ROOT_DIR + "/pid" # contains live instances pids |
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
39 | 39 |
all the functionality that is identical for both. |
40 | 40 |
|
41 | 41 |
""" |
42 |
CAN_MIGRATE = True |
|
42 | 43 |
REBOOT_RETRY_COUNT = 60 |
43 | 44 |
REBOOT_RETRY_INTERVAL = 10 |
44 | 45 |
|
Also available in: Unified diff