<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Florian<br><br></div>I observed this kind of issue when there is race condition. <br><br></div>1. RabbitMQ is NOT running on controller-node<br></div>2. You issue nova-network from compute-node. Now this step hangs. <br>
</div>3. Just see what is happening in nova-api.log on controller(tail -f /var/log/nova/nova-api.log)<br></div>4. Now you start the RabbitMQ on the controller node.<br></div>5. nova-network command compute returns the error. Also you will see 'timeout' error in nova-api.log.<br>
<br></div><div>From your log I suspect this because initially RabitMQ was not up. Looks like you started it afterwards.<br></div>Did you try to run the same 'nova-network' command for the second time ? i.e after restarting the rabbitMQ ? <br>
<br></div>-Dheerendra<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 3:47 PM, Florian Lindner <span dir="ltr"><<a href="mailto:mailinglists@xgm.de" target="_blank">mailinglists@xgm.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Dienstag, 29. Oktober 2013, 14:32:00 schrieb Razique Mahroua:<br>
<div class="im">> You are using Neutron?<br>
> Looks like the Neutron server is unable to perform the request actually<br>
<br>
</div>Actually no, I don't think so, I think I use the nova-network.<br>
<br>
The documentation <a href="http://docs.openstack.org/havana/install-guide/install/apt/content/" target="_blank">http://docs.openstack.org/havana/install-guide/install/apt/content/</a> says:<br>
<br>
Configuring Networking can be one of the most bewildering experiences you will<br>
encounter when working with OpenStack. To assist in this we have chosen the<br>
simplest production-ready configuration for this guide: the legacy networking<br>
in OpenStack Compute, with a flat network, that takes care of DHCP.<br>
<br>
This setup uses "multi-host" functionality: the networking is configured to be<br>
highly available by splitting networking functionality across multiple hosts.<br>
As a result, there is no single network controller that acts as a single point<br>
of failure. Because each compute node is configured for networking in this<br>
setup, no additional networking configuration is required on the controller.<br>
<br>
(Chapter 5: Enabling Networking)<br>
<br>
and I have installed the nova-network package.<br>
<br>
I've downloaded my entire /etc to <a href="http://xgm.de/upload/etc/" target="_blank">http://xgm.de/upload/etc/</a> if you or anyone<br>
else wants to have a look! Yes, these "123" are the actual passwords, it's<br>
just from a VM on my local computer. ;-)<br>
<br>
Thanks a lot!<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On October 29, 2013 at 12:00:18, Florian Lindner (<a href="mailto:mailinglists@xgm.de">mailinglists@xgm.de</a>)<br>
> wrote:<br>
> Am Montag, 28. Oktober 2013, 13:44:00 schrieb Craig E. Ward:<br>
> > On the RabbitMQ server, are vhost and user id setup correctly?<br>
><br>
> Ok, part of the problem seemed to be that the documentation assumed I set<br>
> the password guest for the rabbit guest account. Did that now and the<br>
> problem changed:<br>
><br>
> root@controller:~# nova network-create vmnet --fixed-range-v4=<a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> --<br>
> bridge-interface=br100 --multi-host=T<br>
> ERROR: The server has either erred or is incapable of performing the<br>
> requested operation. (HTTP 500) (Request-ID:<br>
> req-900a80bd-dfc1-49fc-9599-239fd5b9b7e3)<br>
><br>
> nova-api.log shows:<br>
><br>
> <a href="http://pastebin.com/raw.php?i=13U8a4Na" target="_blank">http://pastebin.com/raw.php?i=13U8a4Na</a><br>
><br>
><br>
> 2013-10-29 19:14:18.587 1272 INFO nova.osapi_compute.wsgi.server [-] (1272)<br>
> accepted ('192.168.122.10', 53116)<br>
> 2013-10-29 19:14:19.207 1272 INFO nova.openstack.common.rpc.common<br>
> [req-900a80bd-dfc1-49fc-9599-239fd5b9b7e3 a1dd41c156c64810b41d46d4062a2b17<br>
> 68d6cb4e2ceb4700931b6489ad25fb6f] Connected to AMQP server on<br>
> controller:5672 2013-10-29 19:14:19.218 1272 INFO<br>
> nova.openstack.common.rpc.common [req-900a80bd-dfc1-49fc-9599-239fd5b9b7e3<br>
> a1dd41c156c64810b41d46d4062a2b17 68d6cb4e2ceb4700931b6489ad25fb6f]<br>
> Connected to AMQP server on controller:5672 2013-10-29 19:15:19.238 1272<br>
> ERROR nova.api.openstack [req-900a80bd- dfc1-49fc-9599-239fd5b9b7e3<br>
> a1dd41c156c64810b41d46d4062a2b17<br>
> 68d6cb4e2ceb4700931b6489ad25fb6f] Caught error: Timeout while waiting on RPC<br>
> response - topic: "network", RPC method: "create_networks" info:<br>
> "<unknown>" 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack Traceback<br>
> (most recent call last):<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 119,<br>
> in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> req.get_response(self.application)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack application,<br>
> catch_exc_info=False)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in<br>
> call_application<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack app_iter =<br>
> application(self.environ, start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return resp(environ,<br>
> start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py",<br>
> line 539, in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return self.app(env,<br>
> start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return resp(environ,<br>
> start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return resp(environ,<br>
> start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in<br>
> __call__ 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack response =<br>
> self.app(environ, start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return resp(environ,<br>
> start_response)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack resp =<br>
> self.call_func(req, *args, **self.kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> self.func(req, *args, **kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 917, in<br>
> __call__<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack content_type, body,<br>
> accept)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 976, in<br>
> _process_stack<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack action_result =<br>
> self.dispatch(meth, request, action_args)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1057, in<br>
> dispatch<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> method(req=request, **action_args)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-<br>
> packages/nova/api/openstack/compute/contrib/os_networks.py", line 126, in<br>
> create<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack network =<br>
> self.network_api.create(context, **params)[0]<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 93, in wrapped<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return func(self,<br>
> context, *args, **kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 142, in create<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> self.network_rpcapi.create_networks(context, **kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 102, in<br>
> create_networks<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> self.client.call(ctxt, 'create_networks', **kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/rpcclient.py", line 85, in call<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> self._invoke(self.proxy.call, ctxt, method, **kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/rpcclient.py", line 63, in _invoke<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack return<br>
> cast_or_call(ctxt, msg, **self.kwargs)<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack File<br>
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line<br>
> 130, in call<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack <a href="http://exc.info" target="_blank">exc.info</a>,<br>
> real_topic, msg.get('method'))<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack Timeout: Timeout while<br>
> waiting on RPC response - topic: "network", RPC method: "create_networks"<br>
> info: "<unknown>"<br>
> 2013-10-29 19:15:19.238 1272 TRACE nova.api.openstack<br>
> 2013-10-29 19:15:19.249 1272 INFO nova.api.openstack [req-900a80bd-<br>
> dfc1-49fc-9599-239fd5b9b7e3 a1dd41c156c64810b41d46d4062a2b17<br>
> 68d6cb4e2ceb4700931b6489ad25fb6f]<br>
> <a href="http://controller:8774/v2/68d6cb4e2ceb4700931b6489ad25fb6f/os-networks" target="_blank">http://controller:8774/v2/68d6cb4e2ceb4700931b6489ad25fb6f/os-networks</a><br>
> returned with HTTP 500<br>
> 2013-10-29 19:15:19.255 1272 INFO nova.osapi_compute.wsgi.server<br>
> [req-900a80bd-dfc1-49fc-9599-239fd5b9b7e3 a1dd41c156c64810b41d46d4062a2b17<br>
> 68d6cb4e2ceb4700931b6489ad25fb6f] 192.168.122.10 "POST<br>
> /v2/68d6cb4e2ceb4700931b6489ad25fb6f/os-networks HTTP/1.1" status: 500 len:<br>
> 335 time: 60.6673729<br>
><br>
> Sorry, I got not idea...<br>
><br>
> Thanks!<br>
> Florian<br>
><br>
> > % rabbitmqctl list_users<br>
> ><br>
> > % rabbitmqctl list_vhosts<br>
> ><br>
> > The user and vhost should match what is in the OpenStack configurations.<br>
> ><br>
> > On 10/28/13 1:14 PM, Florian Lindner wrote:<br>
> > > Am Montag, 28. Oktober 2013, 12:04:02 schrieb Razique Mahroua:<br>
> > >> hey<br>
> > >> is «controller» a hostame all ur servers can resolve?<br>
> > ><br>
> > > Yes, set in /etc/hosts.<br>
> > ><br>
> > > Regards,<br>
> > > Florian<br>
> > ><br>
> > >> - Razique<br>
> > >><br>
> > >> On Oct 28, 2013, at 11:40, Florian Lindner <<a href="mailto:mailinglists@xgm.de">mailinglists@xgm.de</a>> wrote:<br>
> > >>> Hello,<br>
> > >>><br>
> > >>> I've installed OpenStack on a Ubuntu 12.04 VM according to the install<br>
> > >>> guide. It worked fine until I created the compute node on a second VM<br>
> > >>> and<br>
> > >>> tried to set up nova networking:<br>
> > >>><br>
> > >>> <a href="http://docs.openstack.org/havana/install-guide/install/apt/content/nov" target="_blank">http://docs.openstack.org/havana/install-guide/install/apt/content/nov</a><br>
> > >>> a-> >>> ne twork.html<br>
> > >>><br>
> > >>> # nova network-create vmnet --fixed-range-v4=<a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> --bridge-<br>
> > >>> interface=br100 --multi-host=T<br>
> > >>><br>
> > >>> just does nothing until canceled. I tried on the controller and<br>
> > >>> compute1<br>
> > >>> node.<br>
> > >>><br>
> > >>> nova-api.log shows:<br>
> > >>><br>
> > >>> ERROR nova.openstack.common.rpc.common AMQP server on controller:5672<br>
> > >>> is<br>
> > >>> unreachable: Socket closed. Trying again in 1 seconds.<br>
> > >>> INFO nova.openstack.common.rpc.common Reconnecting to AMQP server on<br>
> > >>> controller:5672<br>
> > >>><br>
> > >>> controller:~# netstat -lpn | grep beam<br>
> > >>> tcp 0 0 <a href="http://0.0.0.0:36595" target="_blank">0.0.0.0:36595</a> 0.0.0.0:*<br>
> > >>> LISTEN<br>
> > >>> 1045/beam<br>
> > >>> tcp6 0 0 :::5672 :::*<br>
> > >>> LISTEN<br>
> > >>> 1045/beam<br>
> > >>><br>
> > >>> It listens on this port, but IPv6. IMO on linux listing on an IPv6<br>
> > >>> port<br>
> > >>> also means listening on the same v4 port.<br>
> > >>><br>
> > >>> What's wrong with the installation?<br>
<br>
<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>
</div></div></blockquote></div><br></div>