cloudstack
cloudstack copied to clipboard
volume was locked forever as "migration in progress"
ISSUE TYPE
- Bug Report
COMPONENT NAME
VolumeManagemet,Migration
CLOUDSTACK VERSION
4.18.1
CONFIGURATION
KVM iscsi(GFS2,PCS)
SUMMARY
STEPS TO REPRODUCE
VM migration with storage migration between different clusters
EXPECTED RESULTS
VM runs on the destination KVM host
ACTUAL RESULTS
During the migration process, the source host encountered a problem and went down. After that, the volume that was being migrated is permanently locked as "Migrating" and cannot be operated on.
When I looked inside the ISCSI volume mounted on the destination host, I was able to confirm that the migration was completed.
I tried rewriting the SQL table, but the problem did not improve.
I would like to file this issue as a bug that occurs in certain situations.
@jhondoue , Exactly what did you update in the DB? Is the VM running on the target host?
I think you are on to something but just setting the Volume entry in the DB to the resulting state and path, should be good. Of course a host going down is going to result in some problems.
+1. Before force server restart