Extraneous call to list all images in OSAPI Server Create

Bug #886139 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Brian Waldon

Bug Description

There is a call in nova/api/openstack/servers.py:Controller.create at line 366 that lists all images in Glance to ensure the requested image exists. Not only is this wasteful as one could simply ask for the specific image requested, but the logic to check whether an image exists is already implemented correctly in the compute api. We should remove this duplication of logic.

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/1323
Committed: http://github.com/openstack/nova/commit/2915d05d15f5b56f167abdb0577e74460046ba48
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 2915d05d15f5b56f167abdb0577e74460046ba48
Author: Brian Waldon <email address hidden>
Date: Fri Nov 4 10:25:07 2011 -0400

    Remove unnecessary image list in OSAPI

    Fixes bug 886139

    Change-Id: I152b0e29a5742b7fc0fb25fc64f5bfb25f351b56

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-1 → 2012.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.