Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live migrating a VM via this API causes the VM to be stopped then started #115

Open
pgporada opened this issue Apr 22, 2021 · 0 comments
Open

Comments

@pgporada
Copy link
Contributor

pgporada commented Apr 22, 2021

Hi,

I just started using the latest proxmox ve, terraform-provider-proxmox, and this API as a result. In the proxmox web ui I am able to live migrate a VM from one host to another seamlessly. I don't believe this to be an issue with the terraform-provider-go because I didn't detect a specific shutdown message in the terraform debug output leading me to post here.

The proxmox web ui shows the following log:

()
2021-04-22 01:02:09 starting migration of VM 101 to node 'pve3' (10.1.0.203)
2021-04-22 01:02:10 starting VM 101 on remote node 'pve3'
2021-04-22 01:02:11 start remote tunnel
2021-04-22 01:02:12 ssh tunnel ver 1
2021-04-22 01:02:12 starting online/live migration on unix:/run/qemu-server/101.migrate
2021-04-22 01:02:12 set migration_caps
2021-04-22 01:02:12 migration speed limit: 8589934592 B/s
2021-04-22 01:02:12 migration downtime limit: 100 ms
2021-04-22 01:02:12 migration cachesize: 67108864 B
2021-04-22 01:02:12 set migration parameters
2021-04-22 01:02:12 start migrate command to unix:/run/qemu-server/101.migrate
2021-04-22 01:02:13 migration status: active (transferred 294227312, remaining 155041792), total 554508288)
2021-04-22 01:02:13 migration xbzrle cachesize: 67108864 transferred 0 pages 0 cachemiss 0 overflow 0
2021-04-22 01:02:14 migration speed: 256.00 MB/s - downtime 57 ms
2021-04-22 01:02:14 migration status: completed
2021-04-22 01:02:17 migration finished successfully (duration 00:00:08)
TASK OK

proxmox-live-migrate-web-ui

When I have terraform-provider-go perform that same function this text (which I expected to see) appears. However...

$ terraform apply
proxmox_vm_qemu.le-clone[0]: Refreshing state... [id=pve1/qemu/101]

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # proxmox_vm_qemu.le-clone[0] will be updated in-place
  ~ resource "proxmox_vm_qemu" "le-clone" {
        id                     = "pve1/qemu/101"
        name                   = "le-clone-0"
      ~ target_node            = "pve1" -> "pve2"
        # (32 unchanged attributes hidden)


        # (2 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

proxmox-api-migrate

Attached is a terraform-provider-go trace log from my vagrant cluster that shows all the HTTP POST/GETs. I can see that the migration is correctly being called with online=1.
api.log

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant