Skip to content

virt: fix partial QoS removal#450

Merged
dupondje merged 1 commit intomasterfrom
fix_qos_update
Oct 31, 2025
Merged

virt: fix partial QoS removal#450
dupondje merged 1 commit intomasterfrom
fix_qos_update

Conversation

@dupondje
Copy link
Member

Since commit 50cd770, vdsm uses the old bandwidth value when updating (the QoS) on the NIC.

Now lets say we have the following active on a VM NIC:



And we pass the following update from the engine:


Then it will preserve the inbound QoS, which is not something we want.

This is a leftover from pre 'libvirt XML' oVirt era. Cause before it needed an empty 'inbound' tag to make the inbound QoS to get removed. See the notes in the above commit:
'It is deleted if it is in specParams but empty ({'inbound':{}}).'

But as the complete XML is now passed to vdsm, we can just rely on the data coming from the engine, without the need to parse the old bandwidth data.

@dupondje dupondje requested a review from mz-pdm as a code owner October 30, 2025 14:34
@dupondje dupondje force-pushed the fix_qos_update branch 3 times, most recently from 2943bff to 576c950 Compare October 30, 2025 14:56
Since commit 50cd770, vdsm uses the old
bandwidth value when updating (the QoS) on the NIC.

Now lets say we have the following active on a VM NIC:
    <bandwidth>
        <inbound average="128000" peak="384000" burst="1024000" />
        <outbound average="128000" burst="1024000" peak="384000" />
    </bandwidth>

And we pass the following update from the engine:
      <bandwidth>
        <outbound average="128000" burst="1024000" peak="384000"/>
      </bandwidth>

Then it will preserve the inbound QoS, which is not something we want.

This is a leftover from pre 'libvirt XML' oVirt era.
Cause before it needed an empty 'inbound' tag to remove the inbound QoS.
See the notes in the above commit:
'It is deleted if it is in specParams but empty ({'inbound':{}}).'

But as the complete XML is now passed to vdsm, we can just rely on the
data coming from the engine, without the need to parse the old bandwidth
data.

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
@dupondje
Copy link
Member Author

/ost

@github-actions
Copy link

⏳ Running ost suite 'basic-suite-master' on distro 'el9stream'.

Follow the progress here.

@github-actions
Copy link

😎💪 ost suite 'basic-suite-master' on distro 'el9stream' finished successfully. (details)

@dupondje dupondje merged commit 8f2b163 into master Oct 31, 2025
22 checks passed
@dupondje dupondje deleted the fix_qos_update branch October 31, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants