-
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 #3233: Fix fs_lvm cleanup and offline migration issues #3201
Conversation
Signed-off-by: kvaps <kvapss@gmail.com>
Signed-off-by: kvaps <kvapss@gmail.com>
Signed-off-by: kvaps <kvapss@gmail.com>
Signed-off-by: kvaps <kvapss@gmail.com>
@xorel please review the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please also rebase to get rid of the conflict with the missing DD_BLOCK_SIZE?
Signed-off-by: kvaps <kvapss@gmail.com>
Done, I've also replaced DST_PATH check with internal Lines 47 to 51 in 515ee09
|
Signed-off-by: kvaps <kvapss@gmail.com>
3bd9400
to
d67c4b0
Compare
Signed-off-by: kvaps <kvapss@gmail.com>
Found the problem, when we executing Another words we should find |
That's good point. OK, I did some tests and realized that detecting the UNDEPLOYED using the LCM check So, I am afraid the only way how to detect if the And third point, it seems that we are completely missing the device mapper clanup, I think we shoul call This thing now bloated quite a lot and I am thinking starting again from scratch and tackle the issues one by one. |
You're right, this check is working fine for the
We don't have to, because it is automatically done by |
6949aa7
to
e429d1c
Compare
Signed-off-by: kvaps <kvapss@gmail.com>
OK, this seems to work better. One more detail, when testing I noticed that after offline migration the LV remains active on the SRC_HOST, I suppose the |
Indeed
When copying from the frontend (deploy)
|
Found another problem: undeploy --> deploy on selected datastore is not working |
Signed-off-by: kvaps <kvapss@gmail.com>
solved |
Note for reviewer:
This PR includes the next fixes:
Remove check for
/VM/TEMPLATE/DISK[DISK_ID=$DISK_ID]/TYPE
solves problem with offline and datastore migration. fixes fs_lvm offline migration does not work #2359 and LVM datastore migration does not work #3130. Add check forLCM_STATE
instead, fs_lvm driver now correctly disables logical volume during undeploy VM.Fix directory cleanup during termination undeployed VM for storage with the
BRIDGE_LIST
variable set. The expression for findingDS_SYS_ID
was never work ifDST_PATH
is directory. fixes Destroy VM isn't working with BRIDGE_LIST and UNDEPLOYED VMs #2981 (comment) and LVM cleanup executes on master instead storage node #2352Fix when node in
BRIDGE_LIST
have no activated lvm device, so zeroing is not working. Now it will always activate the device before zeroing.