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.
*** Bug 1131160 has been marked as a duplicate of this bug. ***
fixed in vt3, moving to on_qa. if you believe this bug isn't released in vt3, please report to rhev-integ
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',)