Bug 798321

Summary: v7 plan UnboundLocalError: local variable 'controllers' referenced before assignment
Product: [Retired] Red Hat Hardware Certification Program Reporter: Petr Beňas <pbenas>
Component: Test Suite (harness)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: czhang, pstehlik, rlandry
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
no tech note needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-05 21:37:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 767775    

Description Petr Beňas 2012-02-28 16:07:12 UTC
Description of problem:
unable to v7 plan in v7 1.5-1

Version-Release number of selected component (if applicable):
v7-1.5-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. v7 plan

  
Actual results:
found interface for udisks
Traceback (most recent call last):
  File "/usr/bin/v7", line 45, in <module>
    success = v7.do(args)
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 194, in do
    result = self.commands[self.command]()
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 296, in doPlan
    tests = self.planner.plan() 
  File "/usr/share/v7/lib/v7/planner.py", line 115, in plan
    self.plannedTests = self.__plan(self.devices)
  File "/usr/share/v7/lib/v7/planner.py", line 99, in __plan
    someTests = test.plan(self.devices)
  File "/usr/share/v7/tests/storage/storage.py", line 53, in plan
    disk = self.planHAL(device, devices)
  File "/usr/share/v7/tests/storage/storage.py", line 91, in planHAL
    if controllerId in controllers:
UnboundLocalError: local variable 'controllers' referenced before assignment


Expected results:
Please verify the vendor, make, and model:
Vendor: Hewlett-Packard
Make: HP
Model: HP xw6400 Workstation
Hardware: Hewlett-Packard HP HP xw6400 Workstation
OS: Santiago 6.2
saved configuration to /var/v7/results.xml
Created a new plan with 22 tests on 131 devices
Checking for additional required packages based on the test plan:
... and so on

Additional info:
Possibly regression, works in v7-1.4-38.el6.noarch.

Comment 2 Greg Nichols 2012-03-02 13:54:31 UTC
Fix committed to v7 1.5 R2.

Comment 7 Petr Beňas 2012-03-29 08:49:50 UTC
Verified in R3.

Comment 8 Caspar Zhang 2012-06-04 07:53:11 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
no tech note needed.

Comment 10 errata-xmlrpc 2012-06-05 21:37:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0711.html