fail to access the instance using a virtual console

asked 2018-11-28 15:39:43 -0600

najeh gravatar image

updated 2018-12-04 04:44:21 -0600

After the installation of openstack in multi-nodes environment, and launch of proviser and selfservice instances, i failed to ping selfservice ip address and to access the VNC session URL for my instance and access it from a web browser:

http://controller:6080/vnc_auto.html?token=5eeccb47-525c-4918-ac2a-3ad1e9f1f493

Failed to connect to server (code: 1006)

This is my [vnc] section in /etc/nova/nova.conf:

controller :192.168.1.23

[vnc]
novncproxy_host = 0.0.0.0
novncproxy_port = 6080
novncproxy_base_url = http://192.168.1.23:6080/vnc_auto.html
enabled = true
server_listen = 192.168.1.23
server_proxyclient_address = 192.168.1.23

compute:192.168.1.40

[vnc]

enabled = true
server_listen = 0.0.0.0
server_proxyclient_address = 192.168.1.40
novncproxy_base_url = http://192.168.1.23:6080/vnc_auto.html

To verify access to the self-service network gateway:

ping -c 4 172.16.1.1(selfsevice gateway)
PING 172.16.1.1 (172.16.1.1) 56(84) bytes of data.
--- 172.16.1.1 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3074ms

I found these errors in /var/log/nova/nova-compute.log

ERROR oslo.messaging._drivers.impl_rabbit [-] [4ddf91cb-eaa3-447f-b64d-a454dceacef5] AMQP server on 192.168.1.23:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 22 seconds.: error: [Errno 113] EHOSTUNREACH

# nano /var/log/neutron/neutron-linuxbridge-agent.log

 ERROR oslo.messaging._drivers.impl_rabbit [-] [4812b5cb-7d21-4141-9274-7cae8888d215] AMQP server on 192.168.1.23:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 28 seconds.: error: [Errno 113] EHOSTUNREACH

nano /var/log /nova/nova-novncproxy.log

INFO nova.console.websocketproxy [-] In exit

INFO nova.console.websocketproxy [-] WebSocket server settings:

INFO nova.console.websocketproxy [-] - Listen on 0.0.0.0:6080

INFO nova.console.websocketproxy [-] - Flash security policy server

INFO nova.console.websocketproxy [-] - Web server (no directory listings). Web root: /usr/share/novnc

INFO nova.console.websocketproxy [-] - No SSL/TLS support (no cert file)

INFO nova.console.websocketproxy [-] - proxying from 0.0.0.0:6080 to None:None

INFO nova.console.websocketproxy [-] 192.168.1.34: ignoring socket not ready

INFO nova.console.websocketproxy [-] 192.168.1.34 - - [29/Nov/2018 10:38:14] 192.168.1.34: Plain non-SSL (ws://) WeWebSocket connection

INFO nova.console.websocketproxy [-] 192.168.1.34 - - [29/Nov/2018 10:38:14] 192.168.1.34: Version hybi-13, base64: 'False'

INFO nova.console.websocketproxy [-] 192.168.1.34 - - [29/Nov/2018 10:38:14] 192.168.1.34: Path: '/websockify'

WARNING oslo_config.cfg [req-db90db63-2256-48f3-bb89-c2b947a1cd19 - - - - -] Deprecated: Option "enable" from group "cells" is deprecated for removal (Cells v1 is being replaced with Cells v2.). Its value may be silently ignored in the future.

WARNING oslo_config.cfg [req-db90db63-2256-48f3-bb89-c2b947a1cd19 - - - - -] Deprecated: Option "rabbit_host" from group "oslo_messaging_rabbit" is deprecated for removal (Replaced by [DEFAULT]/transport_url). Its value may be silently ignored in the future.

WARNING oslo_config.cfg [req-db90db63-2256-48f3-bb89-c2b947a1cd19 - - - - -] Deprecated: Option "rabbit_userid" from group "oslo_messaging_rabbit" is deprecated for removal (Replaced by [DEFAULT]/transport_url). Its value may be silently ignored in the future.

WARNING oslo_config.cfg [req-db90db63-2256-48f3-bb89-c2b947a1cd19 - - - - -] Deprecated: Option "rabbit_password" from group "oslo_messaging_rabbit" is deprecated for removal (Replaced by [DEFAULT]/transport_url ... (more)

edit retag flag offensive close merge delete

Comments

1

Share your VNC config in nova.conf. You may also find clues in the Nova log files on the controller. Is port 6080 open, by the way?

To connect to a Neutron self-service network from the controller, you first need to enter the corresponding DHCP or router network namespace.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-28 16:42:23 -0600 )edit

i listed above my VNC in nova.conf and some error found in nova-compute.log and neutron-linuxbridge-agent.log of the compute node

najeh gravatar imagenajeh ( 2018-11-29 02:56:03 -0600 )edit
1

you should learn how to format code so that it becomes readable. It's easy - just click the button labeled 101010.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-29 04:11:40 -0600 )edit
1

The AMQP problems may be temporary when nova-compute and the linuxbridge agent start before the AMQP server is ready. Do they persist?

Your IP address is 192.168.1.23. I suppose you can't ping 172.16.1.1 because you have no route to it. This is normal.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-29 04:14:38 -0600 )edit

Did you check the nova novncproxy log?

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-29 04:25:38 -0600 )edit