[jammy][yoga] when showing console it will show novnc even console-access-protocol is set to spice

Bug #1998300 reported by Yoshi Kadokawa
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Fix Released
Undecided
Hemanth Nakkina

Bug Description

Currently deploying Yoga on Jammy at customer site. However, the console tab on any instances will show with novnc protocol.
I have set console-access-protocol=spice, and I see the following config in nova.conf in each nova-compute nodes.

[vnc]
vnc_enabled = False
novnc_enabled = False

This is reproducible with the bundle from here[0] by adding console-access-protocol=spice

After changing the config in nova.conf in nova-compute node, the console will now show with spice protocol.

[vnc]
enabled = False

[0] https://github.com/openstack-charmers/openstack-bundles/tree/master/development/openstack-base-jammy-yoga

Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :

There is no workaround for this other than changing nova.conf in nova-compute nodes.
Subsribing this to field-critical

Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :

Adding juju-crashdump from reproduced environment.

summary: - when showing console it will show novnc even console-access-protocol is
- set to spice
+ [jammy][yoga] when showing console it will show novnc even console-
+ access-protocol is set to spice
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (master)
Changed in charm-nova-compute:
status: New → In Progress
Changed in charm-nova-compute:
assignee: nobody → Hemanth Nakkina (hemanth-n)
Revision history for this message
Alex Dodson (alexdodson) wrote :

Hello,

We are hitting this bug with a focal/yoga deployment as well. We have protocol set to spice but upon clicking the console on dashboard we get a http://127.0.0.1:6080/vnc_auto.html?path=

Our snippet from nova.conf is the same.

[compute]
[vnc]
vnc_enabled = False
novnc_enabled = False

Revision history for this message
Andy Wu (qch2012) wrote :

reproduced in focal-yoga where console-protocol is set to spice , but click console went to 127.0.0.1:6080/vnc .

Looks like at least in focal-yoga, disable vpc need to be done under [DEFAULT] section

To fix:

juju config nova-compute config-flags="vnc_enabled=False, novnc_enabled=False"

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/866246
Committed: https://opendev.org/openstack/charm-nova-compute/commit/83497e833d2d76687868552ef84db1906472fd6f
Submitter: "Zuul (22348)"
Branch: master

commit 83497e833d2d76687868552ef84db1906472fd6f
Author: Hemanth Nakkina <email address hidden>
Date: Thu Dec 1 09:38:15 2022 +0530

    Use enabled option for vnc

    vnc_enabled, novnc_enabled are depreacted but should
    be in DEFAULT section. Commit [1] moved the deprecated
    options under vnc group so they dont have any effect.
    This leads to vnc as True which is default option
    in nova.

    Change the template to use enabled option instead of
    deprecated ones

    [1] https://opendev.org/openstack/charm-nova-compute/commit/73edc4f817d0a8c281284a0df850d93ea5427014

    Closes-Bug: #1998300
    Change-Id: I4193c042f6b3a55dfb1dc57f0f4d3bc71e19006f

Changed in charm-nova-compute:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/charm-nova-compute/+/870050

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/869949
Committed: https://opendev.org/openstack/charm-nova-compute/commit/ea06268d39ac95d4b5304e1f285922ee2d9ac950
Submitter: "Zuul (22348)"
Branch: stable/zed

commit ea06268d39ac95d4b5304e1f285922ee2d9ac950
Author: Hemanth Nakkina <email address hidden>
Date: Thu Dec 1 09:38:15 2022 +0530

    Use enabled option for vnc

    vnc_enabled, novnc_enabled are depreacted but should
    be in DEFAULT section. Commit [1] moved the deprecated
    options under vnc group so they dont have any effect.
    This leads to vnc as True which is default option
    in nova.

    Change the template to use enabled option instead of
    deprecated ones

    [1] https://opendev.org/openstack/charm-nova-compute/commit/73edc4f817d0a8c281284a0df850d93ea5427014

    Closes-Bug: #1998300
    Change-Id: I4193c042f6b3a55dfb1dc57f0f4d3bc71e19006f
    (cherry picked from commit 83497e833d2d76687868552ef84db1906472fd6f)

tags: added: in-stable-zed
tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/charm-nova-compute/+/870050
Committed: https://opendev.org/openstack/charm-nova-compute/commit/bbcc2ec14dd49098786230de0f6acf274a9104d9
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit bbcc2ec14dd49098786230de0f6acf274a9104d9
Author: Hemanth Nakkina <email address hidden>
Date: Thu Dec 1 09:38:15 2022 +0530

    Use enabled option for vnc

    vnc_enabled, novnc_enabled are depreacted but should
    be in DEFAULT section. Commit [1] moved the deprecated
    options under vnc group so they dont have any effect.
    This leads to vnc as True which is default option
    in nova.

    Change the template to use enabled option instead of
    deprecated ones

    [1] https://opendev.org/openstack/charm-nova-compute/commit/73edc4f817d0a8c281284a0df850d93ea5427014

    Closes-Bug: #1998300
    Change-Id: I4193c042f6b3a55dfb1dc57f0f4d3bc71e19006f
    (cherry picked from commit 83497e833d2d76687868552ef84db1906472fd6f)

Changed in charm-nova-compute:
status: Fix Committed → Fix Released
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.