Bug 1662321
| Summary: | Clone VM from 'Active VM' snapshot shouldn't be allowed via REST API | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [oVirt] vdsm | Reporter: | Raz Tamir <ratamir> | ||||||
| Component: | Core | Assignee: | shani <sleviim> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Evelina Shames <eshames> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 4.30.3 | CC: | bugs, ebenahar, eheftman, sleviim, tnisan | ||||||
| Target Milestone: | ovirt-4.3.0 | Keywords: | Automation, Regression | ||||||
| Target Release: | --- | Flags: | rule-engine:
ovirt-4.3+
rule-engine: blocker+ |
||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | ovirt-engine-4.3.0_rc | Doc Type: | Bug Fix | ||||||
| Doc Text: |
Previously, when trying to clone a virtual machine from an Active VM snapshot, a 'Failed to get shared "write" lock. Is another process using the image?' error appeared for the following snapshot types: 'ACTIVE', 'STATELESS', 'PREVIEW' and 'NEXT_RUN'.
In this release, the cloning operation will be blocked for these snapshot types.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2019-02-13 07:43:17 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Raz Tamir
2018-12-27 16:52:04 UTC
Created attachment 1517521 [details]
logs and db dump
After the attempt to clone a VM out of an Active VM snapshot, the cloned VM is left in locked state
engine=# select status, vm_name from vms;
-[ RECORD 1 ]----------------------
status | 15
vm_name | vm_random_test_3021101806
-[ RECORD 2 ]----------------------
status | 1
vm_name | vm_random_test_3020553723
-[ RECORD 3 ]----------------------
status | 0
vm_name | vm_random_test_3021040024
2018-12-30 21:10:23,535+0200 ERROR (tasks/5) [storage.TaskManager.Task] (Task='7534ab53-ecaf-4dbd-9503-84a7c5f91a72') Unexpected error (task:875)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/vdsm/storage/task.py", line 882, in _run
return fn(*args, **kargs)
File "/usr/lib/python2.7/site-packages/vdsm/storage/task.py", line 336, in run
return self.cmd(*self.argslist, **self.argsdict)
File "/usr/lib/python2.7/site-packages/vdsm/storage/securable.py", line 79, in wrapper
return method(self, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/storage/sp.py", line 1622, in copyImage
postZero, force, discard)
File "/usr/lib/python2.7/site-packages/vdsm/storage/image.py", line 836, in copyCollapsed
raise se.CopyImageError(str(e))
CopyImageError: low level Image copy failed: ('Command [\'/usr/bin/qemu-img\', \'convert\', \'-p\', \'-t\', \'none\', \'-T\', \'none\', \'-f\', \'qcow2\', u\'/rhev/data-center/mnt/yellow-vdsb.qa.lab.tlv.redhat.c
om:_Storage__NFS_storage__local__ge6__nfs__2/5328b0ae-7b2e-41dc-b726-4bc5425867b4/images/cdfc2480-e2bf-4316-8b51-928ab347950f/2de67c2e-d3ab-482d-88a0-fd12138c4264\', \'-O\', \'qcow2\', \'-o\', \'compat=1.1\', u\
'/rhev/data-center/mnt/yellow-vdsb.qa.lab.tlv.redhat.com:_Storage__NFS_storage__local__ge6__nfs__2/5328b0ae-7b2e-41dc-b726-4bc5425867b4/images/f4346334-0291-4fde-a861-b8a49023847f/6b856072-f558-4be4-857b-2516a45
d8e9e\'] failed with rc=1 out=\'\' err=bytearray(b\'qemu-img: Could not open \\\'/rhev/data-center/mnt/yellow-vdsb.qa.lab.tlv.redhat.com:_Storage__NFS_storage__local__ge6__nfs__2/5328b0ae-7b2e-41dc-b726-4bc54258
67b4/images/cdfc2480-e2bf-4316-8b51-928ab347950f/2de67c2e-d3ab-482d-88a0-fd12138c4264\\\': Failed to get shared "write" lock\\nIs another process using the image?\\n\')',)
2018-12-30 21:38:43,614+02 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetAllTasksStatusesVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-71) [] Failed in 'HSMGetAllTasksStatusesVDS' method
2018-12-30 21:38:43,626+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-71) [] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), VDSM h
ost_mixed_2 command HSMGetAllTasksStatusesVDS failed: low level Image copy failed: ('Command [\'/usr/bin/qemu-img\', \'convert\', \'-p\', \'-t\', \'none\', \'-T\', \'none\', \'-f\', \'qcow2\', u\'/rhev/data-cent
er/mnt/yellow-vdsb.qa.lab.tlv.redhat.com:_Storage__NFS_storage__local__ge6__nfs__2/5328b0ae-7b2e-41dc-b726-4bc5425867b4/images/cdfc2480-e2bf-4316-8b51-928ab347950f/2de67c2e-d3ab-482d-88a0-fd12138c4264\', \'-O\',
\'qcow2\', \'-o\', \'compat=1.1\', u\'/rhev/data-center/mnt/yellow-vdsb.qa.lab.tlv.redhat.com:_Storage__NFS_storage__local__ge6__nfs__2/5328b0ae-7b2e-41dc-b726-4bc5425867b4/images/f4346334-0291-4fde-a861-b8a490
23847f/6b856072-f558-4be4-857b-2516a45d8e9e\'] failed with rc=1 out=\'\' err=bytearray(b\'qemu-img: Could not open \\\'/rhev/data-center/mnt/yellow-vdsb.qa.lab.tlv.redhat.com:_Storage__NFS_storage__local__ge6__n
fs__2/5328b0ae-7b2e-41dc-b726-4bc5425867b4/images/cdfc2480-e2bf-4316-8b51-928ab347950f/2de67c2e-d3ab-482d-88a0-fd12138c4264\\\': Failed to get shared "write" lock\\nIs another process using the image?\\n\')',)
2018-12-30 21:38:43,628+02 INFO [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (EE-ManagedThreadFactory-engineScheduled-Thread-71) [] SPMAsyncTask::PollTask: Polling task '923c36c1-66c4-487c-8813-3ccfd47ce369'
(Parent Command 'UploadStream', Parameters Type 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') returned status 'finished', result 'success'.
This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP. Thanks Shani. Please consider adding validation also for cloning a VM out of the 'Active VM before preview' and the 'Next run configuration' snapshots (reported in bug 1575913 and bug 1626278). This patch should deal with those (as those snapshots are not regular snapshots) Verified on engine 4.3.0-0.8.rc2.el7 This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019. Since the problem described in this bug report should be resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |