Failing performance test IntegrationClusterTests.test_rerun_stopped_deploy

Bug #1454496 reported by Sebastian Kalinowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Sebastian Kalinowski

Bug Description

More info: https://ci.fuel-infra.org/job/nailgun_performance_tests/41/console

______________ IntegrationClusterTests.test_rerun_stopped_deploy _______________

args = (<nailgun.test.performance.integration.test_cluster.IntegrationClusterTests testMethod=test_rerun_stopped_deploy>,)
keywargs = {}, extra_args = []
entered_patchers = [<mock._patch object at 0x5101890>, <mock._patch object at 0x5101910>, <mock._patch object at 0x5101990>, <mock._patch object at 0x5101a10>]
exc_info = (<class 'webtest.app.AppError'>, AppError(u'Bad response: 400 Bad Request (not 200 OK or 3xx redirect for http:... stop - deployment is not running on environment \\\'5\\\'", "errors": []}\'',), <traceback object at 0x5d97dd0>)
patching = <mock._patch object at 0x5101890>
arg = <functools.partial object at 0x4aece68>

    @wraps(func)
    def patched(*args, **keywargs):
        # don't use a with here (backwards compatability with Python 2.4)
        extra_args = []
        entered_patchers = []

        # can't use try...except...finally because of Python 2.4
        # compatibility
        exc_info = tuple()
        try:
            try:
                for patching in patched.patchings:
                    arg = patching.__enter__()
                    entered_patchers.append(patching)
                    if patching.attribute_name is not None:
                        keywargs.update(arg)
                    elif patching.new is DEFAULT:
                        extra_args.append(arg)

                args += tuple(extra_args)
> return func(*args, **keywargs)

.tox/py26/lib/python2.6/site-packages/mock.py:1190:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nailgun/test/performance/integration/test_cluster.py:116: in test_rerun_stopped_deploy
    headers=self.default_headers)
.tox/py26/lib/python2.6/site-packages/webtest/app.py:277: in put
    content_type=content_type,
.tox/py26/lib/python2.6/site-packages/webtest/app.py:626: in _gen_request
    expect_errors=expect_errors)
.tox/py26/lib/python2.6/site-packages/webtest/app.py:521: in do_request
    self._check_status(status, res)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <webtest.app.TestApp object at 0x58adb10>, status = None
res = <400 Bad Request text/html body='{"message... []}'/91>

    def _check_status(self, status, res):
        if status == '*':
            return
        res_status = res.status
        if (isinstance(status, string_types) and '*' in status):
            if re.match(fnmatch.translate(status), res_status, re.I):
                return
        if isinstance(status, (list, tuple)):
            if res.status_int not in status:
                raise AppError(
                    "Bad response: %s (not one of %s for %s)\n%s",
                    res_status, ', '.join(map(str, status)),
                    res.request.url, res)
            return
        if status is None:
            if res.status_int >= 200 and res.status_int < 400:
                return
            raise AppError(
                "Bad response: %s (not 200 OK or 3xx redirect for %s)\n%s",
                res_status, res.request.url,
> res)
E AppError: Bad response: 400 Bad Request (not 200 OK or 3xx redirect for http://localhost/api/clusters/5/stop_deployment/)
E '{"message": "Nothing to stop - deployment is not running on environment \'5\'", "errors": []}'

.tox/py26/lib/python2.6/site-packages/webtest/app.py:550: AppError

Tags: non-release
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Sebastian Kalinowski (prmtl)
status: Confirmed → In Progress
tags: added: non-release
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/183011

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

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

commit ccf18458e8a451e9cfcbcaf3b7cdd2ba377427f3
Author: Sebastian Kalinowski <email address hidden>
Date: Thu May 14 13:31:27 2015 +0200

    Mock repo url check in performance tests

    Recently added repo url check task was mocked only in regular tests
    and was causing failures in performance tests.

    Change-Id: I59434455088fe3b27fc5f7b33b2e01917803468d
    Closes-Bug: #1454496

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