<div>Thank you for you answer.</div><div>Actually, the problem was related to many issues ... I tried to solve them.</div><div>However, I am still not able to launch an instance. When booting the image, everything seems to be ok (no errors) but the status of the instance stucks on "BUILD" and does not switch to "Active".</div>
<div>Here is the output of boot --debug:</div><div>nova --debug boot --flavor 1 --image 387e6ac0-9e51-449f-871f-5c350d28a05f op1</div><div>connect: (ip, 5000)</div><div>send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: ip:5000\r\nContent-Length: 117\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "secretword"}}}'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: Content-Type: application/json</div><div>header: Vary: X-Auth-Token</div><div>header: Date: Tue, 04 Sep 2012 10:56:33 GMT</div><div>header: Transfer-Encoding: chunked</div>
<div>connect: (ip, 8774)</div><div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/flavors/1 HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-3f66603d-05e5-4603-bce6-621b528719c4</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 349</div><div>header: Date: Tue, 04 Sep 2012 10:56:33 GMT</div>
<div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/images/387e6ac0-9e51-449f-871f-5c350d28a05f HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-578567ec-d4a1-40e4-bf7f-00e57af73f7e</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 786</div><div>header: Date: Tue, 04 Sep 2012 10:56:33 GMT</div>
<div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/images/387e6ac0-9e51-449f-871f-5c350d28a05f HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-18d1f242-ff9b-49a4-abd6-1e4f975e7cbc</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 786</div><div>header: Date: Tue, 04 Sep 2012 10:56:33 GMT</div>
<div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/flavors/1 HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-95eb694e-7ce6-47e6-b64b-bca88cceb8a7</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 349</div><div>header: Date: Tue, 04 Sep 2012 10:56:33 GMT</div>
<div>send: u'POST /v2/141d12e2431f47a5bf77f90da4800960/servers HTTP/1.1\r\nHost: ip:8774\r\nContent-Length: 129\r\nx-auth-project-id: openstackDemo\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"server": {"min_count": 1, "flavorRef": "1", "name": "op1", "imageRef": "387e6ac0-9e51-449f-871f-5c350d28a05f", "max_count": 1}}'</div>
<div>reply: 'HTTP/1.1 202 Accepted\r\n'</div><div>header: X-Compute-Request-Id: req-cda73f6f-6410-4368-af4a-4b29018e0ae0</div><div>header: Location: <a href="http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers/2314f007-d446-477a-bcf0-6a5f77d4d25b">http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers/2314f007-d446-477a-bcf0-6a5f77d4d25b</a></div>
<div>header: Content-Type: application/json</div><div>header: Content-Length: 396</div><div>header: Date: Tue, 04 Sep 2012 10:56:34 GMT</div><div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/servers/2314f007-d446-477a-bcf0-6a5f77d4d25b HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-f64a287d-26b3-47ca-8287-a506e53a52e8</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 1267</div><div>
header: Date: Tue, 04 Sep 2012 10:56:34 GMT</div><div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/flavors/1 HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-72fe38ae-5696-460b-ae31-00c3514cf996</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 349</div><div>header: Date: Tue, 04 Sep 2012 10:56:34 GMT</div>
<div>send: u'GET /v2/141d12e2431f47a5bf77f90da4800960/images/387e6ac0-9e51-449f-871f-5c350d28a05f HTTP/1.1\r\nHost: ip:8774\r\nx-auth-project-id: openstackDemo\r\nx-auth-token: db508fb3c43d455eb8f55a089a5a9812\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'</div>
<div>reply: 'HTTP/1.1 200 OK\r\n'</div><div>header: X-Compute-Request-Id: req-c5c6c0df-4ac7-4f50-b92a-35afb89aaa45</div><div>header: Content-Type: application/json</div><div>header: Content-Length: 786</div><div>header: Date: Tue, 04 Sep 2012 10:56:35 GMT</div>
<div>+-------------------------------------+--------------------------------------+</div><div>| Property | Value |</div><div>+-------------------------------------+--------------------------------------+</div>
<div>| OS-DCF:diskConfig | MANUAL |</div><div>| OS-EXT-SRV-ATTR:host | None |</div><div>| OS-EXT-SRV-ATTR:hypervisor_hostname | None |</div>
<div>| OS-EXT-SRV-ATTR:instance_name | instance-00000045 |</div><div>| OS-EXT-STS:power_state | 0 |</div><div>| OS-EXT-STS:task_state | scheduling |</div>
<div>| OS-EXT-STS:vm_state | building |</div><div>| accessIPv4 | |</div><div>| accessIPv6 | |</div>
<div>| adminPass | vRxK5r8mYK6H |</div><div>| config_drive | |</div><div>| created | 2012-09-04T10:56:34Z |</div>
<div>| flavor | m1.tiny |</div><div>| hostId | |</div><div>| id | 2314f007-d446-477a-bcf0-6a5f77d4d25b |</div>
<div>| image | tty-linux |</div><div>| key_name | |</div><div>| metadata | {} |</div>
<div>| name | op1 |</div><div>| progress | 0 |</div><div>| status | BUILD |</div>
<div>| tenant_id | 141d12e2431f47a5bf77f90da4800960 |</div><div>| updated | 2012-09-04T10:56:34Z |</div><div>| user_id | cf8971efd8934844b559d26e238506cc |</div>
<div>+-------------------------------------+--------------------------------------+</div><div><br></div><div>Log files (nova-api, nova-scheduler, nova-compute, nova-network) show no errors.</div><div>"nova-manage logs errors" shows no errors.</div>
<div><br></div><div>When I try to launch "nova console-log op1", it shows the http 500 error. Then a new timeout error is added to nova-api.log. Here is the error shown in nova-api.log</div><div>2012-09-04 08:31:01 DEBUG nova.rpc.amqp [req-0c9fe15a-0d0c-4e4a-a506-aff83886bc48 cf8971efd8934844b559d26e238506cc 141d12e2431f47a5bf77f90da4800960] Making asynchronous cast on scheduler... from (pid=431) cast /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:351</div>
<div>2012-09-04 08:31:01 INFO nova.api.openstack.wsgi [req-0c9fe15a-0d0c-4e4a-a506-aff83886bc48 cf8971efd8934844b559d26e238506cc 141d12e2431f47a5bf77f90da4800960] <a href="http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers">http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers</a> returned with HTTP 202</div>
<div>2012-09-04 08:31:01 INFO nova.api.openstack.wsgi [req-3f4b9980-85cc-46ff-bf06-7d60659756f4 cf8971efd8934844b559d26e238506cc 141d12e2431f47a5bf77f90da4800960] GET <a href="http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers/83035d31-86d7-461e-b42e-b03300111766">http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers/83035d31-86d7-461e-b42e-b03300111766</a></div>
<div>"/var/log/nova/nova-api.log" 9795L, 2009777C 1,1 Top</div>
<div>2012-09-04 13:09:16 TRACE nova.rpc.common return connection.drain_events(**kwargs)</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 57, in drain_events</div>
<div>2012-09-04 13:09:16 TRACE nova.rpc.common return self.wait_multi(self.channels.values(), timeout=timeout)</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 63, in wait_multi</div>
<div>2012-09-04 13:09:16 TRACE nova.rpc.common chanmap.keys(), allowed_methods, timeout=timeout)</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 120, in _wait_multiple</div>
<div>2012-09-04 13:09:16 TRACE nova.rpc.common channel, method_sig, args, content = read_timeout(timeout)</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/kombu/transport/pyamqplib.py", line 94, in read_timeout</div>
<div>2012-09-04 13:09:16 TRACE nova.rpc.common return self.method_reader.read_method()</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method</div>
<div>2012-09-04 13:09:16 TRACE nova.rpc.common raise m</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common timeout: timed out</div><div>2012-09-04 13:09:16 TRACE nova.rpc.common</div><div>2012-09-04 13:09:16 ERROR nova.api.openstack [req-ebaafb8a-770f-467e-b0c4-d89527bc87b4 cf8971efd8934844b559d26e238506cc 141d12e2431f47a5bf77f90da4800960] Caught error: Timeout while waiting on RPC response.</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack Traceback (most recent call last):</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 41, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return req.get_response(self.application)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack application, catch_exc_info=False)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack app_iter = application(self.environ, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 176, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return self.app(env, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return resp(environ, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return resp(environ, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return resp(environ, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack response = self.app(environ, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return resp(environ, start_response)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return self.func(req, *args, **kwargs)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 803, in __call__</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack content_type, body, accept)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 851, in _process_stack</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 926, in dispatch</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return method(req=request, **action_args)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/console_output.py", line 57, in get_console_output</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack length)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 100, in wrapped</div><div>
2012-09-04 13:09:16 TRACE nova.api.openstack return func(self, context, target, *args, **kwargs)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1549, in get_console_output</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack instance, params=params)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 151, in _call_compute_message</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return self._cast_or_call_compute_message(rpc.call, *args, **kwargs)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 143, in _cast_or_call_compute_message</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return rpc_method(context, queue, kwargs)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 68, in call</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return _get_impl().call(context, topic, msg, timeout)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 674, in call</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack return rpc_amqp.call(context, topic, msg, timeout, Connection.pool)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 343, in call</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack rv = list(rv)</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 304, in __iter__</div><div>
2012-09-04 13:09:16 TRACE nova.api.openstack self.done()</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack self.gen.next()</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 301, in __iter__</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack self._iterator.next()</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 572, in iterconsume</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack yield self.ensure(_error_callback, _consume)</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 503, in ensure</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack error_callback(e)</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 553, in _error_callback</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack raise rpc_common.Timeout()</div>
<div>2012-09-04 13:09:16 TRACE nova.api.openstack Timeout: Timeout while waiting on RPC response.</div><div>2012-09-04 13:09:16 TRACE nova.api.openstack</div><div>2012-09-04 13:09:16 INFO nova.api.openstack [req-ebaafb8a-770f-467e-b0c4-d89527bc87b4 cf8971efd8934844b559d26e238506cc 141d12e2431f47a5bf77f90da4800960] <a href="http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers/2314f007-d446-477a-bcf0-6a5f77d4d25b/action">http://ip:8774/v2/141d12e2431f47a5bf77f90da4800960/servers/2314f007-d446-477a-bcf0-6a5f77d4d25b/action</a> returned with HTTP 500</div>
<div> </div><div><br></div><div><br><div class="gmail_quote">2012/9/3 Eoghan Glynn <span dir="ltr"><<a href="mailto:eglynn@redhat.com" target="_blank">eglynn@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
> While trying to create a VM instance on openstack, the boot command<br>
> (nova boot) returns the following error:<br>
> ---<br>
> ERROR: The server has either erred or is incapable of performing the<br>
> requested operation. (HTTP 500)<br>
> ---<br>
> everything seems to be working (nova services are starting).<br>
><br>
><br>
> I am using an Ubuntu 12.04 server (amd64) with Xen as a<br>
> virtualization technology + the Essex version of openstack<br>
><br>
><br>
> The used image was manually created (it is an ubuntu also). I can<br>
> start it via xm commands.<br>
><br>
><br>
> Any idea how to solve this problem?<br>
<br>
<br>
</div></div>The first step would be to surface more detailed information on the failure<br>
that has occurred.<br>
<br>
In Essex, most internal nova exceptions are mapped directly to 500 Server Error,<br>
which effectively hides the underlying error condition from the client.<br>
<br>
Folsom is more permissive in this regard, so that internal exceptions declared<br>
safe for exposure are returned to the user.<br>
<br>
So in your case, you'll need to scour the nova-api, nova-scheduler & nova-compute<br>
logs to get visibility on the underlying error condition.<br>
<br>
A quick short-cut would be to note the request ID returned (use "nova --debug boot ...")<br>
and then grep for this in the logs mentioned above.<br>
<br>
Cheers,<br>
Eoghan<br>
</blockquote></div><br><br clear="all"><div><br></div><br><br><br>
</div>