neutron-lib: bogus error when OVO primary key missing

Bug #1738023 reported by Thomas Morin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Thomas Morin

Bug Description

I see the following in logs:

Dec 13 11:39:27.531721 ubuntu-xenial-rax-iad-0001416544 neutron-server[5115]: ERROR networking_bgpvpn.neutron.services.service_drivers.bagpipe.bagpipe NeutronPrimaryKeyMissing: For class str missing primary keys: set(['network_id'])

The 'for class str' is bogus, and seems to be due to the fact that at [1] we have

            raise o_exc.NeutronPrimaryKeyMissing(object_class=cls.__name__,
                                                 missing_keys=missing_keys)

instead of

            raise o_exc.NeutronPrimaryKeyMissing(object_class=cls,
                                                 missing_keys=missing_keys)

[1] https://github.com/openstack/neutron/blob/master/neutron/objects/base.py#L514

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/527725

Changed in neutron:
assignee: nobody → Thomas Morin (tmmorin-orange)
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/527725
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d198d71ffda41fb0e49eed3c6afb9642ed54356a
Submitter: Zuul
Branch: master

commit d198d71ffda41fb0e49eed3c6afb9642ed54356a
Author: Thomas Morin <email address hidden>
Date: Wed Dec 13 16:53:02 2017 +0100

    Fix NeutronPrimaryKeyMissing instantiation

    Change-Id: I6749b97c568bbf49df4a386825f80d61aa34a685
    Closes-Bug: 1738023

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 12.0.0.0b3

This issue was fixed in the openstack/neutron 12.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.