Comment 2 for bug 1378389

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

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

commit b7ffb49e2369913df0c6b7aeb72cbc0b1e42c947
Author: Matt Riedemann <email address hidden>
Date: Thu Oct 2 13:53:06 2014 -0700

    neutronv2: translate 401 and 404 neutron client errors in show_port

    This translates the PortNotFoundClient and Unauthorized exceptions from
    the neutron client's show_port call into the corresponding nova
    exceptions. This is useful in the case of a compute API calling
    network_api.show_port, e.g. the os-interface API. The compute API
    should expect a NovaException back from the network API rather than a
    NeutronClientException (since the compute API shouldn't know if it's
    talking to nova-network or neutron).

    Long-term we should refactor more of the neutronv2 API code to re-use
    the show_port method since there are several places where
    neutron.show_port is called directly with additional filtering, etc,
    but they potentially also have the same exception translation issues.

    Partial-Bug: #1378389

    Change-Id: Ic76d3af6b31e501d9ded5f60da9106d5ef88f4b7