fail to launch instances

Asked by Wayne A. Walls on 2011-01-31

I can flavor-list, I can image-list, but when I try to boot an instance it's kick out a 500 error on me.

###

OS: Ubuntu 10.04 on XenServer 5.6, all plug-ins installed
Nova installed from packages
Glance installed from packages

###

root@xbuntu01:~/openstack/images/glance# cloudservers flavor-list
+----+-----------+-------+------+
| ID | Name | RAM | Disk |
+----+-----------+-------+------+
| 1 | m1.tiny | 512 | 0 |
| 2 | m1.small | 2048 | 20 |
| 3 | m1.medium | 4096 | 40 |
| 4 | m1.large | 8192 | 80 |
| 5 | m1.xlarge | 16384 | 160 |
+----+-----------+-------+------+
root@xbuntu01:~/openstack/images/glance# cloudservers image-list
Matched GET /images/detail
DEBUG:routes.middleware:Matched GET /images/detail
Route path: 'images/detail', defaults: {'action': u'detail', 'controller': <glance.server.Controller object at 0x26fa910>}
DEBUG:routes.middleware:Route path: 'images/detail', defaults: {'action': u'detail', 'controller': <glance.server.Controller object at 0x26fa910>}
Match dict: {'action': u'detail', 'controller': <glance.server.Controller object at 0x26fa910>}
DEBUG:routes.middleware:Match dict: {'action': u'detail', 'controller': <glance.server.Controller object at 0x26fa910>}
Matched GET /images/detail
DEBUG:routes.middleware:Matched GET /images/detail
Route path: 'images/detail', defaults: {'action': u'detail', 'controller': <glance.registry.server.ImageController object at 0x2006850>}
DEBUG:routes.middleware:Route path: 'images/detail', defaults: {'action': u'detail', 'controller': <glance.registry.server.ImageController object at 0x2006850>}
Match dict: {'action': u'detail', 'controller': <glance.registry.server.ImageController object at 0x2006850>}
DEBUG:routes.middleware:Match dict: {'action': u'detail', 'controller': <glance.registry.server.ImageController object at 0x2006850>}
184.106.73.76 - - [31/Jan/2011 00:55:24] "GET /images/detail HTTP/1.1" 200 1024 0.011890
+----+---------+--------+
| ID | Name | Status |
+----+---------+--------+
| 1 | ramdisk | active |
| 2 | kernel | active |
| 3 | machine | active |
+----+---------+--------+
root@xbuntu01:~/openstack/images/glance# 127.0.0.1 - - [31/Jan/2011 00:55:24] "GET /images/detail HTTP/1.1" 200 1024 0.026510

root@xbuntu01:~/openstack/images/glance# cloudservers boot --flavor=2 --image=3 TEST
Traceback (most recent call last):
  File "/usr/local/bin/cloudservers", line 9, in <module>
    load_entry_point('python-cloudservers==1.2', 'console_scripts', 'cloudservers')()
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/shell.py", line 551, in main
    CloudserversShell().main(sys.argv[1:])
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/shell.py", line 144, in main
    args.func(args)
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/shell.py", line 284, in do_boot
    metadata, files)
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/servers.py", line 222, in create
    return self._create("/servers", body, "server")
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/base.py", line 34, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/client.py", line 86, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/client.py", line 70, in _cs_request
    **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/python_cloudservers-1.2-py2.6.egg/cloudservers/client.py", line 56, in request
    raise exceptions.from_response(resp, body)
cloudservers.exceptions.CloudServersException: list index out of range (HTTP 500)

Question information

Language:
English Edit question
Status:
Answered
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
2011-01-31
Last reply:
2011-02-05
Antony Messerli (antonym) said : #1

I ran into this as well, but found I had skipped a step. Make sure that euca2ools is installed and that you've added the keypair:

euca-add-keypair nova_key > nova_key.priv

Can you help with this problem?

Provide an answer of your own, or ask Wayne A. Walls for more information if necessary.

To post a message you must log in.