Repository navigation
Commit 0a1c6da
committed
linstor: use the target host's CPU shares for live migration with storage
LinstorDataMotionStrategy set the MigrateCommand CPU shares to the raw
cpus * speed value, which is only valid on cgroup v1. On cgroup v2 hosts
the source agent's updateVmSharesIfNeeded() sees that it differs from its
own scaled value and writes it into the migration XML, so libvirt on the
target rejects VMs above 10000 with "shares '<n>' must be in range
[1, 10000]", and smaller VMs end up with an unscaled CPU weight.
Use the value the target host calculated and returned in the
PrepareForMigrationAnswer, as StorageSystemDataMotionStrategy and
VirtualMachineManagerImpl do.1 parent 573cea3 commit 0a1c6da
2 files changed
Lines changed: 12 additions & 4 deletions
File tree
- plugins/storage/volume/linstor
- src/main/java/org/apache/cloudstack/storage/motion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
410 | 411 | | |
411 | | - | |
| 412 | + | |
412 | 413 | | |
413 | 414 | | |
414 | 415 | | |
| |||
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | | - | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
435 | 440 | | |
436 | 441 | | |
437 | 442 | | |
| |||
0 commit comments