yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89654
[Bug 1989057] Re: [master] [functional] test__get_dvr_subnet_ids_on_host_query failing with oslo.db-12.1.0 release
Reviewed: https://review.opendev.org/c/openstack/neutron/+/856461
Committed: https://opendev.org/openstack/neutron/commit/9db653a9743c8675b834dae40e3c6b27deefdb95
Submitter: "Zuul (22348)"
Branch: master
commit 9db653a9743c8675b834dae40e3c6b27deefdb95
Author: Slawek Kaplonski <skaplons@xxxxxxxxxx>
Date: Thu Sep 8 12:36:14 2022 +0200
[Functional] Fix tests for oslo.db>=12.1.0
oslo.db 12.1.0 uncovered some issues in functional
tests, Fix:-
- test__get_dvr_subnet_ids_on_host_query by adding a db reader
context as without it _get_dvr_subnet_ids_on_host_query method was
returning a query object with an active db context and other
db transactions can't be executed with an active context.
- test_get_total_reservations_map by adding a db reader context
for get_total_reservations_map call
- _TestIsSessionActive by calling neutron.objects.network as it looks
for active session and since now autocommit is False for active
session we need to have _connections[1] in transaction object.
[1] https://review.opendev.org/c/openstack/neutron/+/843256
Co-authored-by: Yatin Karel <ykarel@xxxxxxxxxx>
Closes-bug: #1989057
Change-Id: Ic0b91f03b4eea817fa130e28236d7e007b481e30
** 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/1989057
Title:
[master] [functional] test__get_dvr_subnet_ids_on_host_query failing
with oslo.db-12.1.0 release
Status in neutron:
Fix Released
Bug description:
Fails as below:-
ft1.12: neutron.tests.functional.services.l3_router.test_l3_dvr_ha_router_plugin.L3DvrHATestCase.test__get_dvr_subnet_ids_on_host_querytesttools.testresult.real._StringException: Traceback (most recent call last):
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func
return f(self, *args, **kwargs)
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", line 182, in func
return f(self, *args, **kwargs)
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/functional/services/l3_router/test_l3_dvr_router_plugin.py", line 1754, in test__get_dvr_subnet_ids_on_host_query
self.core_plugin.update_port(
File "/home/zuul/src/opendev.org/openstack/neutron/neutron/common/utils.py", line 702, in inner
raise RuntimeError(_("Method %s cannot be called within a "
RuntimeError: Method <function Ml2Plugin.update_port at 0x7f39fb75de50> cannot be called within a transaction.
Logs:-
https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_fa7/828488/1/check/neutron-functional-with-uwsgi/fa7c800/testr_results.html
https://ae61986a45a6121e3a31-a2f117574c92282cf0ccc3fc53b9f219.ssl.cf2.rackcdn.com/855851/2/gate/neutron-functional-with-uwsgi/f56ec26/testr_results.html
Happening after oslo.db updated to 12.1.0 in u-c.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1989057/+subscriptions
References