_create_subnet_from_implicit_pool assumes external network

Bug #1441793 reported by Aaron Rosen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Aaron Rosen

Bug Description

2015-04-08 11:28:07.968 ERROR neutron.api.v2.resource [req-61265bfc-9503-452d-80e2-022c449feee0 admin f4c311581f4d4d138d87012d00ae3b24] create failed
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource result = method(request=request, **args)
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 461, in create
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource obj = obj_creator(request.context, **kwargs)
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 1348, in create_subnet
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource return self._create_subnet_from_implicit_pool(context, subnet)
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/db/db_base_plugin_v2.py", line 1285, in _create_subnet_from_implicit_pool
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource if network.external:
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource AttributeError: 'Network' object has no attribute 'external'
2015-04-08 11:28:07.968 TRACE neutron.api.v2.resource

Aaron Rosen (arosen)
Changed in neutron:
assignee: nobody → Aaron Rosen (arosen)
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/171770

Changed in neutron:
status: New → In Progress
Kyle Mestery (mestery)
Changed in neutron:
milestone: none → liberty-1
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/171770
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=bde4f6f767d3da4c3eca15390ea45a934f2ff398
Submitter: Jenkins
Branch: master

commit bde4f6f767d3da4c3eca15390ea45a934f2ff398
Author: Aaron Rosen <email address hidden>
Date: Mon Apr 20 12:45:12 2015 -0700

    _create_subnet_from_implicit_pool assumes external network extension

    network.external is only present if one is using the external_net_db
    mixin. This patch just adds a check to see network has the attribute
    external to avoid an Attribute error.

    Closes-bug: 1441793
    Change-Id: Ic003879b557a8c7ab52268a95d08d6d710618438

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (neutron-pecan)

Fix proposed to branch: neutron-pecan
Review: https://review.openstack.org/185072

Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-1 → 7.0.0
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.