Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VNC console in dashboard failed to connect to server (code: 1006)

Unable to access VM thorough console in dashboard. I have multi-node Queens version of openstack bare metal setup on ubuntu 16.

Errors:

Failed to connect to server (code: 1006)

2019-03-13 18:55:15.926 9339 INFO nova.console.websocketproxy [req-db19bd87-c70b-481d-8939-d3957fe2d393 - - - - -] handler exception: [Errno 110] ETIMEDOUT

2019-03-13 13:25:13,556 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 101] Network is unreachable)]

My vnc configuration in controller's nova.conf is as mentioned below:

[DEFAULT]
my_ip = 10.0.0.11
[vnc]
enabled = true
server_listen = $my_ip
server_proxyclient_address = $my_ip

My vnc configuration in compute's nova.conf is as mentioned below:

[DEFAULT]
my_ip = 10.0.0.31
[vnc]
enabled = true
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html

My VM's console log points to route error:

ci-info: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Route info failed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2019-03-13 13:25:13,556 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 101] Network is unreachable)]
...
2019-03-13 13:27:19,970 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 126 seconds
2019-03-13 13:27:19,973 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceCloudStack.DataSourceCloudStack'> failed

My nova-novncproxy.log point to timeout error:

2019-03-13 18:52:18.040 9266 INFO nova.console.websocketproxy [-] WebSocket server settings:
2019-03-13 18:52:18.040 9266 INFO nova.console.websocketproxy [-]   - Listen on 0.0.0.0:6080
2019-03-13 18:52:18.040 9266 INFO nova.console.websocketproxy [-]   - Flash security policy server
2019-03-13 18:52:18.041 9266 INFO nova.console.websocketproxy [-]   - Web server (no directory listings). Web root: /usr/share/novnc
2019-03-13 18:52:18.041 9266 INFO nova.console.websocketproxy [-]   - No SSL/TLS support (no cert file)
2019-03-13 18:52:18.041 9266 INFO nova.console.websocketproxy [-]   - proxying from 0.0.0.0:6080 to None:None
2019-03-13 18:53:05.622 9339 INFO nova.console.websocketproxy [-] 10.0.0.11 - - [13/Mar/2019 18:53:05] 10.0.0.11: Plain non-SSL (ws://) WebSocket connection
2019-03-13 18:53:05.639 9339 INFO nova.console.websocketproxy [-] 10.0.0.11 - - [13/Mar/2019 18:53:05] 10.0.0.11: Version hybi-13, base64: 'False'
2019-03-13 18:53:05.640 9339 INFO nova.console.websocketproxy [-] 10.0.0.11 - - [13/Mar/2019 18:53:05] 10.0.0.11: Path: '/websockify'
2019-03-13 18:53:05.890 9339 INFO nova.console.websocketproxy [req-db19bd87-c70b-481d-8939-d3957fe2d393 - - - - -]   2: connect info: {u'instance_uuid': u'6c1337ca-f4d3-4072-9133-ce03afac1f53', u'internal_access_path': None, u'last_activity_at': 1552483384.72316, u'console_type': u'novnc', u'host': u'10.0.0.31', u'token': u'39e439b5-4406-4fbb-b305-90ba3e800cb1', u'access_url': u'http://controller:6080/vnc_auto.html?token=39e439b5-4406-4fbb-b305-90ba3e800cb1', u'port': u'5900'}
2019-03-13 18:53:05.891 9339 INFO nova.console.websocketproxy [req-db19bd87-c70b-481d-8939-d3957fe2d393 - - - - -]   2: connecting to: 10.0.0.31:5900
2019-03-13 18:55:05.743 9443 INFO nova.console.websocketproxy [-] 10.0.0.11 - - [13/Mar/2019 18:55:05] 10.0.0.11: Plain non-SSL (ws://) WebSocket connection
2019-03-13 18:55:05.744 9443 INFO nova.console.websocketproxy [-] 10.0.0.11 - - [13/Mar/2019 18:55:05] 10.0.0.11: Version hybi-13, base64: 'False'
2019-03-13 18:55:05.744 9443 INFO nova.console.websocketproxy [-] 10.0.0.11 - - [13/Mar/2019 18:55:05] 10.0.0.11: Path: '/websockify'
2019-03-13 18:55:05.981 9443 INFO nova.console.websocketproxy [req-37e777e3-a3b8-4fdf-8076-53174a0441d8 - - - - -]   4: connect info: {u'instance_uuid': u'6c1337ca-f4d3-4072-9133-ce03afac1f53', u'internal_access_path': None, u'last_activity_at': 1552483505.514068, u'console_type': u'novnc', u'host': u'10.0.0.31', u'token': u'0c80456f-9e02-4577-bc9b-7f027baccb4d', u'access_url': u'http://controller:6080/vnc_auto.html?token=0c80456f-9e02-4577-bc9b-7f027baccb4d', u'port': u'5900'}
2019-03-13 18:55:05.981 9443 INFO nova.console.websocketproxy [req-37e777e3-a3b8-4fdf-8076-53174a0441d8 - - - - -]   4: connecting to: 10.0.0.31:5900
2019-03-13 18:55:15.926 9339 INFO nova.console.websocketproxy [req-db19bd87-c70b-481d-8939-d3957fe2d393 - - - - -] handler exception: [Errno 110] ETIMEDOUT

Could someone help in resolving this issue?

Have tried accepted solution mentioned at https://ask.openstack.org/en/question/520/vnc-console-in-dashboard-fails-to-connect-ot-server-code-1006/ with below configuration but was of no use. also tried in chrome browser.

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