EthernetDeviceForBridge fails if bridge has external addresses

Bug #2056365 reported by Federico Bosi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
In Progress
Medium
Joseph Phillips

Bug Description

I have a host with multiple ips on its bridge: (for example)

my:prefix:subnet::dhcp:ip/128 global dynamic
my:prefix:subnet2::static:ip/64 global

I have configured juju to only manage the statically assigned addresses on subnet2/64
`juju list-subnets` correctly lists my:prefix:subnet2::/64

When juju calls linklayerdevices.go:EthernetDeviceForBridge it tries to get the subnet
for the first address on the bridge (the dynamic one) and since the mask is /128 it fails
with "retrieving subnet my:prefix:subnet::dhcp:ip/128 used by address my:prefix:subnet::dhcp:ip/128
of host machine device br-ens2".

I made it loop over the devices and return the first valid one, and it works.
I'll put a pull request on github shortly and would like your feedback as I'm new to open source :)

Revision history for this message
Joseph Phillips (manadart) wrote :
Changed in juju:
status: New → Triaged
assignee: nobody → Joseph Phillips (manadart)
Changed in juju:
importance: Undecided → Medium
status: Triaged → In Progress
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.