Ask Your Question
0

Need helps on the serialproxy

asked 2016-07-07 13:00:34 -0500

ColbyW gravatar image

Hi experts,

The following is the log from nova-serial-proxy. The following is my setup: Compute node: 192.168.0.4 Controller node: 192.168.0.5 My nova.conf in controller node is serialproxy_host=192.168.0.5 serialproxy_port=6083 listen=0.0.0.0

My nova.conf in compute node is enabled=true base_url=ws://192.168.0.5:6083/ proxyclient_address=192.168.0.4

I got the serial Url from $ nova get-serial-console ColbyU +--------+-------------------------------------------------------------------+ | Type | Url | +--------+-------------------------------------------------------------------+ | serial | ws://192.168.0.5:6083/?token=1470f027-cc4f-48c9-8b54-5cb91d172b6a | +--------+-------------------------------------------------------------------+

and I run the following command under controller node python LazyClient.py ws://192.168.0.5:6083/?token=1470f027-cc4f-48c9-8b54-5cb91d172b6a

The log from serialproxy is following and it said [Errno 110] ETIMEDOUT.

I have the following question, 1. I check my instance ColbyU, it said ttyS0 is busy, but ttyS1 is available. Will it require to use ttyS0 ? 2. Is there any configuration needed for the serial port of my instance ColbyU for the serialproxy to work ? 3. Is there a step by step procedure to show how the serial proxy work ? I found some info here and there, but there is no complete guide for it.

Thanks,

Colby

2016-07-07 17:27:28.296 17466 INFO nova.console.websocketproxy [-] WebSocket server settings: 2016-07-07 17:27:28.296 17466 INFO nova.console.websocketproxy [-] - Listen on 192.168.0.5:6083 2016-07-07 17:27:28.297 17466 INFO nova.console.websocketproxy [-] - Flash security policy server 2016-07-07 17:27:28.297 17466 INFO nova.console.websocketproxy [-] - No SSL/TLS support (no cert file) 2016-07-07 17:27:28.297 17466 INFO nova.console.websocketproxy [-] - proxying from 192.168.0.5:6083 to None:None 2016-07-07 17:28:05.674 19329 INFO oslo_messaging._drivers.impl_rabbit [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] Connecting to AMQP server on 192.168.0.5:5673 2016-07-07 17:28:05.687 19329 INFO oslo_messaging._drivers.impl_rabbit [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] Connected to AMQP server on 192.168.0.5:5673 2016-07-07 17:28:05.700 19329 INFO oslo_messaging._drivers.impl_rabbit [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] Connecting to AMQP server on 192.168.0.5:5673 2016-07-07 17:28:05.710 19329 INFO oslo_messaging._drivers.impl_rabbit [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] Connected to AMQP server on 192.168.0.5:5673 2016-07-07 17:28:05.778 19329 INFO nova.console.websocketproxy [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] 1: connect info: {u'instance_uuid': u'009a132c-578f-4996-9b90-3380ac9ae642', u'internal_access_path': None, u'last_activity_at': 1467912462.292375, u'console_type': u'serial', u'host': u'192.168.0.4', u'token': u'1470f027-cc4f-48c9-8b54-5cb91d172b6a', u'access_url': u'ws://192.168.0.5:6083/?token=1470f027-cc4f-48c9-8b54-5cb91d172b6a', u'port': 10001} 2016-07-07 17:28:05.779 19329 INFO nova.console.websocketproxy [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] 1: connecting to: 192.168.0.4:10001 2016-07-07 17:30:13.060 19329 INFO nova.console.websocketproxy [req-14c5a9db-3337-478e-b27a-56086dd69eee - - - - -] handler exception: [Errno 110] ETIMEDOUT

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-12 03:45:31 -0500

updated 2016-08-12 03:48:32 -0500

The list below doesn't solve your issue but gives you hints for how you can proceed:

  1. The serial console only works with libvirt + qemu|kvm so far [1]
  2. The service nova-serialproxy is running on the controller node
  3. The default values of the nova.conf should be enough on the controller node, you don't need to change serialproxy_hostor serialproxy_port or listen.
  4. You can try to connect to your instance after you logged into your compute node via telnet localhost $port. You'll find the $port in the domain XML of your instance: virsh dumpxml $guest_id | grep -A 8 tcp | grep source [2]
  5. The serial console can only support one single connection at a time (at one port) and blocks every other connection attempt. For example, if you are logged into the serial console via telnet, you won't be able to open a connection via Horizon (and vice versa).
  6. Your guest shouldn't have changed the default kernel boot args for consoles console=tty0 console=ttyS0 [3]
  7. It's always worthwhile to have the log output at DEBUG level. You can change that in nova.conf by setting debug=True [4]. The nova-serialproxy uses this to show its internals [5].
  8. You might want to use Lars's novaconsole as a client [6], which is far more convenient.

At last but not least, whenever you're discussing an issue with someone, it's always a good idea to say which exact version of OpenStack you're using in your deployment. A stable release from upstream, the current development stream (at commit xxx), a product from a distributor (red hat, canonical, ...), and so on.


References:

[1] https://github.com/openstack/nova/blo...

[2] https://github.com/openstack/nova/blo...

[3] https://github.com/openstack/nova/blo...

[4] http://docs.openstack.org/developer/o...

[5] https://github.com/openstack/nova/blo...

[6] https://github.com/larsks/novaconsole

edit flag offensive delete link more

Comments

were you able to get your serial proxy running with the above details ? can you share your experience ? Hi Markus, With your suggestion, we could do telnet to the instances using the compute IP. but did you ever verify the live migration with the above config ?

Aravinda gravatar imageAravinda ( 2018-10-29 09:19:09 -0500 )edit

I have asked the same question here.. https://ask.openstack.org/en/question... but so far no responses. not sure if that is even possible...

Aravinda gravatar imageAravinda ( 2018-10-29 09:20:22 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-07 13:00:34 -0500

Seen: 302 times

Last updated: Aug 12 '16