Bug 1737684
Summary: | Engine deletes the leaf volume when SnapshotVDSCommand timed out without checking if the volume is still used by the VM | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | nijin ashok <nashok> | |
Component: | ovirt-engine | Assignee: | Benny Zlotnik <bzlotnik> | |
Status: | CLOSED ERRATA | QA Contact: | Evelina Shames <eshames> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 4.3.4 | CC: | bzlotnik, frolland, gveitmic, pelauter, tnisan | |
Target Milestone: | ovirt-4.4.0 | Keywords: | ZStream | |
Target Release: | --- | Flags: | lsvaty:
testing_plan_complete-
|
|
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | No Doc Update | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1746730 (view as bug list) | Environment: | ||
Last Closed: | 2020-08-04 13:20:00 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1746730 |
Description
nijin ashok
2019-08-06 04:56:14 UTC
Removing "orphan" volumes after snapshot failure seem to have been introduced by BZ1497355 (https://gerrit.ovirt.org/#/c/91658/), so IIUC 4.2.4 and higher are affected by this bug. These exceptions need to be better handled. sync2jira sync2jira WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops (In reply to Evelina Shames from comment #11) > The same bug was verified for ovirt-engine-4.3.6.5-0.1 and vdsm-4.30.30-1 - > Bug 1746730, and I'm trying to verify on : > ovirt-engine-4.4.0-0.13.master.el7.noarch > vdsm-4.40.0-164.git38a19bb.el8ev.x86_64 > > > With the same steps: > - On host, change in /usr/lib/python3.6/site-packages/vdsm/API.py: > s = vm.snapshot(snapDrives, memoryParams, frozen=frozen) > import time > time.sleep(190) > return s > - Restart vdsm > - Power on VM on this host > - Try to create live snapshot > - Operation fails -> But in engine log the following doesn't appear: > 'appears to be in use by VM' > > Benny, is it ok? > > Engine log is attached > (2020-01-02 11:33:10,858+02 INFO > [org.ovirt.engine.core.vdsbroker.irsbroker.CreateImageVDSCommand] > (EE-ManagedThreadFactory-engine-Thread-187417) > [e4a80c85-1e5e-45c6-9c71-87b12238e336] START, CreateImageVDSCommand( > CreateImageVDSCommandParameters:{storagePoolId='b3e907a2-cea0-4eda-b1f9- > 9d451aa5a571', ignoreFailoverLimit='false', > storageDomainId='f69faf83-6f96-40f9-86e6-e865df601bbd', > imageGroupId='5007efa1-9f41-479a-bb86-315e9eada5ae', > imageSizeInBytes='1358954496', volumeFormat='RAW', > newImageId='13aa556b-4ffe-4ee7-a7fd-28241448ca94', imageType='Sparse', > newImageDescription='{"DiskAlias": > "golden_env_mixed_virtio_1_0_snapshot_memory","DiskDescription":"Memory > snapshot disk for snapshot 'snp1' of VM 'golden_env_mixed_virtio_1_0' (VM > ID: '6d0b5d42-59f6-42d1-9088-180b63c410f6')"}', > imageInitialSizeInBytes='0'}), log id: 299cd3d0 > ) I see it: 2020-01-02 11:36:27,179+02 WARN [org.ovirt.engine.core.bll.snapshots.CreateSnapshotCommand] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-16) [e4a80c85-1e5e-45c6-9c71-87b12238e336] Image '12e06ed6-5045-47e7-89e7-0ce7efd7465e' appears to be in use by VM '6d0b5d42-59f6-42d1-9088-180b63c410f6', skipping deletion Ohh sorry, missed it. Moving to verified. ovirt-engine-4.4.0-0.13.master.el7.noarch vdsm-4.40.0-164.git38a19bb.el8ev.x86_64 WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops WARN: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Found non-acked flags: '{}', ] For more info please contact: rhv-devops Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:3247 |