Need to disable opportunity to run OSTF tests after failed deloyment

Bug #1275752 reported by Anastasia Palkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Julia Aranovich

Bug Description

"build_id": "2014-02-03_01-17-30",
"ostf_sha": "338ddf840c229918d1df8c6597588b853d02de4c",
"build_number": "72",
"nailgun_sha": "04f17482e97c1c7ee12f7f99bafc2dc9dbfc9a95",
"fuelmain_sha": "cb36a45a6148f742665f4b0b426d69350a5f2243",
"astute_sha": "d002c3bf626cff96a1d4aec9eb92fc4d5f4542c4",
"release": "4.1",
"fuellib_sha": "cd12860ec234260b50f98963a78257b3759441f6"

1. Create new environment (CentOS, HA mode)
2. Add 3 controllers and 2 compute nodes
3. Choose VLAN Manager
4. Start deployment. It has failed (lack of timeout)
5. I run OSTF tests. They are not run. Traceback in HealCheck logs:

(hooks) Pecan state <thread._local object at 0x2c83ed0>
Traceback (most recent call last):
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/pecan/core.py", line 559, in __call__
    self.handle_request(state.request, state.response)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/pecan/core.py", line 495, in handle_request
    result = controller(*args, **kwargs)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/fuel_plugin/ostf_adapter/wsgi/controllers.py", line 144, in post
    tests
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/fuel_plugin/ostf_adapter/storage/models.py", line 378, in start
    metadata['cluster_id'], tests=tests)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/fuel_plugin/ostf_adapter/storage/models.py", line 295, in add_test_run
    .filter(Test.name.in_(tests_names))\
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 401, in in_
    return self.operate(in_op, other)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/orm/attributes.py", line 252, in operate
    return op(self.comparator, *other, **kwargs)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 691, in in_op
    return a.in_(b)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 401, in in_
    return self.operate(in_op, other)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/orm/properties.py", line 212, in operate
    return op(self.__clause_element__(), *other, **kwargs)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 691, in in_op
    return a.in_(b)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 401, in in_
    return self.operate(in_op, other)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/expression.py", line 2300, in operate
    return op(self.comparator, *other, **kwargs)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 691, in in_op
    return a.in_(b)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/operators.py", line 401, in in_
    return self.operate(in_op, other)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/expression.py", line 1986, in operate
    return o[0](self, self.expr, op, *(other + o[1:]), **kwargs)
  File "/opt/fuel_plugins/ostf/lib/python2.6/site-packages/sqlalchemy/sql/expression.py", line 2105, in _in_impl
    for o in seq_or_selectable:
TypeError: 'NoneType' object is not iterable

I suggest to disable opportunity to run OSTF tests after failed deloyment

Revision history for this message
Anastasia Palkina (apalkina) wrote :
Changed in fuel:
assignee: nobody → Fuel UI Team (fuel-ui)
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Julia Aranovich (jkirnosova)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/71294
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=8b4e8c4c2ee9022450d8df5171608e1a18a7eeb7
Submitter: Jenkins
Branch: master

commit 8b4e8c4c2ee9022450d8df5171608e1a18a7eeb7
Author: jkirnosova <email address hidden>
Date: Wed Feb 5 19:33:00 2014 +0400

    Dont allow to run OSTF tests for error cluster

    closes-Bug: #1275752

    Change-Id: I3b03ea282c05d276b4c7f4c89dde98effe16545f

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #101
"build_id": "2014-02-07_01-17-30",
"ostf_sha": "d15d6b5b952e455e3afff383413ffa6d89ee7981",
"build_number": "101",
"nailgun_sha": "2d6aa79b9ed01ba166a0db543e19cd6d1d844503",
"fuelmain_sha": "ba75cff62a8314842ac29895bfc52fb923389647",
"astute_sha": "d002c3bf626cff96a1d4aec9eb92fc4d5f4542c4",
"release": "4.1",
"fuellib_sha": "a24052b3aed97b01d98362c04450e61a05e5fbab"

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.