dresden-weekly / ansible-network-interfaces

Ansible roles to manage Ubuntu network interface configuration
MIT License
86 stars 62 forks source link

bridge-utils is not installed, created bridges fail to come up #32

Closed lewisthompson closed 8 years ago

lewisthompson commented 8 years ago

This br0 interface was created by ansible-network-interfaces but fails to come up:

root@raspberrypi:/home/pi# ifup br0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "br0"
Bind socket to interface: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
Failed to bring up br0.

If I install bridge-utils manually the same command then succeeds:

root@raspberrypi:/home/pi# apt-get install bridge-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  bridge-utils
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 32.1 kB of archives.
After this operation, 60.4 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main bridge-utils armhf 1.5-9 [32.1 kB]
Fetched 32.1 kB in 0s (36.4 kB/s)
Selecting previously unselected package bridge-utils.
(Reading database ... 118140 files and directories currently installed.)
Preparing to unpack .../bridge-utils_1.5-9_armhf.deb ...
Unpacking bridge-utils (1.5-9) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up bridge-utils (1.5-9) ...
root@raspberrypi:/home/pi# ifup br0

Waiting for br0 to get ready (MAXWAIT is 32 seconds).
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/br0/00:19:86:81:33:e7
Sending on   LPF/br0/00:19:86:81:33:e7
Sending on   Socket/fallback
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 4
DHCPREQUEST on br0 to 255.255.255.255 port 67
DHCPOFFER from 17.67.247.1
DHCPACK from 17.67.247.1
Restarting ntp (via systemctl): ntp.service.
bound to 17.67.247.102 -- renewal in 32588 seconds.

It looks as though the ensure basic networking tools are installed needs updating.

arBmind commented 8 years ago

Thanks for reporting the issue. Unfortunately we never used this role in such a scenario, so we lack a test.

If you have a second please investigate why the bridge-utils were not installed.

lewisthompson commented 8 years ago

I'm using this against a Raspberry Pi 3 running raspbian. Everything works correctly if I update ensure basic networking tools are installed to also install bridge-utils.