Commit a9d9009
committed
virt: fix partial QoS removal
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>1 parent d0edfe6 commit a9d9009
File tree
3 files changed
+31
-12
lines changed- lib/vdsm/virt/vmdevices
- tests/virt
3 files changed
+31
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | 308 | | |
312 | 309 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 310 | + | |
317 | 311 | | |
318 | 312 | | |
319 | 313 | | |
| |||
487 | 481 | | |
488 | 482 | | |
489 | 483 | | |
490 | | - | |
| 484 | + | |
491 | 485 | | |
492 | 486 | | |
493 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
165 | 187 | | |
166 | 188 | | |
167 | 189 | | |
| |||
170 | 192 | | |
171 | 193 | | |
172 | 194 | | |
| 195 | + | |
| 196 | + | |
173 | 197 | | |
174 | 198 | | |
175 | 199 | | |
| |||
0 commit comments