Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1133617

Summary: prepareImage fails with an UnboundLocalError when the volume does not exists
Product: Red Hat Enterprise Virtualization Manager Reporter: Federico Simoncelli <fsimonce>
Component: vdsmAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED CURRENTRELEASE QA Contact: Aharon Canan <acanan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, bazulay, ebenahar, ecohen, gklein, iheim, lpeer, scohen, tnisan, yeylon
Target Milestone: ---Flags: amureini: Triaged+
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: vt3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 13:37:56 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:

Description Federico Simoncelli 2014-08-25 14:52:35 UTC
Description of problem:
prepareImage fails with an UnboundLocalError when the volume does not exists.

Version-Release number of selected component (if applicable):
vdsm-4.14.13-2.el6ev

How reproducible:
100%

Steps to Reproduce:
1. use vdsClient prepareImage to prepare an nonexistent volume 

Actual results:
Command fails with UnboundLocalError.

UnboundLocalError: local variable 'leafInfo' referenced before assignment

Expected results:
A specific error should be returned.

Comment 1 Federico Simoncelli 2014-09-04 12:27:51 UTC
*** Bug 1131160 has been marked as a duplicate of this bug. ***

Comment 2 Eyal Edri 2014-09-10 20:21:46 UTC
fixed in vt3, moving to on_qa.
if you believe this bug isn't released in vt3, please report to rhev-integ

Comment 3 Aharon Canan 2014-09-16 08:08:35 UTC
verified using vt3.1

[root@purple-vds1 ~]# vdsClient -s 0 prepareImage b347116f-be37-4dd3-a0f2-0fb229c0953d 37e6c10a-691b-42df-92d9-58449018d32a cf6bf69b-6620-409e-bd3c-cdb056f0606b e1cb4185-5146-4c28-b0fe-edd94fa3e5be
Volume does not exist: ('e1cb4185-5146-4c28-b0fe-edd94fa3e5be',)