[systest] improve system tests logs

Bug #1309492 reported by Aleksandra Fedorova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Nastya Urlapova

Bug Description

Currently the only result we get in system tests output is this traceback:

FAIL: Deploy cluster in HA mode with Neutron GRE
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/venv-nailgun-tests/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/workspace/venv-nailgun-tests/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/workspace/venv-nailgun-tests/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/fuel_systest_env/master/fuelweb_test/helpers/decorators.py", line 49, in wrapper
    return func(*args, **kwagrs)
  File "/home/jenkins/workspace/fuel_systest_env/master/fuelweb_test/tests/test_pullrequest.py", line 66, in deploy_pr_ha
    self.fuel_web.deploy_cluster_wait(cluster_id, is_feature=True)
  File "/home/jenkins/workspace/fuel_systest_env/master/fuelweb_test/models/fuel_web_client.py", line 347, in deploy_cluster_wait
    self.assert_task_success(task, timeout=timeout, interval=interval)
  File "/home/jenkins/workspace/fuel_systest_env/master/fuelweb_test/__init__.py", line 48, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/fuel_systest_env/master/fuelweb_test/models/fuel_web_client.py", line 201, in assert_task_success
    task['status'], 'ready', name=task["name"]
AssertionError: Task 'deployment' has incorrect status. error != ready

which has no info about what has failed and why.

While in sys_test.log we have at least this message:

2014-04-18 06:22:37,445 - DEBUG __init__.py:50 -- Done: task_wait with result: {u'status': u'error', u'name': u'deployment', u'cluster': 1, u'result': {}, u'progress': 100, u'message': u"Deployment has failed. Check these nodes:\n'slave-02_compute', 'slave-01_controller'", u'id': 3, u'uuid': u'f74d1656-3ea0-43cc-b60c-3eb4a676c8de'}

I suggest we

1) remove the traceback from the output (do some nicer try-except and print only the error)
2) raise the severity of "Done: task_wait with result:" messages to INFO

Changed in fuel:
importance: Undecided → High
assignee: nobody → Nastya Urlapova (aurlapova)
milestone: none → 5.0
importance: High → Medium
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: 5.0 → 5.1
Mike Scherbakov (mihgen)
Changed in fuel:
status: New → Confirmed
Dmitry Ilyin (idv1985)
summary: - improve system tests logs
+ [systest] improve system tests logs
Changed in fuel:
milestone: 5.1 → 6.0
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

My suggestion to use nice report tool, for example ya-allure. and all your problems will be solved.

Changed in fuel:
status: Confirmed → Invalid
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.