Instance SPICE console not accessible

Hi Team,

I installed OpenStack Yoga HA using OpenStack base bundle.

I used multiple node for cloud deployment.

3 x Controller node
10 x compute node
3 x CEPH node

I can able to launch instance and also accessible via SSH. But not able to access via SPICE console from OpenStack dashboard. In console URL it showing 127.0.0.1 IP address instead of valid IP address. So console not accessible.

SPICE console URL from OpenStack Dashboard

http://127.0.0.1:6080/vnc_auto.html?path=%3Ftoken%3D30b341c5-b500-4080-ba64-c6f3bcde31b8&title=oa2.chn2sathiyad1-sganesan(4b7f838a-a570-4c3d-8a0f-b2603e7fed2c)

SPICE console config from deployment yaml file.

10.91.8.29 - External network
10.91.6.29 - Internal-api
 nova-cloud-controller:
    annotations:
      gui-x: '35'
      gui-y: '1270'
    charm: ch:nova-cloud-controller
    channel: yoga/stable
    num_units: 3
    bindings:
      "": internal-api
      public: external-network
      internal: internal-api
      shared-db: internal-api
    options:
      network-manager: Neutron
      openstack-origin: *openstack-origin
      console-access-protocol: spice
      vip: 10.91.8.29 10.91.6.29
    to:
    - lxd:3
    - lxd:4
    - lxd:5

Config file /etc/nova/nova.conf output from nova-cloud-controller/0

[oslo_concurrency]
lock_path=/var/lock/nova

[vnc]

[spice]

[serial_console]
enabled = false
base_url = ws://10.91.8.29:6083/

Config file /etc/nova/nova.conf output from nova-cloud-controller/1

[oslo_concurrency]
lock_path=/var/lock/nova

[vnc]

[spice]

[serial_console]
enabled = false
base_url = ws://10.91.8.29:6083/

Config file /etc/nova/nova.conf output from nova-cloud-controller/2

[oslo_concurrency]
lock_path=/var/lock/nova

[vnc]

[spice]

[serial_console]
enabled = false
base_url = ws://10.91.8.29:6083/

That should work. I have used novnc instead of spice however. Can you confirm the output of:

juju config nova-config-controller console-access-protocol

It should say ‘spice’. Can you try setting it to ‘novnc’?

juju config nova-config-controller console-access-protocol=novnc
1 Like

Output:

root@maas-openstack:~# juju config nova-cloud-controller console-access-protocol
spice

The below command will impact the existing instance?

juju config nova-cloud-controller console-access-protocol=novnc

I don’t think so.

Changed to novnc.

VNC console working as expected.

Thank you.

1 Like

The spice problem appears to have been fixed very recently. If you want, you can get the fix by upgrading the nova-compute charm and resetting to spice:

juju refresh nova-compute
juju config nova-config-controller console-access-protocol=spice

If it still doesn’t work, please add a comment to this bug explaining the situation.