<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Karan,<br><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Please make sure you provide private network details as argument to --net-id option.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br>Also when you network, is the VM still getting IP? if so, then from which network is the VM getting IP address??<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Please paste the console output of "neutron net-list" and "nova boot" commands, it will be more helpful for debugging.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> Regards,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sushma.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 23, 2015 at 12:35 AM, digitalkaran <span dir="ltr"><<a href="mailto:digitalkaran@gmail.com" target="_blank">digitalkaran@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I have setup a simple 2 node setup of juno (Controller/Netwrok +<br>
Compute) by following openstack installation guide.<br>
However, when I try to boot an instance from cli I get following error.<br>
ERROR (ClientException): The server has either erred or is incapable<br>
of performing the requested operation. (HTTP 500) (Request-ID:<br>
req-90390fff-fb7f-4b40-8d3a-1e70d6f22451)<br>
<br>
This error happens only when I provide --nic net-id to nova boot but<br>
when I try to to boot without network then the instance boots<br>
successfully.<br>
<br>
nova --debug boot --poll --flavor m1.tiny --image<br>
cirros-0.3.3-x86_64 --security-group default demo-instance1 --nic<br>
net-id=919828d6-0c40-4167-8140-bf2ae60f616f<br>
<br>
<br>
I think the problem is with my network configuration that's why trying<br>
to create instance without network works fine.<br>
By following the official installation guide, I have created one<br>
physical provider network and am trying to boot using it.<br>
<br>
>From debug logs, nova always get stuck at this create server api call:<br>
<br>
REQ: curl -i '<a href="http://controller:8774/v2/f66287046354409ba7184b7aaf3f0e22/servers" target="_blank">http://controller:8774/v2/f66287046354409ba7184b7aaf3f0e22/servers</a>'<br>
-X POST -H "Accept: application/json" -H "Content-Type:<br>
application/json" -H "User-Agent: python-novaclient" -H<br>
"X-Auth-Project-Id: admin" -H "X-Auth-Token:<br>
{SHA1}0eb763e42c9dc6eb9cd5cae57c085155f4a05071" -d '{"server":<br>
{"name": "demo-instance1", "imageRef":<br>
"d90449ee-28ec-4618-b814-0bc9b1925218", "flavorRef": "1", "max_count":<br>
1, "min_count": 1, "networks": [{"uuid":<br>
"919828d6-0c40-4167-8140-bf2ae60f616f"}], "security_groups": [{"name":<br>
"default"}]}}'<br>
INFO (connectionpool:259) Starting new HTTP connection (1): controller<br>
DEBUG (connectionpool:390) Setting read timeout to 600.0<br>
<br>
And here is the traceback stack:<br>
<br>
Traceback (most recent call last):<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py",<br>
line 124, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
req.get_response(self.application)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in<br>
send<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack application,<br>
catch_exc_info=False)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in<br>
call_application<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack app_iter =<br>
application(self.environ, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
resp(environ, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token.py",<br>
line 661, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
self._app(env, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
resp(environ, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
resp(environ, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in<br>
__call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack response =<br>
self.app(environ, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
resp(environ, start_response)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack resp =<br>
self.call_func(req, *args, **self.kwargs)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in<br>
call_func<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
self.func(req, *args, **kwargs)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line<br>
910, in __call__<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
content_type, body, accept)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line<br>
975, in _process_stack<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
action_result = self.dispatch(meth, request, action_args)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line<br>
1059, in dispatch<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
method(req=request, **action_args)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py",<br>
line 958, in create<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
check_server_group_quota=check_server_group_quota)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/hooks.py", line 131, in inner<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack rv =<br>
f(*args, **kwargs)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1457, in<br>
create<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
check_server_group_quota=check_server_group_quota)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1079, in<br>
_create_instance<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack max_count)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 770, in<br>
_validate_and_build_base_options<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
requested_networks, max_count)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 479, in<br>
_check_requested_networks<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack max_count)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/network/api.py", line 48, in<br>
wrapped<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
func(self, context, *args, **kwargs)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/network/api.py", line 404, in<br>
validate_networks<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack requested_networks)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 245,<br>
in validate_networks<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
self.client.call(ctxt, 'validate_networks', networks=networks)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line<br>
389, in call<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack return<br>
self.prepare().call(ctxt, method, **kwargs)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line<br>
152, in call<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack retry=self.retry)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/transport.py", line<br>
90, in _send<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
timeout=timeout, retry=retry)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py",<br>
line 408, in send<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack retry=retry)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py",<br>
line 397, in _send<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack result =<br>
self._waiter.wait(msg_id, timeout)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py",<br>
line 285, in wait<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack reply,<br>
ending = self._poll_connection(msg_id, timeout)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack File<br>
"/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py",<br>
line 235, in _poll_connection<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack % msg_id)<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
MessagingTimeout: Timed out waiting for a reply to message ID<br>
9d01a116bdc34545951bf2bc44b4e5f3<br>
2015-03-22 23:52:26.145 5244 TRACE nova.api.openstack<br>
2015-03-22 23:52:26.220 5244 INFO nova.api.openstack<br>
[req-90390fff-fb7f-4b40-8d3a-1e70d6f22451 None]<br>
<a href="http://controller:8774/v2/f66287046354409ba7184b7aaf3f0e22/servers" target="_blank">http://controller:8774/v2/f66287046354409ba7184b7aaf3f0e22/servers</a><br>
returned with HTTP 500<br>
<br>
<br>
<br>
<br>
validate_networks seems to be a problem. I am not able to figure out<br>
what I am doing wrong: either something is wrong with configuration<br>
files or with neutron network. Need help to isolate the problem.<br>
<br>
<br>
Thanks<br>
Karan<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><br>Regards,<br></div>Sushma<br></div></div>
</div>
<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:11px;background-color:rgb(255,255,255)">The information in this message may be proprietary and/or </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:11px;background-color:rgb(255,255,255)">confidential</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:11px;background-color:rgb(255,255,255)">, and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify ATMECS and delete it from your computer.</span>