-
Notifications
You must be signed in to change notification settings - Fork 496
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
When creating qemu-(kvm) disk-snapshots and removing them an obsolete link (ln -s) will not be removed #6247
Comments
What i did to resolve:
|
Are you doing this flatten "outside" OpenNebula right? We are implementing #6265 to short backing chains (i.e. delete snapshots) for live and poff VMs. I'm closing this one as invalid |
No - all operations did happen INSIDE OpenNebula (=> SUNSTONE) ! As i described - invalid links will remain on the storage layer - i did describe the steps i did to make the cleanup as workaround. Normally OpenNebula / sunstone should do that - or better: set the corresponding links (ln -s) in a proper way. |
How did you perform the flatten operation? |
Insite sunstone gui (detached vm disk, storage/Images/Snapshots) There you have several options in general: Flatten, Revert, Delete If you wish i could create a document (PDF), which will reflect this situation |
No problem, now I think understand the procedure. However, if you detach the image and then flatten it. It should not be any disk.0 in the VM folder, or did you reattach it? After reattaching the links should be recreated |
i did re-create this case scenario with another vm. check-out the attached PDF. |
THANKS a lot for the details. But as you said in the PDF disk.0 is a dead link not actually used by the VM. Agree this should be removed with the detach but it is not causing any trouble right? i.e. this is a cosmetic fix, as disk.0 has no meaning for OpenNebula at that point. Also as mentioned earlier #6265 should allow you to do this without the detach / attach (and hence using the disk.0 reference) |
Very welcome & yes, it's more a cosmetic one, which - as far i saw - did not cause operation issues. |
Description
When creating qemu-(kvm) disk-snapshots and removing them an obsolete link (ln -s) will not be removed.
To Reproduce (all steps done through sunstone gui)
lrwxrwxrwx 1 oneadmin oneadmin 68 Jun 21 17:08 disk.0 -> /var/lib/one//datastores/xxx/yyy.snap/2
ls: cannot access '/var/lib/one//datastores/xxx/yyy.snap/2': No such file or directory
-rw-rw-r-- 1 oneadmin oneadmin 2.0K Jun 21 17:51 deployment.5
drwxrwxr-x 1 oneadmin oneadmin 108 Jun 21 17:51 .
-rw-rw-r-- 1 oneadmin oneadmin 1.1K Jun 21 17:51 ds.xml
-rw-rw-r-- 1 oneadmin oneadmin 5.8K Jun 21 17:51 vm.xml
-rw-r--r-- 1 oneadmin oneadmin 364K Jun 21 17:51 disk.1
lrwxrwxrwx 1 oneadmin oneadmin 68 Jun 21 17:51 disk.2 -> /var/lib/one//datastores/xxx/yyy.snap/0
lrwxrwxrwx 1 oneadmin oneadmin 68 Jun 21 17:08 disk.0 -> /var/lib/one//datastores/xxx/yyy.snap/2
-rw-rw-r-- 1 oneadmin oneadmin 2.0K Jun 21 16:38 deployment.0
deployment.5 does reflect this situation:
Expected behavior
OpenNebula / sunstone should:
Details
Additional context
Progress Status
The text was updated successfully, but these errors were encountered: