[openstack-dev] [nova][serial-console-proxy]

Prathyusha Guduri prathyushaconnects at gmail.com
Mon Dec 14 11:39:40 UTC 2015


Hi Tony,

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,
$nova get-serial-console vm-check-6
+--------+-----------------------------------------------------------------+
| Type   | Url                                                             |
+--------+-----------------------------------------------------------------+
| serial | ws://127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6 |

Following
http://docs.openstack.org/developer/nova/testing/serial-console.html

$ python client.py ws://
127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6

..............hangs

Log at consoleauth shows that the token authentication is done.

Received Token: c2fb4073-79a0-44b9-a977-cc7a1fa074f6, {'instance_uuid':
u'5a725707-440e-4cf1-b262-fdb6492ac4d7', 'access_url': u'ws://
127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6', '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}
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

Log at serial-proxy shows that it waits forever connecting to 127.0.0.1

127.0.0.1 - - [14/Dec/2015 16:53:22] "GET
/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6 HTTP/1.1" 101 -
127.0.0.1 - - [14/Dec/2015 16:53:22] 127.0.0.1: Plain non-SSL (ws://)
WebSocket connection
127.0.0.1 - - [14/Dec/2015 16:53:22] 127.0.0.1: Version hybi-13, base64:
'False'
127.0.0.1 - - [14/Dec/2015 16:53:22] 127.0.0.1: Path:
'/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6'
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 10.167.103.101:5672
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 10.167.103.101:5672
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 10.167.103.101:5672
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 10.167.103.101:5672
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://
127.0.0.1:6083/?token=c2fb4073-79a0-44b9-a977-cc7a1fa074f6', u'port': 10005}
2015-12-14 16:53:23.221 INFO nova.console.websocketproxy
[req-2996a251-7fea-4b72-8fd4-30c8505224a3 None None]   2: connecting to:
127.0.0.1:10005


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.

I thought the issue might be because of websocket, so I was not able to
install websocket module of python in my system.

system-specifications :

    uname -m = aarch64
    uname -r = 4.2.0-03373-gdded870-dirty
    uname -s = Linux
    uname -v = #4 SMP Tue Dec 8 14:47:17 IST 2015

Error while installing :
    libev/ev.c:45:22: fatal error: config.h: No such file or directory
     #  include "config.h"
                          ^
    compilation terminated.
    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1


Please help me how to proceed further.

Thanks,
Prathyusha







On Mon, Dec 14, 2015 at 12:41 PM, Prathyusha Guduri <
prathyushaconnects at gmail.com> wrote:

> Hi Tony,
>
>
> Thanks a lot for your response.
> I actually did a rejoin-stack.sh which will also restart n-api and all
> other services. But still the same issue.
>
> Anyway now that I've to run all over again, will change my local.conf
> according to the guide and run stack.
>
> Will keep you updated.
>
> Thanks,
> Prathyusha
>
>
>
> On Mon, Dec 14, 2015 at 4:09 AM, Tony Breeds <tony at bakeyournoodle.com>
> wrote:
>
>> On Fri, Dec 11, 2015 at 11:07:02AM +0530, Prathyusha Guduri wrote:
>> > Hi All,
>> >
>> > I have set up open stack on an Arm64 machine and all the open stack
>> related
>> > services are running fine. Also am able to launch an instance
>> successfully.
>> > Now that I need to get a console for my instance. The noVNC console is
>> not
>> > supported in the machine am using. So I have to use a serial-proxy
>> console
>> > or spice-proxy console.
>> >
>> > After rejoining the stack, I have stopped the noVNC service and started
>> the
>> > serial proxy service in  /usr/local/bin  as
>> >
>> > ubuntu at ubuntu:~/devstack$ /usr/local/bin/nova-serialproxy --config-file
>> > /etc/nova/nova.conf
>> > 2015-12-10 19:07:13.786 21979 INFO nova.console.websocketproxy [-]
>> > WebSocket server settings:
>> > 2015-12-10 19:07:13.786 21979 INFO nova.console.websocketproxy [-]   -
>> > Listen on 0.0.0.0:6083
>> > 2015-12-10 19:07:13.787 21979 INFO nova.console.websocketproxy [-]   -
>> > Flash security policy server
>> > 2015-12-10 19:07:13.787 21979 INFO nova.console.websocketproxy [-]   -
>> No
>> > SSL/TLS support (no cert file)
>> > 2015-12-10 19:07:13.790 21979 INFO nova.console.websocketproxy [-]   -
>> > proxying from 0.0.0.0:6083 to None:None
>> >
>> > But
>> > ubuntu at ubuntu:~/devstack$ nova get-serial-console vm20
>> > ERROR (ClientException): The server has either erred or is incapable of
>> > performing the requested operation. (HTTP 500) (Request-ID:
>> > req-cfe7d69d-3653-4d62-ad0b-50c68f1ebd5e)
>>
>> So you probably need to restart you nova-api, cauth and compute servcies.
>>
>> As you're using devstack I'd recommend you start again and follow the
>> following
>> guides:
>>  1.
>> http://docs.openstack.org/developer/devstack/guides/nova.html#nova-serialproxy
>>  2. http://docs.openstack.org/developer/nova/testing/serial-console.html
>>
>> Also your nova.conf looked strange I hope that's just manually formatting.
>>
>> Tony.
>>
>> __________________________________________________________________________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151214/a0cc3548/attachment.html>


More information about the OpenStack-dev mailing list