Review test for fuel-library fails with 'NoneType' object has no attribute '__getitem__'

Bug #1532203 reported by Tatyanka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Tatyanka
8.0.x
Fix Released
Critical
Tatyanka

Bug Description

we do not store in result variable output of executed cmd and then try to get item in this variable as result test failed:
ERROR: Create environment and set up master node
----------------------------------------------------------------------
Traceback (most recent call last):
  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/systest/8.0/fuelweb_test/helpers/decorators.py", line 83, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/systest/8.0/fuelweb_test/tests/base_test_case.py", line 141, in setup_master
    self.env.setup_environment()
  File "/home/jenkins/workspace/systest/8.0/fuelweb_test/models/environment.py", line 440, in setup_environment
    self.setup_customisation()
  File "/home/jenkins/workspace/systest/8.0/fuelweb_test/helpers/decorators.py", line 226, in wrapper
    assert_equal(int(result['exit_code']), 0,
TypeError: 'NoneType' object has no attribute '__getitem__'

Tags: area-qa
Changed in fuel:
assignee: nobody → Tatyanka (tatyana-leontovich)
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/265263

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/265265

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/265263
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=b92e7f53f3414725a379ead51a1ea8586a02dae7
Submitter: Jenkins
Branch: master

commit b92e7f53f3414725a379ead51a1ea8586a02dae7
Author: Tatyana Leontovich <email address hidden>
Date: Fri Jan 8 16:15:25 2016 +0200

    Store cmd execute result into cmd_result variable

    Change-Id: Ie4dc39c231e026109b28b79c609c272d46df959e
    Closes-Bug: #1532203

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

Reviewed: https://review.openstack.org/265265
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=7bd862861189b59e6a486887f684f808bf0ea23c
Submitter: Jenkins
Branch: stable/8.0

commit 7bd862861189b59e6a486887f684f808bf0ea23c
Author: Tatyana Leontovich <email address hidden>
Date: Fri Jan 8 16:15:25 2016 +0200

    Store cmd execute result into cmd_result variable

    Change-Id: Ie4dc39c231e026109b28b79c609c272d46df959e
    Closes-Bug: #1532203

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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