Spice html5 client does not get installed in nova api

Bug #1923183 reported by Flavio Picci
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

Hello everyone,

when selecting spice as `nova_console_type`, the spice html5 client does not get installed, thus the `nova-spicehtml5proxy` fails to start and the console is unavaliable.

It seems that the spice-html5 package that is no longer available for CentOS 8 but, to overcome this, it is enough to download the client source from the official repository (https://gitlab.freedesktop.org/spice/spice-html5) and unpack it under `/usr/share/spice-html5`.

As a workaround I did
sv=0.3.0
curl -s https://gitlab.freedesktop.org/spice/spice-html5/-/archive/spice-html5-$sv/spice-html5-spice-html5-$sv.tar.gz | tar -xzf -
mv spice-html5-spice-html5-$sv /usr/share/spice-html5

Environment:
OSA: stable/victoria
OS: CentOS 8

Thanks,
Flavio

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

Hi!

Can you kindly mention if that is installation with distro packages? As for source install we do install spice from git with these tasks https://opendev.org/openstack/openstack-ansible-os_nova/src/branch/master/tasks/consoles/nova_console_spice_install.yml#L16-L61

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

Eventually I do see package openstack-nova-spicehtml5proxy present for centos 8 here: http://mirror.centos.org/centos/8/cloud/x86_64/openstack-victoria/Packages/o/

Can you check if it's really installed for your deployment and if it's available in rdo repo for you?

Revision history for this message
Flavio Picci (flaviopicci) wrote :

Hello Dmitriy,

yes I performed the distro installation, not source. The package you mention installs just the proxy, not the HTML5 client (that it is installed in my Nova API container).

In CentOS 7 EPEL repo they used to have the package for the spice web client (https://centos.pkgs.org/7/epel-x86_64/spice-html5-0.1.7-1.el7.noarch.rpm.html) but there is not such package for CentOS 8 (I don't know about Debian distributions).

I think the spice html5 client should be installed from git even when doing the distro installation like it is done in the source installation, at least for CentOS 8.

Flavio

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (master)
Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (master)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/786447
Committed: https://opendev.org/openstack/openstack-ansible-os_nova/commit/101f5d5b1790eebd8caae6acab2ecf6671ac046f
Submitter: "Zuul (22348)"
Branch: master

commit 101f5d5b1790eebd8caae6acab2ecf6671ac046f
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Apr 15 17:17:04 2021 +0300

    Install spice-html5 from source for RedHat

    CentOS used to have spice-html5 package in epel, but it's not the case
    for CentOS 8 or Stream. Thus, we need to install SPICE from git repo
    even for distro installs.

    Change-Id: If435ba24dbdf12450cead70e0e1eaecc50f46470
    Closes-Bug: #1923183

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (stable/victoria)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/786903
Committed: https://opendev.org/openstack/openstack-ansible-os_nova/commit/82e24bf17b68d776cb350fce22e86f96e910fbef
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 82e24bf17b68d776cb350fce22e86f96e910fbef
Author: Dmitriy Rabotyagov <email address hidden>
Date: Thu Apr 15 17:17:04 2021 +0300

    Install spice-html5 from source for RedHat

    CentOS used to have spice-html5 package in epel, but it's not the case
    for CentOS 8 or Stream. Thus, we need to install SPICE from git repo
    even for distro installs.

    Change-Id: If435ba24dbdf12450cead70e0e1eaecc50f46470
    Closes-Bug: #1923183
    (cherry picked from commit 101f5d5b1790eebd8caae6acab2ecf6671ac046f)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova yoga-eom

This issue was fixed in the openstack/openstack-ansible-os_nova yoga-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova victoria-eom

This issue was fixed in the openstack/openstack-ansible-os_nova victoria-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova wallaby-eom

This issue was fixed in the openstack/openstack-ansible-os_nova wallaby-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova xena-eom

This issue was fixed in the openstack/openstack-ansible-os_nova xena-eom release.

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.