Reviewed:  https://review.opendev.org/692347
Committed: 
https://git.openstack.org/cgit/openstack/neutron/commit/?id=721887305038fe4449083eb6c33f355232c73555
Submitter: Zuul
Branch:    master

commit 721887305038fe4449083eb6c33f355232c73555
Author: Rodolfo Alonso Hernandez <ralon...@redhat.com>
Date:   Thu Oct 31 11:42:47 2019 +0000

    Set rootwrap daemon timeout for fullstack and functional tests
    
    Set a big timeout for rootwrap daemon in functional and fullstack
    tests. The value defined in 7800, the same as the Zuul jobs
    timeout.
    
    This timeout increase will prevent the daemon to close when
    executing a test root command, as described in the bug. An
    unexpected rootwrap daemon closure is not considered as a normal
    event during the test execution.
    
    The default value set in the configuration file is 600 seconds, the
    same as daemon default value. This timeout is increased only when
    OS_SUDO_TESTING=1, that means functional and fullstack tests, when
    using the script "tools/deploy_rootwrap.sh".
    
    Change-Id: I691300a4e9a7cccd8887bc8f95ba9cea32988bac
    Closes-Bug: #1850558


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1850558

Title:
  "AttributeError: 'str' object has no attribute 'content_type' in
  functional tests

Status in neutron:
  Fix Released

Bug description:
  It happen few times already in functional and fullstack tests that we
  had failure like:

  2019-10-24 11:57:35.161 5434 ERROR neutron Traceback (most recent call last):
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
  2019-10-24 11:57:35.161 5434 ERROR neutron     "__main__", mod_spec)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/runpy.py", line 85, in _run_code
  2019-10-24 11:57:35.161 5434 ERROR neutron     exec(code, run_globals)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/stestr/subunit_runner/run.py",
 line 99, in <module>
  2019-10-24 11:57:35.161 5434 ERROR neutron     main()
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/stestr/subunit_runner/run.py",
 line 90, in main
  2019-10-24 11:57:35.161 5434 ERROR neutron     testRunner=partial(runner, 
stdout=sys.stdout))
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/stestr/subunit_runner/program.py",
 line 185, in __init__
  2019-10-24 11:57:35.161 5434 ERROR neutron     self.runTests()
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/stestr/subunit_runner/program.py",
 line 226, in runTests
  2019-10-24 11:57:35.161 5434 ERROR neutron     self.result = 
testRunner.run(self.test)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/stestr/subunit_runner/run.py",
 line 52, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     test(result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
  2019-10-24 11:57:35.161 5434 ERROR neutron     return self.run(*args, **kwds)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 122, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     test(result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
  2019-10-24 11:57:35.161 5434 ERROR neutron     return self.run(*args, **kwds)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 122, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     test(result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
  2019-10-24 11:57:35.161 5434 ERROR neutron     return self.run(*args, **kwds)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 122, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     test(result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 84, in __call__
  2019-10-24 11:57:35.161 5434 ERROR neutron     return self.run(*args, **kwds)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/usr/lib/python3.6/unittest/suite.py", line 122, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     test(result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/unittest2/case.py",
 line 673, in __call__
  2019-10-24 11:57:35.161 5434 ERROR neutron     return self.run(*args, **kwds)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/testcase.py",
 line 671, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     return run_test.run(result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/runtest.py",
 line 80, in run
  2019-10-24 11:57:35.161 5434 ERROR neutron     return 
self._run_one(actual_result)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/runtest.py",
 line 94, in _run_one
  2019-10-24 11:57:35.161 5434 ERROR neutron     return 
self._run_prepared_result(ExtendedToOriginalDecorator(result))
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/runtest.py",
 line 108, in _run_prepared_result
  2019-10-24 11:57:35.161 5434 ERROR neutron     self._run_core()
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/runtest.py",
 line 162, in _run_core
  2019-10-24 11:57:35.161 5434 ERROR neutron     details=self.case.getDetails())
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/testresult/real.py",
 line 1446, in addSuccess
  2019-10-24 11:57:35.161 5434 ERROR neutron     return 
self.decorated.addSuccess(test, details=details)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/subunit/test_results.py",
 line 147, in addSuccess
  2019-10-24 11:57:35.161 5434 ERROR neutron     return 
self.super.addSuccess(test, details=details)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/subunit/test_results.py",
 line 72, in addSuccess
  2019-10-24 11:57:35.161 5434 ERROR neutron     return 
self.decorated.addSuccess(test, details=details)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/testresult/real.py",
 line 1446, in addSuccess
  2019-10-24 11:57:35.161 5434 ERROR neutron     return 
self.decorated.addSuccess(test, details=details)
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/testresult/real.py",
 line 1638, in addSuccess
  2019-10-24 11:57:35.161 5434 ERROR neutron     self._convert(test, None, 
details, 'success')
  2019-10-24 11:57:35.161 5434 ERROR neutron   File 
"/home/zuul/src/opendev.org/openstack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/testtools/testresult/real.py",
 line 1604, in _convert
  2019-10-24 11:57:35.161 5434 ERROR neutron     mime_type = 
repr(content.content_type)
  2019-10-24 11:57:35.161 5434 ERROR neutron AttributeError: 'str' object has 
no attribute 'content_type'

  Logstash query
  
http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22AttributeError%3A%20'str'%20object%20has%20no%20attribute%20'content_type'%5C%22

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1850558/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to