Hide Forgot
Description of problem: When new disk creation fails, image file is removed properly but due to directory which contained this file is now empty, vdsm doesn't remove the directory. Relevant to NFS/local storage only. Version-Release number of selected component (if applicable): vdsm-4.9-106.el6.x86_64 How reproducible: Always Steps to Reproduce: 1. Start creating new VM's disk 2. Restart vdsmd in the middle of task 3. Check image/ directory on data domain Actual results: Directory was not removed Expected results: Directory is removed Additional info: 2a17453e-c5d1-4822-af5a-bbfcfedd25d9::DEBUG::2011-10-10 09:04:30,674::task::495::TaskManager.Task::(_debug) Task 2a17453e-c5d1-4822-af5a-bbfcfedd25d9: running recovery create image rollback: e8ee2df7-2221-48a7-b16b-a6652c351ec4: Image->createImageRollback(/rhev/data-center/3c250720-5b6d-4053-89c5-38a7db5ec68c/18d2d242-9758-4806-a6e0-8f1e3c1cbd77/images/e8ee2df7-2221-48a7-b16b-a6652c351ec4) 2a17453e-c5d1-4822-af5a-bbfcfedd25d9::INFO::2011-10-10 09:04:30,675::image::65::Storage.Image::(createImageRollback) createImageRollback: imageDir=/rhev/data-center/3c250720-5b6d-4053-89c5-38a7db5ec68c/18d2d242-9758-4806-a6e0-8f1e3c1cbd77/images/e8ee2df7-2221-48a7-b16b-a6652c351ec4 2a17453e-c5d1-4822-af5a-bbfcfedd25d9::ERROR::2011-10-10 09:04:30,676::image::70::Storage.Image::(createImageRollback) createImageRollback: Cannot remove dirty image folder /rhev/data-center/3c250720-5b6d-4053-89c5-38a7db5ec68c/18d2d242-9758-4806-a6e0-8f1e3c1cbd77/images/e8ee2df7-2221-48a7-b16b-a6652c351ec4
Created attachment 527172 [details] vdsm log
(In reply to comment #0) > Description of problem: > but due to directory which contained this file is now empty, vdsm doesn't remove the directory. Correction - seems like the directory is still containing the file when attempting to delete
The file is called .nfs0000000000fe001800000005. Is it just some temporary file? I cannot see it later.
yeah, that file is created by the nfs server, and is removed after a successful umount. We may want to initiate a cleanup of such empty directories on the spm.
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.