OpenStack Compute (Nova)

Extraneous call to list all images in OSAPI Server Create

Reported by Brian Waldon on 2011-11-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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.

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) on 2011-11-17
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-1 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers