MAAS fails on determining default route
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MAAS | ||||||
2.9 |
Won't Fix
|
High
|
Unassigned |
Bug Description
MAAS version: 2.9.2. Installed via snap.
MAAS fails with the following stack trace when trying to determine the default route.
/var/snap/
```
2021-05-04 13:29:58 twisted.
2021-05-04 13:29:58 twisted.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/snap/
return target()
File "/snap/
task()
File "/snap/
task()
--- <exception caught here> ---
File "/snap/
result = inContext.theWork()
File "/snap/
inContext.
File "/snap/
return self.currentCon
File "/snap/
return func(*args,**kw)
File "/snap/
return func(*args, **kwargs)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func_outside_
File "/snap/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
self.
File "/snap/
addresses = get_all_
File "/snap/
for network in get_all_
File "/snap/
for interface in get_all_
File "/snap/
fix_
File "/snap/
and IPAddress(
builtins.KeyError: 'via'
```
This happens due to the fact that default route is being handled by the user-space BGP routing daemon and the default route is actually multi-path.
```
default proto bgp metric 20
nexthop via 169.254.0.1 dev external_1 weight 1 onlink
nexthop via 169.254.0.1 dev external_2 weight 1 onlink
```
Related branches
- MAAS Lander: Needs Fixing
- Adam Collard: Pending requested
-
Diff: 42 lines (+26/-1)1 file modifiedsrc/provisioningserver/utils/iproute.py (+26/-1)
- Adam Collard (community): Needs Resubmitting
- MAAS Lander: Needs Fixing
- Diff: 0 lines
no longer affects: | maas |
Thanks for your bug report! Did you mean to propose a fix for it? I see that you have an MP, but the diff is empty.
I also wonder if this affects master/3.0 as well? The code path there has changed slightly.