Bug 1417460

Summary: Failed to Amend Qcow volume on block SD due failure on Qemu-image
Product: [oVirt] ovirt-engine Reporter: Kevin Alon Goldblatt <kgoldbla>
Component: BLL.StorageAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, mlipchuk, ratamir, tnisan
Target Milestone: ovirt-4.1.1Flags: rule-engine: ovirt-4.1+
rule-engine: blocker+
Target Release: 4.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:53:05 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: 827529, 1143872    
Attachments:
Description Flags
server, vdsm, engine.log none

Description Kevin Alon Goldblatt 2017-01-29 15:14:39 UTC
Description of problem:
Failed to amend block disk image as backing file LV is not Activated  (looks similar to bz 1410428)



Version-Release number of selected component (if applicable):
ovirt-engine-4.1.1-0.0.master.20170126161333.git83fd7e0.el7.centos.noarch
vdsm-4.19.3-1.gitdfa4d67.el7.centos.x86_64


How reproducible:
Always

Steps to Reproduce:
1.Create DC and Cluster with compatability version 4.0
2.Create VM with block disks
3.Create snapshot
4.Upgrade Cluster and DC to 4.1
5.Try to Amend image - fails as backing file LV is not Activated  (looks similar to bz 1410428)

Actual results:
Fail to Amend block image

Expected results:
Should work


Additional info:
2017-01-29 17:04:46,817 INFO  (jsonrpc/3) [jsonrpc.JsonRpcServer] RPC call Host.getAllVmStats succeeded in 0.00 seconds (__init__:515)
2017-01-29 17:04:46,855 INFO  (jsonrpc/5) [jsonrpc.JsonRpcServer] RPC call Host.getAllVmIoTunePolicies succeeded in 0.03 seconds (__init__:515)
2017-01-29 17:04:48,103 INFO  (vdsm.Scheduler) [root] Autodeleting job {'status': 'failed', 'error': {'message': 'General Exception: ("cmd=[\'/usr/bin/qemu-img\', \'amend\', \'-o\', u\'com
pat=1.1\', \'/rhev/data-center/mnt/blockSD/de90ee9f-0fc6-43c8-a959-0959674ab689/images/00bf8fa1-2fd2-4f62-9445-801e37f647a2/56c0f943-440e-4cfb-8c61-bc0ee35fc961\'], ecode=1, stdout=, stder
r=qemu-img: Could not open \'/rhev/data-center/mnt/blockSD/de90ee9f-0fc6-43c8-a959-0959674ab689/images/00bf8fa1-2fd2-4f62-9445-801e37f647a2/56c0f943-440e-4cfb-8c61-bc0ee35fc961\': Could no
t open backing file: Could not open \'/rhev/data-center/mnt/blockSD/de90ee9f-0fc6-43c8-a959-0959674ab689/images/00bf8fa1-2fd2-4f62-9445-801e37f647a2/6b738aec-0b76-4924-b25b-977764af6848\':
 No such file or directory\\n, message=None",)', 'code': 100}, 'job_type': 'storage', 'id': u'da7e4a44-801e-45c5-b411-2c7872cc484b', 'description': 'amend_volume'} (jobs:249)
2017-01-29 17:04:49,332 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC call Host.getAllVmStats succeeded in 0.00 seconds (__init__:515)

Comment 1 Kevin Alon Goldblatt 2017-01-29 15:18:49 UTC
Created attachment 1245596 [details]
server, vdsm, engine.log

Adding logs

Comment 2 Kevin Alon Goldblatt 2017-02-16 08:50:16 UTC
Tested with the following code:
-----------------------------------------------
ovirt-engine-4.1.1-0.1.el7.noarch
rhevm-4.1.1-0.1.el7.noarch
vdsm-4.19.5-1.el7ev.x86_64

Verified with the following scenario:
-----------------------------------------------
Steps to Reproduce:
1.Create DC and Cluster with compatibility version 4.0
2.Create VM with block disks
3.Create snapshot
4.Upgrade Cluster and DC to 4.1
5.Try to Amend image - Successfully amended

QCow version updated successfully on block device

Moving to VERIFIED!