Bug 1133617 - prepareImage fails with an UnboundLocalError when the volume does not exists
Summary: prepareImage fails with an UnboundLocalError when the volume does not exists
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.5.0
Assignee: Federico Simoncelli
QA Contact: Aharon Canan
URL:
Whiteboard: storage
: 1131160 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-25 14:52 UTC by Federico Simoncelli
Modified: 2016-02-10 17:27 UTC (History)
10 users (show)

Fixed In Version: vt3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-16 13:37:56 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
amureini: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 31937 0 master MERGED hsm: check volume existence in prepareImage Never
oVirt gerrit 32337 0 ovirt-3.5 MERGED hsm: check volume existence in prepareImage Never

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',)


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