-
Notifications
You must be signed in to change notification settings - Fork 498
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
F #2352 #2359 #2981 #3130: Fix fs_lvm cleanup and offline migration issues #3163
Conversation
Signed-off-by: kvaps <[email protected]>
I've added explanatory notes to the PR, please review. |
Please do not merge yet. There is need enhancements:
|
Signed-off-by: kvaps <[email protected]>
Signed-off-by: kvaps <[email protected]>
OK, now ready for review |
Signed-off-by: kvaps <[email protected]>
Let's discuss the delete first:
|
Hi,
There is few potential problems:
Any way. Since I was wrong about 3st point and we have solution for 1st point, I will prepare another PR for solve another problems only. Thanks for review |
Closing this PR, due new one: #3201 |
Co-authored-by: Tino Vázquez <[email protected]>
Note for reviewer:
delete action changes:
Now it will take last VM's host, instead using host from BRIDGE_LIST
fixes LVM cleanup executes on master instead storage node #2352 (but I still thinking that it is should be fixed on API level)
Support for both path types, eg:
node:/var/lib/one//datastores/103/63/disk.0
andnode:/var/lib/one//datastores/103/63
. In second case it will zero and then remove all the lvm drives under VM directory recursively.fixes Destroy VM isn't working with BRIDGE_LIST and UNDEPLOYED VMs #2981 (comment) and Destroy VM isn't working with BRIDGE_LIST and UNDEPLOYED VMs #2981 (comment)
mv action changes:
Remove check for
/VM/TEMPLATE/DISK[DISK_ID=$DISK_ID]/TYPE
. I don't see big reason in it. Perhaps it was attempt to define different mechanism for moving old volumes as files, if system datastore was converted fromshared
tofs_lvm
. But I still thinking that it should also convert drive to use lvm instead file store during datastore migration. Besides, this check wasn't working anyway, this parameter always equal toFILE
.fixes fs_lvm offline migration does not work #2359 and LVM datastore migration does not work #3130
Added check for
/VM/LCM_STATE
. We don't need to executemv
on UNDEPLOY state.Signed-off-by: kvaps [email protected]