Bug 1636846 - Creating live snapshot for a VM that imported from 3.5 environment failed
Summary: Creating live snapshot for a VM that imported from 3.5 environment failed
Keywords:
Status: CLOSED DUPLICATE of bug 1589115
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.8
: ---
Assignee: Benny Zlotnik
QA Contact: Elad
URL:
Whiteboard:
Depends On: 1628150
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-08 06:18 UTC by Eyal Shenitzky
Modified: 2018-10-29 08:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-29 08:41:26 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
engine and vdsm logs (2.88 MB, application/zip)
2018-10-08 06:18 UTC, Eyal Shenitzky
no flags Details

Description Eyal Shenitzky 2018-10-08 06:18:02 UTC
Created attachment 1491522 [details]
engine and vdsm logs

Description of problem:

Create live snapshot operation failed in case the snapshot is taken for a VM that created in 3.5 environments and import to a newer environment (tested on 4.3)

Engine:
2018-10-08 09:11:05,554+03 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.SnapshotVDSCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-5) [5b1145e5-691d-4a5c-9b92-0869fa314131] Failed in 'SnapshotVDS' method
2018-10-08 09:11:05,567+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engineScheduled-Thread-5) [5b1145e5-691d-4a5c-9b92-0869fa314131] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), VDSM h1_190 command SnapshotVDS failed: General Exception: ('[Errno 13] Permission denied',)

VDSM:
2018-10-08 08:44:56,316+0300 INFO  (jsonrpc/2) [vdsm.api] FINISH teardownImage return=None from=::ffff:10.36.116.60,55740, flow_id=c9521d7c-7764-4003-bffc-f44797d85eea, task_id=e41a7280-e8d9-479d-92c9-9b623a55786d (api:53)
2018-10-08 08:44:56,316+0300 ERROR (jsonrpc/2) [api] FINISH snapshot error=[Errno 13] Permission denied (api:133)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/common/api.py", line 123, in method
    ret = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/API.py", line 699, in snapshot
    return vm.snapshot(snapDrives, memoryParams, frozen=frozen)
  File "<string>", line 2, in snapshot
  File "/usr/lib/python2.7/site-packages/vdsm/common/api.py", line 100, in method
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 4522, in snapshot
    _padMemoryVolume(memoryVolPath, memoryVol['domainID'])
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 4383, in _padMemoryVolume
    padToBlockSize(memoryVolPath)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/outOfProcess.py", line 188, in padToBlockSize
    truncateFile(self._iop, path, newSize)
  File "/usr/lib/python2.7/site-packages/vdsm/storage/outOfProcess.py", line 357, in truncateFile
    ioproc.truncate(path, size, mode, creatExcl)
  File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line 576, in truncate
    self.timeout)
  File "/usr/lib/python2.7/site-packages/ioprocess/__init__.py", line 448, in _sendCommand
    raise OSError(errcode, errstr)
OSError: [Errno 13] Permission denied


Version-Release number of selected component (if applicable):
4.3 master from commit - 9ae5fe230bf466d6609d4e86be669c2545fd0d47

How reproducible:
100%

Steps to Reproduce:
1. Create a VM with a disk on 3.5 env
2. Export the VM to an export domain
3. Import the VM to a 4.3 env
4. Run the imported VM
5. Create a live snapshot for the imported VM

Actual results:
Live snapshot creation faile

Expected results:
Live snapshot creation should succeed

Additional info:
3.5 version is not supported anymore but if we solved bug 1628150 I assume that they will encounter this bug soon.

Comment 1 Benny Zlotnik 2018-10-10 09:52:55 UTC
It's caused by this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1589115
dynamic_ownership was recently enabled: https://gerrit.ovirt.org/#/c/89830/

Comment 2 Benny Zlotnik 2018-10-10 10:59:03 UTC
Also, this applies to new VMs as well, not just ones imported from 3.5

Comment 3 Benny Zlotnik 2018-10-29 08:41:26 UTC

*** This bug has been marked as a duplicate of bug 1589115 ***


Note You need to log in before you can comment on or make changes to this bug.