yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #63078
[Bug 1669528] Re: portbinding update fails with ObjectDeletedError
Reviewed: https://review.openstack.org/441231
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=fc563eaabec392281be90bd2472bed4f6506cb40
Submitter: Jenkins
Branch: master
commit fc563eaabec392281be90bd2472bed4f6506cb40
Author: Kevin Benton <kevin@xxxxxxxxxx>
Date: Fri Mar 3 08:51:33 2017 -0800
deepcopy binding and binding levels avoid expiration
Perform a deepcopy on the sqla objects passed into the PortContext
so we get detached versions of them safe to reference forever.
This is necessary because the PortContexts outlive the
transaction context managers they are creating in which means an
object can be expired and result in a query after a commit
(e.g. in bind_port_if_needed) that will fail and result in an
exception.
This required a few additional explicit session.merge calls to deal
with cases where touching the mech context was implicitly expected
to modify the DB state on the next commit.
Closes-Bug: #1669528
Change-Id: Ib5ba2daa80acba53c082bade1f61a3ee44ca41fc
** 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/1669528
Title:
portbinding update fails with ObjectDeletedError
Status in neutron:
Fix Released
Bug description:
The gate-tempest-dsvm-neutron-linuxbridge-ubuntu-xenial gate failed in
a recent neutron change [1]. Digging into the logs [2] it appears to
be DB related::
--
2017-03-01 15:47:17.800 1412 ERROR oslo_messaging.rpc.server ObjectDeletedError: Instance '<PortBinding at 0x7f9abdd7af10>' has been deleted, or its row is otherwise not present.
--
Based on logstash [3], this appears to be a frequent error. It's not
clear to me if neutron is really the issue here, or if something else
is happening and causing the neutron error.
[1] https://review.openstack.org/#/c/422210/
[2] http://logs.openstack.org/10/422210/9/check/gate-tempest-dsvm-neutron-linuxbridge-ubuntu-xenial/f639199/logs/screen-q-svc.txt.gz?
[3] http://logstash.openstack.org/#dashboard/file/logstash.json?query=message%3A%5C%22ObjectDeletedError%5C%22
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1669528/+subscriptions
References