Cisco N1K plugin: Network creation and Port creation dont go through when no profile id is specified.

Bug #1218588 reported by Abhishek Raut
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Abhishek Raut

Bug Description

Plugin: Cisco plugin with N1KV.

n1kv:profile_id is mandatory and hence the network and port creation dont go through if no n1kv:profile_id parameter is passed.
This raises a network binding/ port binding error.

2013-03-15 12:45:47 DEBUG [routes.middleware] Match dict: {'action': u'index', 'controller': wsgify(quantum.api.v2.resource.resource, RequestClass=<class 'quantum.api.v2.resource.Request'>), 'format': u'json'}
2013-03-15 12:45:47 ERROR [quantum.api.v2.resource] index failed
Traceback (most recent call last):
  File "/opt/stack/quantum/quantum/api/v2/resource.py", line 95, in resource
    result = method(request=request, **args)
  File "/opt/stack/quantum/quantum/api/v2/base.py", line 198, in index
    return self._items(request, True)
  File "/opt/stack/quantum/quantum/api/v2/base.py", line 168, in _items
    obj_list = obj_getter(request.context, **kwargs)
  File "/opt/stack/quantum/quantum/plugins/cisco/n1kv/n1k_quantum_plugin.py", line 427, in get_networks
    self._extend_network_dict_provider(context, net)
  File "/opt/stack/quantum/quantum/plugins/cisco/n1kv/n1k_quantum_plugin.py", line 159, in _extend_network_dict_provider
    network[provider.NETWORK_TYPE] = binding.network_type
AttributeError: 'NoneType' object has no attribute 'network_type'
2013-03-15 12:45:47 DEBUG [eventlet.wsgi.server] 10.0.2.15 - - [15/Mar/2013 12:45:47] "GET //v2.0/networks.json?router%3Aexternal=True HTTP/1.1" 500 215 0.052251

Tags: cisco
Abhishek Raut (abhraut)
Changed in neutron:
assignee: nobody → Abhishek Raut (abhraut)
Henry Gessau (gessau)
tags: added: cisco
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/44569

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Critical
milestone: none → havana-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/44569
Committed: http://github.com/openstack/neutron/commit/dc48ac1a9c02c236157347f715190a2b1107ec70
Submitter: Jenkins
Branch: master

commit dc48ac1a9c02c236157347f715190a2b1107ec70
Author: Abhishek Raut <email address hidden>
Date: Fri Aug 30 17:39:26 2013 -0700

    Allow default network and policy profiles

    Allow for default network/policy profile to be used if
    no network/policy profile is specified during network/port creation
    in the Cisco N1KV plugin.

    Change-Id: I6120abb5abb9a869eb7310453cf27dd8f72bfd1d
    Closes-Bug: #1218588

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
milestone: havana-3 → havana-rc1
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-rc1 → 2013.2
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.