config-neutron: tempest port-create on network without subnet fails

Bug #1386382 reported by Hampapur Ajay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Hampapur Ajay

Bug Description

Observed following traceback when
tempest.api.network.test_networks.BulkNetworkOpsTestJSON.test_bulk_create_delete_port
is run. This is due to port created on network that doesn't have a subnet. This affects only master branch.

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 385, in plugin_create_port
    net_info = cfgdb.port_create(context, port['resource'])
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 3273, in port_create
    for ipam_ref in ipam_refs:
TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1625, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 460, in plugin_http_post_port
    return self.plugin_create_port(context, port)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 389, in plugin_create_port
    raise e
TypeError: 'NoneType' object is not iterable

Hampapur Ajay (hajay)
Changed in juniperopenstack:
assignee: nobody → Hampapur Ajay (hajay)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/4133
Committed: http://github.org/Juniper/contrail-controller/commit/43e34af7eb0eca5bf613190e16dcca8fb47bfc05
Submitter: Zuul
Branch: master

commit 43e34af7eb0eca5bf613190e16dcca8fb47bfc05
Author: Hampapur Ajay <email address hidden>
Date: Mon Oct 27 12:23:41 2014 -0700

If no subnet on network, don't try to iterate on None

Closes-Bug: #1386382

Change-Id: I96f765195ff431d6a1f32235a98b005dce095009

Hampapur Ajay (hajay)
Changed in juniperopenstack:
status: New → Fix Committed
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.