ImageNotFound until euca-describe-images

Bug #961451 reported by Joe Gordon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Michael Still

Bug Description

Environment: Ubuntu 12.04 with Nova Essex milestone-proposed (from source), and the bleeding edge PPA for remaining OpenStack components (https://launchpad.net/~openstack-ppa/+archive/bleeding-edge).

The first time I try to run an instance I get an error which only goes away when I do a euca-describe-images.

root@compy:/home/fubar# euca-run-instances --kernel aki-00000001 -t m1.tiny ami-00000002 --key project_503
ImageNotFound: Image aki-00000001 could not be found.

root@compy:/home/fubar# euca-run-instances --kernel aki-00000001 -t m1.tiny ami-00000002 --key project_503
ImageNotFound: Image aki-00000001 could not be found.

root@compy:/home/fubar# euca-describe-images
IMAGE aki-00000001 None (natty-server-uec-amd64-vmlinuz-virtual) available public kernel instance-store
IMAGE ami-00000002 None (natty-server-uec-amd64.img) available public machine instance-store

root@compy:/home/fubar# euca-run-instances --kernel aki-00000001 -t m1.tiny ami-00000002 --key project_503
RESERVATION r-us972xu5 project_503 default
INSTANCE i-00000001 ami-00000002 server-1 server-1 pending project_503 (project_503, None) 0 m1.tiny 2012-03-21T17:47:36.000Z unknown zone aki-00000001 monitoring-disabled instance-store

Revision history for this message
Vish Ishaya (vishvananda) wrote :

Not sure if need to be fixed. How do you know the id of the kernel that you wish to launch until you have described instances?

image ec2 ids are assigned on demand. You are cheating and assuming that the kernel will be called aki-00000001 because it was the first image you uploaded, but IMO this is an invalide assumption. We could work around this by forcing a list and retry on not-found, but IMO this case will never exist in a real deploy, it is only a concern in toy-cloud implementations where you happen to know the order that you ordered images.

I'm marking this won't fix for now. Feel free to reopen if you disagree.

Changed in nova:
status: New → Won't Fix
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Removing Glance form bug report as there isn't anything to fix there.

no longer affects: glance
Revision history for this message
Joe Gordon (jogo) wrote :

While I agree this case will never exist in a real deploy, it is an unexpected behavior that may arise while someone is evaluating nova.

While creating a work around in nova sounds a little excessive, perhaps returning a warning to the user is enough.

Revision history for this message
Joe Gordon (jogo) wrote :

So my vote is to re-open

Revision history for this message
Thierry Carrez (ttx) wrote :

Reopening as per Joe's request. Not sure where you would put the warning though ?

Changed in nova:
importance: Undecided → Wishlist
status: Won't Fix → Incomplete
Revision history for this message
Thierry Carrez (ttx) wrote :

@Joe: suggestion on where we could put the warning ?

Revision history for this message
Joe Gordon (jogo) wrote :

@Theirry, perhaps in the EC2 code where the "ImageNotFound" error is thrown? It could say something about how 'image ec2 ids are assigned on demand'

Thierry Carrez (ttx)
Changed in nova:
status: Incomplete → Confirmed
Michael Still (mikal)
Changed in nova:
assignee: nobody → Michael Still (mikalstill)
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/11855

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

Reviewed: https://review.openstack.org/11855
Committed: http://github.com/openstack/nova/commit/8527f3b77773d047272624af8abdbc9356a257f2
Submitter: Jenkins
Branch: master

commit 8527f3b77773d047272624af8abdbc9356a257f2
Author: Michael Still <email address hidden>
Date: Thu Aug 23 17:39:31 2012 +1000

    Provide a hint for missing EC2 image ids

    EC2 image ids are allocated when the images are listed for the first
    time. Remind users of this if they specify an image id which does
    not exist. Resolves bug 961451.

    Change-Id: Id7326ba32e58051dbbf25c3c940fd0c9cc611ff3

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
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.