Revision 2a10865c lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
208 | 208 |
return c.getresult().get(node, False) |
209 | 209 |
|
210 | 210 |
|
211 |
def call_instance_migrate(node, instance, target, live): |
|
212 |
"""Migrate an instance. |
|
213 |
|
|
214 |
This is a single-node call. |
|
215 |
|
|
216 |
""" |
|
217 |
c = Client("instance_migrate", [instance.name, target, live]) |
|
218 |
c.connect(node) |
|
219 |
c.run() |
|
220 |
return c.getresult().get(node, False) |
|
221 |
|
|
222 |
|
|
211 | 223 |
def call_instance_reboot(node, instance, reboot_type, extra_args): |
212 | 224 |
"""Reboots an instance. |
213 | 225 |
|
Also available in: Unified diff