|
Ran
|
Jobs
1
|
Files
202
|
Run time
1min
|
Badge
README BADGES
|
push
github
fix: prevent subnet from getting permanently stuck when VLAN is not ready (#6352) Fix two bugs that combine to cause underlay subnets to get permanently stuck during controller startup when the VLAN is created after the subnet. Bug 1: In handleAddOrUpdateSubnet, variable shadowing (err :=) and overwriting (err =) in the VLAN/subnet validation error paths caused patchSubnetStatus success to zero out the original validation error. The handler returned nil, making the work queue forget the item instead of retrying it. Fix by using a separate patchErr variable for the patch call and using = instead of := for the error wrapping. Bug 2: handleAddVlan did not re-enqueue subnets that reference the newly created VLAN. Once a subnet's validation failed and was forgotten by the queue, no event would trigger it to be reprocessed. Fix by iterating over subnets at the end of handleAddVlan and adding those referencing the VLAN back to the addOrUpdateSubnetQueue. Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> (cherry picked from commit e9b65ce70)
2 of 11 new or added lines in 2 files covered. (18.18%)
3 existing lines in 2 files now uncovered.12395 of 54011 relevant lines covered (22.95%)
0.27 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 4 |
0.0 |
0.0% | pkg/controller/vlan.go |
| 5 |
7.57 |
0.96% | pkg/controller/subnet.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
0.0 |
0.0% | pkg/controller/vlan.go |
| 2 |
61.61 |
-0.62% | pkg/ovs/ovn-nb-bfd.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 22522896888.1 | 202 |
22.95 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|