snap_create for combination of qcow2 and ssh TM

Hello,

i’ve started using the offline disk snapshots on ONE 4.14.2 and i’ve encountered some troubles. My image datastore uses qcow2 TM driver. However my system datastores use SSH TM driver. When I wanted to create a snapshot, it always failed because it was trying to execute ‘readlink’ on the ONE frontend where the image of the VM was not available.

I had to bypass it by modifying the qcow2 TM driver - the change is somewhere around line 79 - just to make readlink execute on the remote host (addition of the backslash):
PREVIOUS_SNAP=$(readlink $SYSTEM_DS_DISK_PATH)

Now I can both create and revert snapshots.

Is this a bug or have I done something wrong?

Hi,

It may be a bug. Please open a ticket at http://dev.opennebula.org with the description and a link to this thread, this way it won’t get buried in the forum.

Thanks.

here’s the ticket: http://dev.opennebula.org/issues/4276
I’ve made a pull request with fix as well.

1 Like