[nailgun] test_deployment_task_managers fails randomly

Bug #1448064 reported by Nikolay Markov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Medium
Nikolay Markov

Bug Description

=================================== FAILURES ===================================
________________ TestTaskManagers.test_deployment_task_managers ________________
[gw1] linux2 -- Python 2.6.9 /home/jenkins/workspace/verify-fuel-web/nailgun/.tox/py26/bin/python2.6
args = (<nailgun.test.integration.test_task_managers.TestTaskManagers testMethod=test_deployment_task_managers>,)
keywargs = {}, extra_args = []
entered_patchers = [<mock._patch object at 0x46ad850>, <mock._patch object at 0x46ad890>, <mock._patch object at 0x46ad950>, <mock._patch object at 0x46add90>]
exc_info = (<class '_pytest.assertion.reinterpret.AssertionError'>, AssertionError('44 != 100',), <traceback object at 0x65b05a8>)
patching = <mock._patch object at 0x46ad850>
arg = <functools.partial object at 0x46b2050>

    @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/integration/test_task_managers.py:87: in test_deployment_task_managers
    self.env.clusters[0].name
nailgun/test/base.py:810: in wait_ready
    self._wait_task(task, timeout, message)
nailgun/test/base.py:803: in _wait_task
    self.tester.assertEqual(task.progress, 100)
E AssertionError: 44 != 100

Tags: tech-debt
Nikolay Markov (nmarkov)
Changed in fuel:
status: New → Confirmed
assignee: Fuel Python Team (fuel-python) → Nikolay Markov (nmarkov)
Dmitry Pyzhov (dpyzhov)
tags: added: tech-debt
Changed in fuel:
milestone: 6.1 → 7.0
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.