cannot set nova.conf [workarounds] params by juju config

Bug #2062033 reported by macchese
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Triaged
Wishlist
Unassigned

Bug Description

charm: openstack 2023.2
nova-compute: 28.0.1 channel 2023.2/stable
ubuntu: jammy .15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

According to https://bugs.launchpad.net/nova/+bug/2061569 I have to setup two workarounds to mitigate live-migration bug.
Reading the nova-compute configuration on https://charmhub.io/nova-compute/configuration?channel=2023.2/stable, can't find the parameter to use, in fact if I run

#juju config nova-compute config-flags="skip_cpu_compare_at_startup=true,skip_cpu_compare_on_dest=true"

it populates the [DEFAULT] section rather than the [workarounds] one as you can see here https://paste.ubuntu.com/p/2zgWjpPJSS/

macchese (max-liccardo)
summary: - cannot set skip_cpu_compare_on_dest by juju config
+ cannot set nova.conf [workarounds] params by juju config
description: updated
macchese (max-liccardo)
description: updated
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Hi @macchese

The charm doesn't actually (currently) support setting workarounds from a config flag. This would need to be a new feature:

 * Add a config option "workarounds-config-flags"
 * Implement a Context to read those flags.
 * Wire the context into the resource_map so that they are available in nova.conf
 * Update the template(s) to read from the context and set flags in the [workarounds] section (like the current config-flags work).

Changed in charm-nova-compute:
importance: Undecided → Wishlist
status: New → Triaged
tags: added: good-first-bug
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.