MAAS should not add 'source /etc/network/interfaces.d/*.cfg' to /etc/network/interfaces

Bug #1588706 reported by Andrew McDermott
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned
curtin
New
Undecided
Unassigned

Bug Description

Looking at a deployed node I have:

ubuntu@maas19-node1:~$ more /etc/network/interfaces-before-add-juju-bridge
auto lo
iface lo inet loopback
    dns-nameservers 10.11.19.2
    dns-search maas19

auto eth0
iface eth0 inet static
    gateway 10.11.19.1
    address 10.11.19.110/24
    mtu 1500

auto eth1
iface eth1 inet static
    address 10.11.19.111/24
    mtu 1500

auto eth2
iface eth2 inet static
    address 10.11.19.113/24
    mtu 1500

auto eth3
iface eth3 inet static
    address 10.11.19.112/24
    mtu 1500

source /etc/network/interfaces.d/*.cfg

and ALSO:

ubuntu@maas19-node1:~$ tree -a /etc/network/interfaces.d/
/etc/network/interfaces.d/
`-- eth0.cfg

0 directories, 1 file

ubuntu@maas19-node1:~$ cat /etc/network/interfaces.d/eth0.cfg
# The primary network interface
auto eth0
iface eth0 inet dhcp

So when the machine boots I start off with a static IP address then get a DHCP address.

This is relatively new behaviour as for a long time the /e/n/i I would get from a MAAS deployed node would not get the 'source' stanza.

This is MAAS 1.9.3:

aim@maas19:~$ dpkg -l |grep maas
ii maas-cli 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS command line API tool
ii maas-cluster-controller 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS server cluster controller
ii maas-common 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS server common files
ii maas-dhcp 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS DHCP server
ii maas-dns 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS DNS server
ii maas-proxy 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS Caching Proxy
ii maas-region-controller 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS server complete region controller
ii maas-region-controller-min 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS Server minimum region controller
ii python-django-maas 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS server Django web framework
ii python-maas-client 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS python API client
ii python-maas-provisioningserver 1.9.3+bzr4577-0ubuntu1~trusty1 all MAAS server provisioning libraries

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Andrew,

Can you please attach the version of curtin you are using ? This is an issue in curtin.

Changed in maas:
status: New → Invalid
Revision history for this message
Andrew McDermott (frobware) wrote :

im@maas19:~$ dpkg -l |grep curtin
ii curtin-common 0.1.0~bzr385-0ubuntu1 all Library and tools for curtin installer
ii python-curtin 0.1.0~bzr385-0ubuntu1 all Library and tools for curtin installer

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.