ossobv / proxmove

Migrate virtual machines between different Proxmox VE clusters with minimal downtime
270 stars 31 forks source link

get-size AssertionError: (None, 11811160064) #50

Open nem8 opened 11 months ago

nem8 commented 11 months ago

Trying to move a VM from one cluster to another using an intermediary NFS share.

VM is pretty standard with LVM disks.

Debug output:

proxmove origincluster destcluster node vg01 vmtomove -n -c proxmoverc.sample --no-verify-ssl --debug
2023-12-05 09:20:06,574: DEBUG: Parsing config file: proxmoverc.sample
2023-12-05 09:20:06,574: DEBUG: (api) Connecting to origincluster.retriever.no
2023-12-05 09:20:06,911: DEBUG: (api) 'destcluster' nodes: [snip]
2023-12-05 09:20:06,911: DEBUG: Sanity checks and preparation
2023-12-05 09:20:06,911: DEBUG: Checking VMs existence on source and destination
2023-12-05 09:20:06,936: DEBUG: Checking for problematic config in 1 VMs to move
2023-12-05 09:20:06,945: DEBUG: (exec) ssh root@origincluster /bin/true
2023-12-05 09:20:07,371: DEBUG: (exec) ssh root@origincluster ls -l /dev/vg01/vm-109-disk-0
Traceback (most recent call last):
  File "proxmove", line 2457, in <module>
    main()
  File "proxmove", line 2447, in main
    vmmover.prepare()
  File "proxmove", line 1947, in prepare
    self.prepare_vm_config()
  File "proxmove", line 2030, in prepare_vm_config
    self.prepare_vm_config_volumes(vm)
  File "proxmove", line 2039, in prepare_vm_config_volumes
    elif volume.get_size('guest') is None:
  File "proxmove", line 1730, in get_size
    assert size == size_property, (size, size_property)
AssertionError: (None, 11811160064)

Running the command manually:

# ls -l /dev/vg01/vm-109-disk-0
lrwxrwxrwx 1 root root 8 Dec  5 09:19 /dev/vg01/vm-109-disk-0 -> ../dm-22

I had turned the VM off, but then pve deactivates the lvm disks so i activated them manually for it to be able to check the size..

Not sure whats going on, i searched bugs and i got a hit on one that seemed like the same but was flagged for not fixing. Seems like it should support regular LVM disks tho?