Commit bf7254b
committed
Update SRIOV port pci_slot when unshelving
There are a few things we need to do to make that work:
* Always set the PCIRequest's requester_id. Previously, this was only
done for resource requests. The requester_id is the port UUID, so we
can use that to correlate which port to update with which pci_slot
(in the case of multiple SRIOV ports per instance).
This has the side effect of making the fix work only for instances
created *after* this patch has been applied. It's not ideal, but
there does not appear to be a better way.
* Call setup_networks_on_host() within the instance_claim context.
This means the instance's pci_devices are updated when we call it,
allowing us to get the pci_slot information from them.
With the two previous changes in place, we can figure out the port's
new pci_slot in _update_port_binding_for_instance().
Closes: bug 1851545
Change-Id: Icfa8c1d6e84eab758af6223a2870078685584aaa
(cherry picked from commit 00f1d47)1 parent 3625d53 commit bf7254b
File tree
5 files changed
+127
-53
lines changed- nova
- compute
- network
- tests
- functional/libvirt
- unit/network
- releasenotes/notes
5 files changed
+127
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6556 | 6556 | | |
6557 | 6557 | | |
6558 | 6558 | | |
6559 | | - | |
6560 | | - | |
6561 | | - | |
6562 | | - | |
6563 | | - | |
6564 | | - | |
6565 | 6559 | | |
6566 | 6560 | | |
6567 | 6561 | | |
| |||
6571 | 6565 | | |
6572 | 6566 | | |
6573 | 6567 | | |
6574 | | - | |
| 6568 | + | |
6575 | 6569 | | |
6576 | 6570 | | |
6577 | 6571 | | |
6578 | 6572 | | |
| 6573 | + | |
| 6574 | + | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
6579 | 6579 | | |
6580 | 6580 | | |
6581 | 6581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2109 | 2112 | | |
2110 | 2113 | | |
2111 | 2114 | | |
2112 | 2115 | | |
2113 | 2116 | | |
2114 | 2117 | | |
2115 | 2118 | | |
2116 | | - | |
2117 | | - | |
2118 | | - | |
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
| |||
3363 | 3363 | | |
3364 | 3364 | | |
3365 | 3365 | | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
3366 | 3397 | | |
3367 | 3398 | | |
3368 | 3399 | | |
| |||
3371 | 3402 | | |
3372 | 3403 | | |
3373 | 3404 | | |
3374 | | - | |
3375 | 3405 | | |
3376 | 3406 | | |
3377 | 3407 | | |
| |||
3404 | 3434 | | |
3405 | 3435 | | |
3406 | 3436 | | |
3407 | | - | |
3408 | | - | |
3409 | | - | |
3410 | | - | |
3411 | | - | |
3412 | | - | |
3413 | | - | |
3414 | | - | |
3415 | | - | |
3416 | | - | |
3417 | | - | |
3418 | | - | |
3419 | | - | |
3420 | | - | |
3421 | | - | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
3422 | 3462 | | |
3423 | | - | |
3424 | | - | |
3425 | | - | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
3426 | 3467 | | |
3427 | 3468 | | |
3428 | 3469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
447 | 440 | | |
448 | 441 | | |
449 | 442 | | |
450 | 443 | | |
451 | 444 | | |
452 | 445 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 446 | + | |
| 447 | + | |
461 | 448 | | |
462 | 449 | | |
463 | 450 | | |
| |||
466 | 453 | | |
467 | 454 | | |
468 | 455 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 456 | + | |
473 | 457 | | |
474 | 458 | | |
475 | 459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5828 | 5828 | | |
5829 | 5829 | | |
5830 | 5830 | | |
5831 | | - | |
| 5831 | + | |
| 5832 | + | |
5832 | 5833 | | |
5833 | | - | |
| 5834 | + | |
| 5835 | + | |
5834 | 5836 | | |
5835 | 5837 | | |
5836 | 5838 | | |
| |||
6381 | 6383 | | |
6382 | 6384 | | |
6383 | 6385 | | |
| 6386 | + | |
| 6387 | + | |
| 6388 | + | |
| 6389 | + | |
| 6390 | + | |
| 6391 | + | |
| 6392 | + | |
| 6393 | + | |
| 6394 | + | |
| 6395 | + | |
| 6396 | + | |
| 6397 | + | |
| 6398 | + | |
| 6399 | + | |
| 6400 | + | |
| 6401 | + | |
| 6402 | + | |
| 6403 | + | |
| 6404 | + | |
| 6405 | + | |
| 6406 | + | |
| 6407 | + | |
| 6408 | + | |
| 6409 | + | |
| 6410 | + | |
| 6411 | + | |
| 6412 | + | |
| 6413 | + | |
| 6414 | + | |
| 6415 | + | |
| 6416 | + | |
| 6417 | + | |
| 6418 | + | |
| 6419 | + | |
| 6420 | + | |
6384 | 6421 | | |
6385 | 6422 | | |
6386 | 6423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments