System tests did not generate error snapshots

Bug #1350836 reported by Vadim Rovachev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Artem Panchenko

Bug Description

System test did not generate snapshot, if test is failed

http://jenkins-product.srt.mirantis.net:8080/view/0_master_swarm/job/master_fuelmain.system_test.centos.services_ha/58/consoleFull

2014-07-30 23:56:20,571 - ERROR decorators.py:63 -- Traceback (most recent call last):
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/helpers/decorators.py", line 61, in wrapper
    "fail", func.__name__)
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/helpers/decorators.py", line 157, in create_diagnostic_snapshot
    task = env.fuel_web.task_wait(env.fuel_web.client.generate_logs(), 60 * 5)
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/__init__.py", line 48, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/helpers/decorators.py", line 76, in wrapped
    response = func(*args, **kwargs)
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/models/nailgun_client.py", line 326, in generate_logs
    return self.client.put("/api/logs/package")
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/helpers/http.py", line 51, in put
    return self._open(req)
  File "/home/jenkins/workspace/master_fuelmain.system_test.centos.services_ha/fuelweb_test/helpers/http.py", line 62, in _open
    return self.opener.open(req)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

----------------------------------------------------------------

to resolve:
add credentials(admin, admin) for nailgun client:
https://github.com/stackforge/fuel-main/blob/master/fuelweb_test/helpers/http.py#L23

Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Fuel QA Team (fuel-qa)
milestone: none → 5.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/111015
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=aa09bae06a6b68740b77250f6c3b79132d249c65
Submitter: Jenkins
Branch: master

commit aa09bae06a6b68740b77250f6c3b79132d249c65
Author: Artem Panchenko <email address hidden>
Date: Thu Jul 31 19:23:20 2014 +0300

    Handle unauthorized exception in NailgunClient

    Move authorization using keystone client to the
    HTTPClient class and update security token in
    case of getting '401 Unauthorized' error.

    Change-Id: Ieb754a7f4d718e971216dcc995e47e107853798f
    Closes-bug: #1350836

Changed in fuel:
status: In Progress → Fix Committed
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.