Commit 5ae42c8
committed
northd: Fix port group I-P for recreated groups.
When northd handles in a single iteration the following transactions:
A. port group deletion (e.g., name="pg")
B. port group addition (same name as the deleted group, i.e., "pg" but
with a new UUID) with a logical switch port.
it should correctly reconcile the SB contents, the resulting SB port
group contents should include the "recreated" group too.
That wasn't the case because the deleted name was added to the
stale_sb_port_groups set and not removed from it when processing the new
group record.
Also, make sure we first process all deletions and then all updates (and
additions) in order to avoid pruning issues.
Fixes: a1d82e9 ("northd: Process port_group changes incrementally.")
Reported-at: https://redhat.atlassian.net/browse/FDP-3966
Acked-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>1 parent 1e5fe58 commit 5ae42c8
2 files changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
561 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
562 | 567 | | |
563 | 568 | | |
564 | 569 | | |
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
568 | 579 | | |
569 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
570 | 589 | | |
571 | 590 | | |
572 | 591 | | |
| |||
598 | 617 | | |
599 | 618 | | |
600 | 619 | | |
| 620 | + | |
601 | 621 | | |
602 | 622 | | |
603 | 623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11023 | 11023 | | |
11024 | 11024 | | |
11025 | 11025 | | |
| 11026 | + | |
| 11027 | + | |
| 11028 | + | |
| 11029 | + | |
| 11030 | + | |
| 11031 | + | |
| 11032 | + | |
| 11033 | + | |
| 11034 | + | |
| 11035 | + | |
| 11036 | + | |
| 11037 | + | |
| 11038 | + | |
| 11039 | + | |
| 11040 | + | |
| 11041 | + | |
| 11042 | + | |
| 11043 | + | |
| 11044 | + | |
| 11045 | + | |
| 11046 | + | |
| 11047 | + | |
| 11048 | + | |
| 11049 | + | |
| 11050 | + | |
| 11051 | + | |
| 11052 | + | |
| 11053 | + | |
| 11054 | + | |
11026 | 11055 | | |
11027 | 11056 | | |
11028 | 11057 | | |
| |||
0 commit comments