OpenStack: Failed to connect to server (code: 1006)

install openstack on three nodes
In OpenStack Dashboard (Horizon), when I launch an Instance and I am trying to connect to the Instance via Dashboard VNC Console – I am getting error: Failed to connect to server (code: 1006). This is most often caused by improper /etc/nova/nova.conf configuration on Compute node, where the Instance is running:


To fix the issue, set Compute’s own IP in /etc/nova/nova.conf on each Compute node.

Controller IP:
Compute IP:

On Compute node in /etc/nova/nova.conf file set:


Restart Compute service:

[root@compute ~]# systemctl restart openstack-nova-compute.service