Test check_cobler_alive failed with local variable 'result' referenced before assignment

Bug #1500828 reported by Tatyanka
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Vasily Gorin

Bug Description

https://product-ci.infra.mirantis.net/job/8.0.system_test.ubuntu.thread_1/4/testReport/(root)/test_cobbler_alive/test_cobbler_alive/

local variable 'result' referenced before assignment

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.thread_1/fuelweb_test/helpers/decorators.py", line 80, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.thread_1/fuelweb_test/tests/test_admin_node.py", line 62, in test_cobbler_alive
    config = self.env.get_fuel_settings()
  File "/home/jenkins/workspace/8.0.system_test.ubuntu.thread_1/fuelweb_test/models/environment.py", line 509, in get_fuel_settings
    if result['exit_code'] == 0:
UnboundLocalError: local variable 'result' referenced before assignment

Changed in fuel:
status: New → Confirmed
Vasily Gorin (vgorin)
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Vasily Gorin (vgorin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

Fix proposed to branch: master
Review: https://review.openstack.org/230920

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/230920
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=82bfc2e57faa88c818b66e969014a479a7e8673a
Submitter: Jenkins
Branch: master

commit 82bfc2e57faa88c818b66e969014a479a7e8673a
Author: vgorin <email address hidden>
Date: Mon Oct 5 13:09:28 2015 +0300

    Fix problem with local variable 'result' with referenced before assignment

    Move get_admin_settings to action.admin_actions

    Change-Id: I649135a1c33bd64be555906ce8863e7b37244844
    Closes-Bug: #1500828

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: non-release
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.