← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1413049] [NEW] _gather_port_ids_and_networks relies on cache being populated

 

Public bug reported:

in nova/network/neutronv2/api.py, in _gather_port_ids_and_networks, it calls:
ifaces = compute_utils.get_nw_info_for_instance(instance)

but this can return an empty list if the network info cache is not up to date or wrong. 
Instead I think it should call neutron list_ports.

a proposed patch is below.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1413049

Title:
  _gather_port_ids_and_networks relies on cache being populated

Status in OpenStack Compute (Nova):
  New

Bug description:
  in nova/network/neutronv2/api.py, in _gather_port_ids_and_networks, it calls:
  ifaces = compute_utils.get_nw_info_for_instance(instance)

  but this can return an empty list if the network info cache is not up to date or wrong. 
  Instead I think it should call neutron list_ports.

  a proposed patch is below.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1413049/+subscriptions


Follow ups

References