Compute API in Compute API Reference

Bug #1648047 reported by mylq
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Matt Riedemann

Bug Description

List Virtual Interfaces
The postfix link isn't os-virtual-interfaces,infact,the link is os-interface in newton version.

-----------------------------------
Release: 15.0.0.0b2.dev306 on 'Wed Dec 7 02:22:20 2016, commit 8f24088'
SHA:
Source: Can't derive source file URL
URL: http://developer.openstack.org/api-ref/compute/

Tags: api-ref
Revision history for this message
mylq (leibnizlq) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :

os-virtual-interfaces is the correct route, we have a functional test for it:

https://github.com/openstack/nova/blob/82dd754726b602195ba86b3e78b16784c2a0761f/nova/tests/functional/api_sample_tests/test_virtual_interfaces.py#L31

The image you attached is likely pointing to the fact that os-virtual-interfaces only works with nova-network as the networking service:

https://github.com/openstack/nova/blob/82dd754726b602195ba86b3e78b16784c2a0761f/nova/api/openstack/compute/virtual_interfaces.py#L63

https://github.com/openstack/nova/blob/82dd754726b602195ba86b3e78b16784c2a0761f/nova/network/neutronv2/api.py#L1889

So the docs aren't wrong, but they should probably have a note that says the API is only implemented for nova-network, which has been deprecated since Newton.

Changed in nova:
assignee: nobody → Matt Riedemann (mriedem)
status: New → Triaged
importance: Undecided → Medium
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/408270

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

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

commit a35de0cd7b8ad3fb79e07282e40fcfc11a6b409a
Author: Matt Riedemann <email address hidden>
Date: Wed Dec 7 14:36:24 2016 -0500

    api-ref: note that os-virtual-interfaces is nova-network only

    Let's avoid confusion over errors from the os-virtual-interfaces
    exception when using Neutron and make a note that it's only
    implemented for nova-network.

    Change-Id: I7a136eecbeb5f89dfe98f51abf1188213bdca9fd
    Closes-Bug: #1648047

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 15.0.0.0b2

This issue was fixed in the openstack/nova 15.0.0.0b2 development milestone.

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.