Bug #5355

Can't migrate a VM between two fs_lvm system DS on the same host

Added by Florent Peyraud almost 4 years ago.

Status:PendingStart date:09/07/2017
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Drivers - Storage
Target version:-
Resolution: Pull request:
Affected Versions:OpenNebula 5.0, OpenNebula 5.2, OpenNebula 5.4

Description

Hi

Trying to migrate a VM between two fs_lvm system DS on the same host, I faced an issue preventing the migration to occur
Here are the logs corresponding to the failing try :

==> /var/log/one/56.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/fs_lvm/mv host2.af83.priv:/var/lib/one//datastores/0/56/disk.0 host2.af83.priv:/var/lib/one//datastores/106/56/disk.0 56 101

==> /var/log/one/oned.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][D]: Message received: LOG E 56 mv: Command "mv /var/lib/one/datastores/0/56/disk.0 /var/lib/one/datastores/106/56/disk.0" failed: mv: cannot move '/var/lib/one/datastores/0/56/disk.0' to '/var/lib/one/datastores/106/56/disk.0': No such file or directory

==> /var/log/one/56.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][E]: mv: Command "mv /var/lib/one/datastores/0/56/disk.0 /var/lib/one/datastores/106/56/disk.0" failed: mv: cannot move '/var/lib/one/datastores/0/56/disk.0' to '/var/lib/one/datastores/106/56/disk.0': No such file or directory

==> /var/log/one/oned.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][D]: Message received: LOG E 56 Error moving VM files to another System DS: /var/lib/one/datastores/0/56/disk.0 to /var/lib/one/datastores/106/56/disk.0 in host2.af83.priv

==> /var/log/one/56.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][E]: Error moving VM files to another System DS: /var/lib/one/datastores/0/56/disk.0 to /var/lib/one/datastores/106/56/disk.0 in host2.af83.priv

==> /var/log/one/oned.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][D]: Message received: LOG I 56 ExitCode: 1

==> /var/log/one/56.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][I]: ExitCode: 1

==> /var/log/one/oned.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][D]: Message received: TRANSFER FAILURE 56 Error moving VM files to another System DS: /var/lib/one/datastores/0/56/disk.0 to /var/lib/one/datastores/106/56/disk.0 in host2.af83.priv

==> /var/log/one/56.log <==
Tue Sep  5 09:53:50 2017 [Z0][TM][E]: Error executing image transfer script: Error moving VM files to another System DS: /var/lib/one/datastores/0/56/disk.0 to /var/lib/one/datastores/106/56/disk.0 in host2.af83.priv
Tue Sep  5 09:53:50 2017 [Z0][VM][I]: New LCM state is PROLOG_MIGRATE_POWEROFF_FAILURE

The image is not persistant

I think the MV operation is incorrect. It should probably be something like LVCREATE followed by a DD

Thanks for your investigation

Also available in: Atom PDF