<div dir="ltr"><div><div><div><div><div><div><div><div>Hi Tony,<br><br></div>Your reply gave me a hint that nova-consoleauth service must be running. I did not start that service before so no token authentication was done. Now after starting the service, <br>$nova get-serial-console vm-check-6<br>+--------+-----------------------------------------------------------------+<br>| Type   | Url                                                             |<br>+--------+-----------------------------------------------------------------+<br>| serial | ws://<a href="http://127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6">127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6</a> |<br><br></div>Following <a href="http://docs.openstack.org/developer/nova/testing/serial-console.html">http://docs.openstack.org/developer/nova/testing/serial-console.html</a> <br><br>$ python client.py ws://<a href="http://127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6">127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6</a><br><br></div>..............hangs<br><br></div>Log at consoleauth shows that the token authentication is done.<br><br>Received Token: c2fb4073-79a0-44b9-a977-cc7a1fa074f6, {'instance_uuid': u'5a725707-440e-4cf1-b262-fdb6492ac4d7', 'access_url': u'ws://<a href="http://127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6">127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6</a>', 'token': u'c2fb4073-79a0-44b9-a977-cc7a1fa074f6', 'last_activity_at': 1450111951.325766, 'internal_access_path': None, 'console_type': u'serial', 'host': u'127.0.0.1', 'port': 10005}<br>2015-12-14 16:53:23.083 INFO nova.consoleauth.manager [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None] Checking Token: c2fb4073-79a0-44b9-a977-cc7a1fa074f6, True<br><br></div>Log at serial-proxy shows that it waits forever connecting to 127.0.0.1<br><br>127.0.0.1 - - [14/Dec/2015 16:53:22] "GET /?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6 HTTP/1.1" 101 -<br>127.0.0.1 - - [14/Dec/2015 16:53:22] <a href="http://127.0.0.1">127.0.0.1</a>: Plain non-SSL (ws://) WebSocket connection<br>127.0.0.1 - - [14/Dec/2015 16:53:22] <a href="http://127.0.0.1">127.0.0.1</a>: Version hybi-13, base64: 'False'<br>127.0.0.1 - - [14/Dec/2015 16:53:22] <a href="http://127.0.0.1">127.0.0.1</a>: Path: '/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6'<br>2015-12-14 16:53:23.011 INFO oslo_messaging._drivers.impl_rabbit [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None] Connecting to AMQP server on <a href="http://10.167.103.101:5672">10.167.103.101:5672</a><br>2015-12-14 16:53:23.040 INFO oslo_messaging._drivers.impl_rabbit [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None] Connected to AMQP server on <a href="http://10.167.103.101:5672">10.167.103.101:5672</a><br>2015-12-14 16:53:23.048 INFO oslo_messaging._drivers.impl_rabbit [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None] Connecting to AMQP server on <a href="http://10.167.103.101:5672">10.167.103.101:5672</a><br>2015-12-14 16:53:23.076 INFO oslo_messaging._drivers.impl_rabbit [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None] Connected to AMQP server on <a href="http://10.167.103.101:5672">10.167.103.101:5672</a><br>2015-12-14 16:53:23.220 INFO nova.console.websocketproxy [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None]   2: connect info: {u'instance_uuid': u'5a725707-440e-4cf1-b262-fdb6492ac4d7', u'internal_access_path': None, u'last_activity_at': 1450111951.325766, u'console_type': u'serial', u'host': u'127.0.0.1', u'token': u'c2fb4073-79a0-44b9-a977-cc7a1fa074f6', u'access_url': u'ws://<a href="http://127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6">127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6</a>', u'port': 10005}<br>2015-12-14 16:53:23.221 INFO nova.console.websocketproxy [req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None]   2: connecting to: <a href="http://127.0.0.1:10005">127.0.0.1:10005</a><br><br><br></div>In nova.conf I have only made enabled=true under [serial-proxy] section. Other values are not specified so that letting the nova take default values. I have read that with default values single node set up will not have any issues. <br><br></div>I thought the issue might be because of websocket, so I was not able to install websocket module of python in my system.  <br><br></div>system-specifications :<br><div>    <br>    uname -m = aarch64<br>    uname -r = 4.2.0-03373-gdded870-dirty<br>    uname -s = Linux<br>    uname -v = #4 SMP Tue Dec 8 14:47:17 IST 2015<br>    <br>Error while installing :<br>    libev/ev.c:45:22: fatal error: config.h: No such file or directory<br>     #  include "config.h"<br>                          ^<br>    compilation terminated.<br>    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1<br>    <br><br></div><div>Please help me how to proceed further. <br><br></div><div>Thanks,<br></div><div>Prathyusha<br></div><div><div><div><div><br><div><br><br><div><br><br><div><div><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 12:41 PM, Prathyusha Guduri <span dir="ltr"><<a href="mailto:prathyushaconnects@gmail.com" target="_blank">prathyushaconnects@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Tony,<br><br><br></div>Thanks a lot for your response.<br></div>I actually did a rejoin-stack.sh which will also restart n-api and all other services. But still the same issue.<br><br></div><div>Anyway now that I've to run all over again, will change my local.conf according to the guide and run stack. <br><br></div><div>Will keep you updated. <br><br></div><div>Thanks,<br></div><div>Prathyusha<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Dec 14, 2015 at 4:09 AM, Tony Breeds <span dir="ltr"><<a href="mailto:tony@bakeyournoodle.com" target="_blank">tony@bakeyournoodle.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div><div>On Fri, Dec 11, 2015 at 11:07:02AM +0530, Prathyusha Guduri wrote:<br>
> Hi All,<br>
><br>
> I have set up open stack on an Arm64 machine and all the open stack related<br>
> services are running fine. Also am able to launch an instance successfully.<br>
> Now that I need to get a console for my instance. The noVNC console is not<br>
> supported in the machine am using. So I have to use a serial-proxy console<br>
> or spice-proxy console.<br>
><br>
> After rejoining the stack, I have stopped the noVNC service and started the<br>
> serial proxy service in  /usr/local/bin  as<br>
><br>
> ubuntu@ubuntu:~/devstack$ /usr/local/bin/nova-serialproxy --config-file<br>
> /etc/nova/nova.conf<br>
> 2015-12-10 19:07:13.786 21979 INFO nova.console.websocketproxy [-]<br>
> WebSocket server settings:<br>
> 2015-12-10 19:07:13.786 21979 INFO nova.console.websocketproxy [-]   -<br>
> Listen on <a href="http://0.0.0.0:6083" rel="noreferrer" target="_blank">0.0.0.0:6083</a><br>
> 2015-12-10 19:07:13.787 21979 INFO nova.console.websocketproxy [-]   -<br>
> Flash security policy server<br>
> 2015-12-10 19:07:13.787 21979 INFO nova.console.websocketproxy [-]   - No<br>
> SSL/TLS support (no cert file)<br>
> 2015-12-10 19:07:13.790 21979 INFO nova.console.websocketproxy [-]   -<br>
> proxying from <a href="http://0.0.0.0:6083" rel="noreferrer" target="_blank">0.0.0.0:6083</a> to None:None<br>
><br>
> But<br>
> ubuntu@ubuntu:~/devstack$ nova get-serial-console vm20<br>
> ERROR (ClientException): The server has either erred or is incapable of<br>
> performing the requested operation. (HTTP 500) (Request-ID:<br>
> req-cfe7d69d-3653-4d62-ad0b-50c68f1ebd5e)<br>
<br>
</div></div>So you probably need to restart you nova-api, cauth and compute servcies.<br>
<br>
As you're using devstack I'd recommend you start again and follow the following<br>
guides:<br>
 1. <a href="http://docs.openstack.org/developer/devstack/guides/nova.html#nova-serialproxy" rel="noreferrer" target="_blank">http://docs.openstack.org/developer/devstack/guides/nova.html#nova-serialproxy</a><br>
 2. <a href="http://docs.openstack.org/developer/nova/testing/serial-console.html" rel="noreferrer" target="_blank">http://docs.openstack.org/developer/nova/testing/serial-console.html</a><br>
<br>
Also your nova.conf looked strange I hope that's just manually formatting.<br>
<span><font color="#888888"><br>
Tony.<br>
</font></span><br></div></div><span class="">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>