spice console not accessible from skyline dashboard

Bug #2055812 reported by Ajay Shanker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
skyline console
New
Medium
zhangjingwei

Bug Description

Description
===========
spice console not working with skyline

Steps to reproduce
==================
A chronological list of steps which will bring off the
issue you noticed:
* I installed openstack Antelope 2023.1 using openstack helm with nova console type spice
* Installed skyline apiserver using ubuntu 20.04 and docker
* I tested integration of skyline with openstack working , i can login to dashboard and list VMs , network and images etc, I did it only using GUI of skyline dashboard.
* created a VM using ubunt 20.04 using skyline dashboard it is created and ruuning
* I tried to take console of this VM , but it failed with below error

Expected result
===============
spice console of VM should be accessible

Actual result
=============
attempt to access console from skyline for vm (console type spice ) failed

error

{
  "badRequest": {
    "code": 400,
    "message": "Unavailable console type novnc."
  }
}

Where as on openstack , novnc console is disabled and spice console is enabled. spice console is accessible for horizon dashboard without any additional config.

Environment
===========
1. version of openstack Anetlope 2023.1
2. version of skyline apiserver : latest (https://opendev.org/openstack/skyline-apiserver/src/branch/stable/2023.1)
3. version of OS, ubuntu 20.04

Logs & Configs
==============
1. Error

{
  "badRequest": {
    "code": 400,
    "message": "Unavailable console type novnc."
  }
}

2. the yaml of config for skyline_apiserver.yaml

default:
  access_token_expire: 3600
  access_token_renew: 1800
  cafile: ''
  cors_allow_origins: []
  database_url: mysql://skyline:Skyline123@localhost:3306/skyline
  debug: false
  log_dir: ./log
  log_file: skyline.log
  policy_file_path: /etc/skyline/policy
  policy_file_suffix: policy.yaml
  prometheus_basic_auth_password: ''
  prometheus_basic_auth_user: ''
  prometheus_enable_basic_auth: false
  prometheus_endpoint: http://localhost:9091
  secret_key: aCtmgbcUqYUy_HNVg5BDXCaeJgJQzHJXwqbXr0Nmb2o
  session_name: session
  ssl_enabled: true
openstack:
  base_domains:
  - heat_user_domain
  default_region: RegionOne
  enforce_new_defaults: true
  extension_mapping:
    floating-ip-port-forwarding: neutron_port_forwarding
    fwaas_v2: neutron_firewall
    qos: neutron_qos
    vpnaas: neutron_vpn
  interface_type: public
  keystone_url: http://keystone.openstack.svc.cluster.local/v3
  nginx_prefix: /api/openstack
  reclaim_instance_interval: 604800
  service_mapping:
    baremetal: ironic
    compute: nova
    container: zun
    container-infra: magnum
    database: trove
    dns: designate
    identity: keystone
    image: glance
    instance-ha: masakari
    key-manager: barbican
    load-balancer: octavia
    network: neutron
    object-store: swift
    orchestration: heat
    placement: placement
    sharev2: manilav2
    volumev3: cinder
  sso_enabled: false
  sso_protocols:
  - openid
  sso_region: RegionOne
  system_admin_roles:
  - admin
  - system_admin
  system_project: service
  system_project_domain: service
  system_reader_roles:
  - system_reader
  system_user_domain: Default
  system_user_name: skyline
  system_user_password: password
setting:
  base_settings:
  - flavor_families
  - gpu_models
  - usb_models
  flavor_families:
  - architecture: x86_architecture
    categories:
    - name: general_purpose
      properties: []
    - name: compute_optimized
      properties: []
    - name: memory_optimized
      properties: []
    - name: high_clock_speed
      properties: []
  - architecture: heterogeneous_computing
    categories:
    - name: compute_optimized_type_with_gpu
      properties: []
    - name: visualization_compute_optimized_type_with_gpu
      properties: []
  gpu_models:
  - nvidia_t4
  usb_models:
  - usb_c

I tried to check if there any configuration option at skyline api server to set console protocol to spice or auto (like horizon have auto by default) , but not found it.

skyline is installed using docker.

Could you please suggest on it, how I can configure skyline to work with spice console.

Thanks you.

Revision history for this message
Boxiang Zhu (bxzhu-5355) wrote :

Got it, we will check it again :)

Changed in skyline-apiserver:
assignee: nobody → zhangjingwei (wuwu-wuwu)
importance: Undecided → Medium
affects: skyline-apiserver → skyline-console
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.