Image flatten doesn't work
|Assignee:||Vlastimil Holer||% Done:|
|Category:||Drivers - Storage|
|Target version:||Release 5.4|
|Affected Versions:||OpenNebula 5.2|
Helo, I play a lot with qcow2 images, snapshotting and I was unable to flatten persistent image. In sunstone, it looks like everything ok, but physically image was not flatten. One cmd just remove snapshot info from image tab, thats all. Nothing in logs....
Like this flatten image can be attached to VM, but it attach it with latest snapshot, for ex. no. 9. So when you need to take another snapshot, one cmd try to make snapshot with no. 1, which already exists on disk and it is fail.
I also try to edit file /var/lib/one/remotes/datastore/fs/snap_flatten by adding -f option to mv cmd, but without success. I have to manually flatten image.
It looks like, that ds_mad doesn't support BRIDGE_LIST and try to execute it on frontend node itself.
DATASTORE 1 INFORMATION ID : 1 NAME : default USER : oneadmin GROUP : oneadmin CLUSTERS : 100 TYPE : IMAGE DS_MAD : fs TM_MAD : qcow2 BASE PATH : /var/lib/one//datastores/1 DISK_TYPE : FILE STATE : READY DATASTORE CAPACITY TOTAL: : 1023.9G FREE: : 395.1G USED: : 628.9G LIMIT: : - PERMISSIONS OWNER : um- GROUP : u-- OTHER : --- DATASTORE TEMPLATE BRIDGE_LIST="node1 node2" CLONE_TARGET="SYSTEM" DISK_TYPE="FILE" DS_MAD="fs" LN_TARGET="NONE" TM_MAD="qcow2" TYPE="IMAGE_DS"