[2.0a1] network provisioningserver should parse ipv6 routes

Bug #1555703 reported by LaMont Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Wishlist
Unassigned

Bug Description

src/provisioningserver/utils/iproute.py:get_ip_route runs "/sbin/ip route", which gets it ipv4 routes. Note also that the output of "/sbin/ip -6 route" is slightly different, so the parser will need to be updated to handle it better.

on my machine:

# ip route show scope global
default via 192.168.132.1 dev br0 onlink
# ip -6 route show scope global
2601:282:8100:3500::/64 dev br0 proto kernel metric 256 expires 293sec pref medium
2601:282:8100:3580::/64 dev br1 proto kernel metric 256 pref medium
2601:282:8100:35a0::/64 dev br2 proto kernel metric 256 pref medium
fe80::/64 dev br0 proto kernel metric 256 pref medium
fe80::/64 dev br1 proto kernel metric 256 pref medium
fe80::/64 dev br2 proto kernel metric 256 pref medium
default via fe80::1 dev br0 proto ra metric 1024 expires 23sec hoplimit 64 pref low

(with -6, "scope global" does not strip directly connected networks) A nexthop router on fe80::/16 is always reachable, even though it's not the same subnet as the IP on the interface: it needs to be handled as a special case for all subnets on the device where such a route is declared (default or otherwise).

LaMont Jones (lamont)
summary: - network provisioningserver code fails to parse ipv6 routes
+ [2.0a1] network provisioningserver code fails to parse ipv6 routes
Changed in maas:
milestone: none → 2.0.0
importance: Undecided → High
Revision history for this message
Mike Pontillo (mpontillo) wrote : Re: [2.0a1] network provisioningserver code fails to parse ipv6 routes

Compares to IPv4, I think it's less important that MAAS gathers default routes for IPv6 interfaces from the rack controller. Since IPv6 has stateless auto-configuration built into the protocol, which will allow nodes to automatically discover their default router.

Also, since the current code only looks at IPv4 routes, it could be argued that this is not (yet) a bug. ;-)

Changed in maas:
importance: High → Wishlist
status: New → Triaged
summary: - [2.0a1] network provisioningserver code fails to parse ipv6 routes
+ [2.0a1] network provisioningserver should parse ipv6 routes
Changed in maas:
milestone: 2.0.0 → 2.1.0
Changed in maas:
milestone: 2.1.0 → 2.1.1
Changed in maas:
milestone: 2.1.1 → 2.1.2
Changed in maas:
milestone: 2.1.2 → 2.1.3
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.