airshipit / treasuremap

Reference Airship manifests, CICD, and reference architecture.
http://openstack.org
Apache License 2.0
52 stars 39 forks source link

Failed to connect to server (code: 1006) #7

Open nagajagan opened 4 years ago

nagajagan commented 4 years ago

Could not connect to VMs console.

Compute node

$ grep -i console /etc/default/grub
#GRUB_TERMINAL=console

on controller

$ kubectl -n openstack get secrets nova-etc -oyaml | grep nova.conf | awk '{print $2}' | base64 -d | grep novnc
novncproxy_base_url = http://nova-novncproxy.co-exp.5gedge.com/vnc_auto.html
novncproxy_host = 0.0.0.0
novncproxy_port = 6080

Let me know if you need more details.

nagajagan commented 4 years ago

Not sure from where its picking up 127.0.0.1:5900

$ kubectl -n openstack get secrets nova-etc -oyaml | grep nova.conf | awk '{print $2}' | base64 -d | grep vnc
[vnc]
novncproxy_base_url = http://nova-novncproxy.co-exp.5gedge.com/vnc_auto.html
novncproxy_host = 0.0.0.0
novncproxy_port = 6080
vncserver_listen = 0.0.0.0
2020-07-09 20:57:12.464 18127 INFO nova.console.websocketproxy [req-2edd94ea-50b8-4e9c-a117-64003d30d02e - - - - -]  18053: connect info: {u'instance_uuid': u'e8ed2714-be60-44ce-a0cb-92eddabcd717', u'internal_access_path': None, u'last_activity_at': 1594328232.101747, u'console_type': u'novnc', u'host': u'127.0.0.1', u'token': u'd4b24c85-2641-4195-95e0-26945e67cf24', u'access_url': u'http://nova-novncproxy.co-exp.5gedge.com/vnc_auto.html?token=d4b24c85-2641-4195-95e0-26945e67cf24', u'port': u'5900'}
2020-07-09 20:57:12.465 18127 INFO nova.console.websocketproxy [req-2edd94ea-50b8-4e9c-a117-64003d30d02e - - - - -]  18053: connecting to: 127.0.0.1:5900
2020-07-09 20:57:12.465 18127 INFO nova.console.websocketproxy [req-2edd94ea-50b8-4e9c-a117-64003d30d02e - - - - -]  18053: connecting to: 127.0.0.1:5900
2020-07-09 20:57:12.466 18127 INFO nova.console.websocketproxy [req-2edd94ea-50b8-4e9c-a117-64003d30d02e - - - - -] handler exception: [Errno 111] ECONNREFUSED
2020-07-09 20:57:12.466 18127 INFO nova.console.websocketproxy [req-2edd94ea-50b8-4e9c-a117-64003d30d02e - - - - -] handler exception: [Errno 111] ECONNREFUSED
nagajagan commented 4 years ago

Configuration verified and could not find any issues, yet to find out why its taking default instead of configured port.

nagajagan commented 4 years ago

Facing the same issues on 2 different labs. Both are running on Airship v1.7,

nagajagan commented 4 years ago

replacing docker.io/openstackhelm/nova & heat with stein images instead of ocata worked for me.