Bug 1265556

Summary: Attempt Import of vCenter VM give error "VDSM <hostname> command failed: local variable 'capacity' referenced before assignment” on 3.6 rc5
Product: [oVirt] ovirt-engine Reporter: ian
Component: GeneralAssignee: Francesco Romani <fromani>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: amureini, bugs, gklein, michal.skrivanek, nsimsolo, nsoffer
Target Milestone: ovirt-3.6.1Flags: ylavi: ovirt-3.6.z?
ylavi: ovirt-4.0.0?
rule-engine: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 3.6.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:11:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log from host that was used to access vcenter. none

Description ian 2015-09-23 08:36:00 UTC
Created attachment 1076122 [details]
vdsm.log from host that was used to access vcenter.

Description of problem:

When I attempt to import a VM from vCenter I click the load button and the popup window hangs forever, when I close the popup I get the following in events: “VDSM <hostname> command failed: local variable 'capacity' referenced before assignment”
 

Version-Release number of selected component (if applicable):
3.6 rc5

How reproducible:
Always on my setup

Steps to Reproduce:
1. Log into administration portal, System->Virtual Machines. 
2. Click Import. Select VMware for source  and complete details for your vCenter environment or select a valid external provider (previously set).
3. Click the "Load" button.

Actual results:
The "Import Virtual Machine(s)" popup window in webui hangs forever, event shows "VDSM <hostname> command failed: local variable 'capacity' referenced before assignment"

Expected results:
Loads list of VM's to be imported.

Additional info:
Attached vdsm.log

Comment 1 Michal Skrivanek 2015-10-15 09:23:34 UTC
Francesco, can you please take care of a backport to 3.6?

Comment 2 Francesco Romani 2015-10-15 10:25:50 UTC
back to ASSIGNED until backports are ready

Comment 3 Francesco Romani 2015-10-22 14:52:07 UTC
patches merged on master, fix merged on branch: http://gerrit.ovirt.org/47362

Comment 4 Red Hat Bugzilla Rules Engine 2015-11-27 04:39:46 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.

Comment 5 Michal Skrivanek 2015-12-04 13:44:00 UTC
come on....

Comment 6 Francesco Romani 2016-01-20 08:40:38 UTC
This BZ fixed an unexpected error in the import process. It is not known to be particularly widespread or common. I don't think it deserves mention in the docs.

Comment 7 Nisim Simsolo 2016-01-20 10:30:48 UTC
Verified: 
rhevm-3.6.2.5-0.1.el6
sanlock-3.2.4-1.el7.x86_64
vdsm-4.17.17-0.el7ev.noarch
libvirt-client-1.2.17-13.el7_2.2.x86_64
qemu-kvm-rhev-2.3.0-31.el7_2.4.x86_64