api.vm.migrate
¶
/vm/(hostname_or_uuid)/migrate¶
-
api.vm.migrate.views.
vm_migrate
(*args, **kwargs)¶ Migrate (
PUT
) server to another compute node and/or disks to another storage.Note
A dummy (DB only) slave server is created during the migration process to reserve the same amount of resources on target compute node in server’s datacenter.
-
PUT
/vm/
(hostname_or_uuid)/migrate
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname_or_uuid (string) – required - Server hostname or uuid
- data.node (string) – Target compute node hostname
- data.root_zpool (string) – New zpool for the VM zone or OS zone including data disk
- data.disk_zpools (object) – New zpools for VM’s disks (
{disk_id: zpool}
) - data.live (boolean) – Whether to perform live migration [KVM only, EXPERIMENTAL] (default: false)
Status Codes: - 200 OK – SUCCESS
- 201 Created – PENDING
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – VM not found
- 409 Conflict – VM has pending tasks
- 423 Locked – Node is not operational / VM is not stopped or running / VM is locked or has slave VMs
- 424 Failed Dependency – Cannot import required image
- 428 – VM definition has changed
es set /vm/example.cust.erigones.com/migrate -node node99.erigones.com
{ "url": "https://my.erigones.com/api/vm/example.cust.erigones.com/migrate/", "status": 200, "method": "PUT", "text": { "status": "SUCCESS", "result": { "returncode": 0, "message": "Successfully migrated VM example.cust.erigones.com" }, "task_id": "0-da1343e4-6010-4939-347d" } }
-
/vm/(hostname_or_uuid)/migrate/dc¶
-
api.vm.migrate.views.
vm_dc
(*args, **kwargs)¶ Migrate (
PUT
) server to another datacenter.Warning
EXPERIMENTAL API function.
-
PUT
/vm/
(hostname_or_uuid)/migrate/dc
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname_or_uuid (string) – required - Server hostname or uuid
- data.target_dc (string) – Target datacenter
Status Codes: - 200 OK – SUCCESS
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – VM not found
- 409 Conflict – VM has pending tasks
- 423 Locked – Node is not operational / VM is not stopped, running or notcreated / VM is locked or has slave VMs
- 428 – VM definition has changed
-