Attaching tempest.log.before_fix, which shows how it is really needed to have context instantiated as part of transaction.
$ grep -c "... ok" tempest.log.before_fix 84
$ grep -c "... FAILED" tempest.log.before_fix 2
$ grep -nA12 "... FAILED" tempest.log.before_fix 472:{0} neutron_tempest_plugin.scenario.test_trunk.TrunkTest.test_trunk_subport_lifecycle [236280.466269s] ... FAILED 473- 474-Captured traceback: 475-~~~~~~~~~~~~~~~~~~~ 476- Traceback (most recent call last): 477- File "/opt/stack/neutron-tempest-plugin/neutron_tempest_plugin/scenario/test_trunk.py", line 201, in test_trunk_subport_lifecycle 478- self.wait_for_server_active(server=vm.server) 479- File "/opt/stack/neutron-tempest-plugin/neutron_tempest_plugin/scenario/base.py", line 380, in wait_for_server_active 480- server, constants.SERVER_STATUS_ACTIVE, client) 481- File "/opt/stack/neutron-tempest-plugin/neutron_tempest_plugin/scenario/base.py", line 370, in wait_for_server_status 482- waiters.wait_for_server_status(client, server['id'], status, **kwargs) 483- File "tempest/common/waiters.py", line 76, in wait_for_server_status 484- server_id=server_id) -- 778:{0} neutron_tempest_plugin.scenario.test_trunk.TrunkTest.test_trunk_subport_lifecycle [102.238741s] ... FAILED 779- 780-Captured traceback: 781-~~~~~~~~~~~~~~~~~~~ 782- Traceback (most recent call last): 783- File "/opt/stack/neutron-tempest-plugin/neutron_tempest_plugin/scenario/test_trunk.py", line 230, in test_trunk_subport_lifecycle 784- self._wait_for_port(port, status=constants.DOWN) 785- File "/opt/stack/neutron-tempest-plugin/neutron_tempest_plugin/scenario/test_trunk.py", line 141, in _wait_for_port 786- "status {!r}.".format(port['id'], status))) 787- File "/opt/stack/neutron-tempest-plugin/neutron_tempest_plugin/common/utils.py", line 82, in wait_until_true 788- raise exception 789- RuntimeError: Timed out waiting for port u'40509745-1509-4077-9cce-b0bf86070084' to transition to get status 'DOWN'. 790-
Attaching tempest. log.before_ fix, which shows how it is really needed to have context
instantiated as part of transaction.
$ grep -c "... ok" tempest. log.before_ fix
84
$ grep -c "... FAILED" tempest. log.before_ fix
2
$ grep -nA12 "... FAILED" tempest. log.before_ fix tempest_ plugin. scenario. test_trunk. TrunkTest. test_trunk_ subport_ lifecycle [236280.466269s] ... FAILED ~~~~~~~ ~~~~~~~ ~~ neutron- tempest- plugin/ neutron_ tempest_ plugin/ scenario/ test_trunk. py", line 201, in test_trunk_ subport_ lifecycle for_server_ active( server= vm.server) neutron- tempest- plugin/ neutron_ tempest_ plugin/ scenario/ base.py" , line 380, in wait_for_ server_ active SERVER_ STATUS_ ACTIVE, client) neutron- tempest- plugin/ neutron_ tempest_ plugin/ scenario/ base.py" , line 370, in wait_for_ server_ status wait_for_ server_ status( client, server['id'], status, **kwargs) common/ waiters. py", line 76, in wait_for_ server_ status id=server_ id) tempest_ plugin. scenario. test_trunk. TrunkTest. test_trunk_ subport_ lifecycle [102.238741s] ... FAILED ~~~~~~~ ~~~~~~~ ~~ neutron- tempest- plugin/ neutron_ tempest_ plugin/ scenario/ test_trunk. py", line 230, in test_trunk_ subport_ lifecycle for_port( port, status= constants. DOWN) neutron- tempest- plugin/ neutron_ tempest_ plugin/ scenario/ test_trunk. py", line 141, in _wait_for_port format( port['id' ], status))) neutron- tempest- plugin/ neutron_ tempest_ plugin/ common/ utils.py" , line 82, in wait_until_true 1509-4077- 9cce-b0bf860700 84' to transition to get status 'DOWN'.
472:{0} neutron_
473-
474-Captured traceback:
475-~~~
476- Traceback (most recent call last):
477- File "/opt/stack/
478- self.wait_
479- File "/opt/stack/
480- server, constants.
481- File "/opt/stack/
482- waiters.
483- File "tempest/
484- server_
--
778:{0} neutron_
779-
780-Captured traceback:
781-~~~
782- Traceback (most recent call last):
783- File "/opt/stack/
784- self._wait_
785- File "/opt/stack/
786- "status {!r}.".
787- File "/opt/stack/
788- raise exception
789- RuntimeError: Timed out waiting for port u'40509745-
790-