Bug #5144
Image flatten doesn't work
Status: | Closed | Start date: | 05/08/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Vlastimil Holer | % Done: | 0% | |
Category: | Drivers - Storage | |||
Target version: | Release 5.4 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 5.2 |
Description
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.
DS info:
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"
Associated revisions
B #5144: fs/snap_* fixed locations, non-qcow2 revert, added exec_and_logs
History
#1 Updated by Kristian Feldsam about 4 years ago
Hello, I fixed it by extending ds_mad/fs driver. Pull request: https://github.com/OpenNebula/one/pull/298
#2 Updated by Kristian Feldsam about 4 years ago
- Assignee set to Jaime Melis
#3 Updated by Vlastimil Holer about 4 years ago
- Assignee changed from Jaime Melis to Vlastimil Holer
#4 Updated by Vlastimil Holer about 4 years ago
Following PR
https://github.com/OpenNebula/one/pull/312
introduces changes from PR above and some other fixes.
#5 Updated by Javi Fontan about 4 years ago
- Status changed from Pending to Closed
- Resolution set to fixed