Revision fdf7f055 lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
269 | 269 |
def MigrateInstance(self, instance, target, live): |
270 | 270 |
"""Migrate an instance to a target node. |
271 | 271 |
|
272 |
Arguments: |
|
273 |
- instance: the name of the instance |
|
274 |
- target: the ip of the target node |
|
275 |
- live: whether to do live migration or not |
|
276 |
|
|
277 |
Returns: none, errors will be signaled by exception. |
|
278 |
|
|
279 | 272 |
The migration will not be attempted if the instance is not |
280 | 273 |
currently running. |
281 | 274 |
|
275 |
@type instance: string |
|
276 |
@param instance: instance name |
|
277 |
@type target: string |
|
278 |
@param target: ip address of the target node |
|
279 |
@type live: boolean |
|
280 |
@param live: perform a live migration |
|
281 |
|
|
282 | 282 |
""" |
283 | 283 |
if self.GetInstanceInfo(instance) is None: |
284 | 284 |
raise errors.HypervisorError("Instance not running, cannot migrate") |
Also available in: Unified diff