Revision bc0a2284 lib/backend.py
b/lib/backend.py | ||
---|---|---|
1789 | 1789 |
_Fail("Failed to finalize migration on the target node: %s", err, exc=True) |
1790 | 1790 |
|
1791 | 1791 |
|
1792 |
def MigrateInstance(instance, target, live): |
|
1792 |
def MigrateInstance(cluster_name, instance, target, live):
|
|
1793 | 1793 |
"""Migrates an instance to another node. |
1794 | 1794 |
|
1795 |
@type cluster_name: string |
|
1796 |
@param cluster_name: name of the cluster |
|
1795 | 1797 |
@type instance: L{objects.Instance} |
1796 | 1798 |
@param instance: the instance definition |
1797 | 1799 |
@type target: string |
... | ... | |
1805 | 1807 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
1806 | 1808 |
|
1807 | 1809 |
try: |
1808 |
hyper.MigrateInstance(instance, target, live) |
|
1810 |
hyper.MigrateInstance(cluster_name, instance, target, live)
|
|
1809 | 1811 |
except errors.HypervisorError, err: |
1810 | 1812 |
_Fail("Failed to migrate instance: %s", err, exc=True) |
1811 | 1813 |
|
Also available in: Unified diff