← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1296940] [NEW] Potential AttributeError in _get_servers if FlavorNotFound

 

Public bug reported:

In the Nova servers API (v2 and v3), this line could fail with an
AtributeError if there is a FlavorNotFound exception above it:

https://github.com/openstack/nova/blob/2014.1.b3/nova/api/openstack/compute/servers.py#L611

That code should either check if instance_list is empty first or set
instance_list to an empty InstanceList object if FlavorNotFound is hit.

** Affects: nova
     Importance: Low
     Assignee: Matt Riedemann (mriedem)
         Status: Triaged


** Tags: api unified-objects

** Changed in: nova
   Importance: Undecided => Low

** Changed in: nova
       Status: New => Triaged

** Changed in: nova
     Assignee: (unassigned) => Matt Riedemann (mriedem)

-- 
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/1296940

Title:
  Potential AttributeError in _get_servers if FlavorNotFound

Status in OpenStack Compute (Nova):
  Triaged

Bug description:
  In the Nova servers API (v2 and v3), this line could fail with an
  AtributeError if there is a FlavorNotFound exception above it:

  https://github.com/openstack/nova/blob/2014.1.b3/nova/api/openstack/compute/servers.py#L611

  That code should either check if instance_list is empty first or set
  instance_list to an empty InstanceList object if FlavorNotFound is
  hit.

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


Follow ups

References