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

Update failmigrate #113

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

atodorov-storpool
Copy link
Contributor

@atodorov-storpool atodorov-storpool commented Sep 17, 2016

It is obvious that I've totally missed the tm/failmigrate script when proposed the migrate_other function

Here are three commits:

  • tm/fs_lvm - besides the call of migrate_other() I think it is good idea to deactivate the LVM volumes enabled by the tm/fs_lvm/premigrate on DST_HOST
  • tm/ceph/failmigrate - same as for the above commit - I believe it is good to clean up the DST_HOST if the live-migration fails
  • tm/{qcow2,shared,ssh} - do migrate_other() when failmigrate

Kind Regards,
Anton Todorov

@jfontan jfontan self-assigned this Sep 23, 2016
@jfontan jfontan added this to the 5.2 milestone Sep 23, 2016
used code from OpenNebula#182 - do not remove the DST_PATH on the DST_HOST if the datastore template has `SHARED=YES`
@rsmontero rsmontero removed this from the 5.2 milestone Nov 20, 2017
@tinova tinova assigned rsmontero and unassigned jfontan Feb 9, 2018
@stale
Copy link

stale bot commented Mar 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team

@atodorov-storpool
Copy link
Contributor Author

Well IMO the issue is not completely resolved. IMO each core TM_MAD should have algo to call cleanup for other TM_MADs. Otherwise artefacts will be left on the (failed) destination.

@stale stale bot removed the Status: Abandoned label Mar 6, 2019
@xorel xorel added this to the Release 5.10 milestone Mar 14, 2019
@rsmontero rsmontero removed their assignment Mar 26, 2019
@rsmontero rsmontero requested a review from xorel March 26, 2019 09:55
@rsmontero
Copy link
Member

@atodorov-storpool Trying to understand the migrate_other, it is used to have a list of TM's in the DISK TM_MAD to support disks from different datastore types, but this is not supported. So I'm wondering if this and the migrate other can be remove, or if storpool driver is using this?

@atodorov-storpool
Copy link
Contributor Author

Hi @rsmontero

@atodorov-storpool Trying to understand the migrate_other, it is used to have a list of TM's in the DISK TM_MAD to support disks from different datastore types, but this is not supported. So I'm wondering if this and the migrate other can be remove, or if storpool driver is using this?

Can't get the unsupported part because this is how most[*] of the addon storage drivers are working with OpenNebula :-)
If I manage to drive you through an example case will help to understand the point. Let's have an OpenNebula installation with SYSTEM datastore TM_MAD qcow2 and an additional IMAGE datastore with TM_MAD storpool. And a VM could have a disk from the StorPool-backed datastore... When Instantiated on a host, the tm/storpool/ln (or clone if the image is non-persistent) is called to provide the symlink in the VM's home folder (on the qcow2-backed SYSTEM datastore) to the block device. So, on VM migrate the tm/qcow2/premigrate script is called. This script natively does not know how to deal with the storpool disk - here the migrate_other function helps by walking the VM disks and calling the tm/DISK[TM_MAD]/premigrate script that provides the storpool disk on the destination host. Same for postmigrate and failmigrate.

[*] AFAIK addon-linstor-un maintained by @kvaps and addon-3par maintained by @feldsam are benefiting from this functionality too.

p.s. There was a discussion and a fix for the SSH-backed System datastores to exclude the block devices from the blockcopy, but I can't find it at the moment.

@rsmontero rsmontero force-pushed the master branch 2 times, most recently from 339f9c9 to 1cf07c3 Compare January 16, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants