[OVO] UT fails when setting new_facade to True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Lujin Luo |
Bug Description
How to reproduce:
1) Set new_facade = True in any OVO object. I tried PortBinding(), Port() and Network().
2) Run python -m testtools.run neutron/
or python -m testtools.run neutron/
3) Example of failures:
=======
ERROR: neutron.
-------
Traceback (most recent call last):
File "neutron/
return f(self, *args, **kwargs)
File "neutron/
return f(self, *args, **kwargs)
File "/home/
return func(*args, **keywargs)
File "neutron/
obj.update()
File "neutron/
self.
File "/home/
self.
File "/home/
self.
File "/home/
state_
sqlalchemy.
I believe something merged after Feb. 9th breaks them. As in [1], no codes changes from Feb. 9th but it fails on recheck on Feb. 20th.
[1] https:/
Update =======
I think it is [1] which introduces new_facade attr is causing trouble. I need to double check.
=======
Update on 06/03/2018
After some more digging, I found the root cause of this bug is due to new engine facade will start a new session. then these two lines [2] are not applied.
(py27) stack@luo-
Tests running...
> /home/stack/
-> print self.context
(Pdb) c
<neutron_
<sqlalchemy.
> /home/stack/
-> print context
(Pdb) c
<neutron_
<sqlalchemy.
> /home/stack/
-> print context
(Pdb) c
<neutron_
<sqlalchemy.
[2] https:/
description: | updated |
Changed in neutron: | |
assignee: | nobody → Lujin Luo (luo-lujin) |
description: | updated |
description: | updated |
tags: | added: neutron-proactive-backport-potential |
tags: | added: neutron-easy-proactive-backport-potential |
tags: | removed: neutron-easy-proactive-backport-potential neutron-proactive-backport-potential |
Fix proposed to branch: master /review. openstack. org/551192
Review: https:/