NeutronV2 API is missing associate method.

Bug #1293539 reported by Leandro Ignacio Costantino
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Leandro Ignacio Costantino

Bug Description

Using nova network-associate-host w/neutron an error is returned because associate method is not defined in NeutronV2API.

Also, NotImplementedError is not being handled.

----
2014-03-17 09:12:15.783 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2014-03-17 09:12:15.783 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch
2014-03-17 09:12:15.783 TRACE nova.api.openstack return method(req=request, **action_args)
2014-03-17 09:12:15.783 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/compute/contrib/networks_associate.py", line 60, in _associate_host
2014-03-17 09:12:15.783 TRACE nova.api.openstack self.network_api.associate(context, id,
2014-03-17 09:12:15.783 TRACE nova.api.openstack AttributeError: 'API' object has no attribute 'associate'
2014-03-17 09:12:15.783 TRACE nova.api.openstack
-------------------------

Changed in nova:
assignee: nobody → Leandro Ignacio Costantino (leandro-i-costantino)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Matt Riedemann (mriedem)
tags: added: havana-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/80962
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f349b7c80670f1993fb35bfd1d2bbd3ccbe16fef
Submitter: Jenkins
Branch: master

commit f349b7c80670f1993fb35bfd1d2bbd3ccbe16fef
Author: Leandro I. Costantino <email address hidden>
Date: Mon Mar 17 09:09:04 2014 -0300

    Catch NotImplementedError on Network Associate

    When trying to associate/disassociate a network both for project/host
    using neutron a 500 error is returned because the "associate" method is
    not even defined in neutronv2 api.

    The changes are:
       * Add missing associate method to neutronv2 api and raise
         NotImplementedError
       * Catch NotImplementedError on the API to return the proper error
         code on network associate/disassociate operations.
       * Catch NotImplementedError on os_network when associating a network

    Closes-Bug: #1293539
    Change-Id: I75b980500f0f171b065b7606baf201ab89848e92

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-rc1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-rc1 → 2014.1
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.