euca-run-instances ami-00000003 -k mykey -t m1.tiny error

Asked by wonderzou

hi :
 i am now install the openstack on ubuntu 11.04 , but i come across a problem:

#euca-run-instances ami-00000003 -k mykey -t m1.tiny
ApiError: Image must be available

2011-08-17 15:17:10,455 AUDIT nova.api [f0df5eb6-d43c-449f-8f81-96ad81395fc5 vpsee mycloud] Authenticated Request For vpsee:mycloud)
2011-08-17 15:17:10,455 DEBUG nova.api [-] action: RunInstances from (pid=4680) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:217
2011-08-17 15:17:10,456 DEBUG nova.api [-] arg: ImageId val: ami-00000003 from (pid=4680) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:219
2011-08-17 15:17:10,456 DEBUG nova.api [-] arg: KeyName val: mykey from (pid=4680) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:219
2011-08-17 15:17:10,456 DEBUG nova.api [-] arg: MaxCount val: 1 from (pid=4680) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:219
2011-08-17 15:17:10,456 DEBUG nova.api [-] arg: MinCount val: 1 from (pid=4680) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:219
2011-08-17 15:17:10,456 DEBUG nova.api [-] arg: InstanceType val: m1.tiny from (pid=4680) __call__ /usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py:219
2011-08-17 15:17:10,476 ERROR nova.api [f0df5eb6-d43c-449f-8f81-96ad81395fc5 vpsee mycloud] ApiError raised: Image must be available
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/usr/lib/pymodules/python2.7/nova/api/ec2/__init__.py", line 325, in __call__
(nova.api): TRACE: result = api_request.invoke(context)
(nova.api): TRACE: File "/usr/lib/pymodules/python2.7/nova/api/ec2/apirequest.py", line 78, in invoke
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/usr/lib/pymodules/python2.7/nova/api/ec2/cloud.py", line 1328, in run_instances
(nova.api): TRACE: raise exception.ApiError(_('Image must be available'))
(nova.api): TRACE: ApiError: Image must be available
(nova.api): TRACE:
2011-08-17 15:17:10,477 ERROR nova.api [f0df5eb6-d43c-449f-8f81-96ad81395fc5 vpsee mycloud] ApiError: Image must be available
2011-08-17 15:17:10,477 INFO nova.api [f0df5eb6-d43c-449f-8f81-96ad81395fc5 vpsee mycloud] 0.47101s 10.144.xxx.xxx POST /services/Cloud/ CloudController:RunInstances 400 [Boto/1.9b (linux2)] application/x-www-form-urlencoded text/xml

root@tiger-desktop:/etc/nova# euca-describe-images
IMAGE ami-00000003 mybucket/machine.manifest.xml downloading private x86_64 machine aki-00000001 ari-00000002 instance-store
IMAGE ari-00000002 mybucket/ramdisk.manifest.xml available private x86_64 ramdisk instance-store
IMAGE aki-00000001 mybucket/kernel.manifest.xml available private x86_64 kernel instance-store

i searched without any useful information.
hope someone give me a hand?

thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
wonderzou
Solved:
Last query:
Last reply:
Revision history for this message
Brian Lamar (blamar) said :
#1

IMAGE ami-00000003 mybucket/machine.manifest.xml downloading private x86_64 machine aki-00000001 ari-00000002 instance-store

This says that this image is in a "downloading" state. It must be "available" before you'll be able to make an instance. Unfortunately I can't give you any more information on *why* it's downloading (if it's been in that state for a long while something might be wrong).

Revision history for this message
wonderzou (wonder-zou) said :
#2

HI Brian:
   thank you for the reply.

i resolved this by modprobe kvm ; and restart the nova-compute process.
now the state is available.

thank you agian:)