| Summary: | [vdsm] Recovery fails in case of running removeDisk task on VM with snapshots | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jakub Libosvar <jlibosva> | ||||
| Component: | vdsm | Assignee: | Eduardo Warszawski <ewarszaw> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Jakub Libosvar <jlibosva> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.1 | CC: | abaron, bazulay, hateya, iheim, ykaul | ||||
| Target Milestone: | rc | Flags: | hateya:
needinfo?
|
||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-08-28 13:50:22 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
*** This bug has been marked as a duplicate of bug 677149 *** |
Created attachment 519902 [details] truncated vdsm log Description of problem: If vdsm is restarted during VM removal process, the recovery process fails. MainThread::DEBUG::2011-08-25 17:01:28,502::threadPool::25::Misc.ThreadPool::(__init__) Enter - numThreads: 10.0, waitTimeout: 3, maxTasks: 500.0 MainThread::DEBUG::2011-08-25 17:01:28,508::spm::214::Storage.SPM::(__cleanupSPMLinks) cleaning links; [] ['/rhev/data-center/011ab524-7985-4051-9990-863eb8a84c0f/tasks'] MainThread::ERROR::2011-08-25 17:01:28,510::clientIF::239::vds::(_initIRS) Traceback (most recent call last): File "/usr/share/vdsm/clientIF.py", line 233, in _initIRS self.irs = StorageDispatcher() File "/usr/share/vdsm/storage/dispatcher.py", line 135, in __init__ self.hsm = hsm.HSM() File "/usr/share/vdsm/storage/hsm.py", line 138, in __init__ self.spm = spm.SPM(self.taskMng) File "/usr/share/vdsm/storage/spm.py", line 159, in __init__ self.__cleanupSPMLinks() File "/usr/share/vdsm/storage/spm.py", line 218, in __cleanupSPMLinks os.unlink(d) OSError: [Errno 21] Is a directory: '/rhev/data-center/011ab524-7985-4051-9990-863eb8a84c0f/tasks' Not sure if tasks directory should be empty or not, but it's not: [root@srh-11 ~]# ll -R /rhev/data-center/011ab524-7985-4051-9990-863eb8a84c0f/tasks /rhev/data-center/011ab524-7985-4051-9990-863eb8a84c0f/tasks: total 4 drwxr-xr-x. 2 vdsm kvm 4096 Aug 25 17:01 df03986e-5a95-4626-9732-20cb3ba332a1 /rhev/data-center/011ab524-7985-4051-9990-863eb8a84c0f/tasks/df03986e-5a95-4626-9732-20cb3ba332a1: total 16 -rw-r--r--. 1 vdsm kvm 83 Aug 25 17:01 df03986e-5a95-4626-9732-20cb3ba332a1.job.0 -rw-r--r--. 1 vdsm kvm 272 Aug 25 17:01 df03986e-5a95-4626-9732-20cb3ba332a1.recover.0 -rw-r--r--. 1 vdsm kvm 62 Aug 25 17:01 df03986e-5a95-4626-9732-20cb3ba332a1.result -rw-r--r--. 1 vdsm kvm 282 Aug 25 17:01 df03986e-5a95-4626-9732-20cb3ba332a1.task Version-Release number of selected component (if applicable): vdsm-4.9-95 How reproducible: Always Steps to Reproduce: 1. I have a VM with 5 disks 2. Create a snapshot 3. Start remove process 4. When process is running, restart vdsm on host Actual results: Host fails to recover Expected results: Host recovers Additional info: Host can't be used anymore. vdsm log atached I'm not sure about regression. At first I thought it is, but then I found out that there has to be snapshot, without snapshot host recovers successfully.