MAAS bridge script should drop all 'source' stanzas from original file

Bug #1604482 reported by Andrew McDermott
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Invalid
High
Unassigned

Bug Description

We keep running into:

 https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1563296
 https://bugs.launchpad.net/curtin/+bug/1586075
 https://bugs.launchpad.net/maas/+bug/1588706
 https://bugs.launchpad.net/curtin/+bug/1582410

and it affects customers too:

 https://bugs.launchpad.net/juju-core/+bug/1603473

There is the advertised curtin workaround to remove both eth0.cfg and 50-cloud-init.cfg as the MAAS image is being deployed through a custom preseed - and this has worked and been sufficient to date.

However, the fixes in curtin have not moved from 'fix committed' and as such we continue to experience this issue. I propose that we change the bridge script to drop all 'source' stanzas so that we don't run into this problem anymore.

We had initially decided to use the workaround and leave the 'source' stanzas in place as that is the extension mechanism. I don't think we should we wait any longer as this is still hitting deployments of precise, trusty and xenial.

From a charmers perspective they can always add back the 'source' stanza if they find it missing during charm deployment. Our removal of the source stanza is a one-time affair.

From juju's perspective we should own the initial network configuration of the machine during the initial boot. If we drop the source stanzas our bridge procedure becomes:

  $ ifdown -a
  $ <rewrite-etc-network-interfaces-to-be-bridged>
  $ ifup -a

In this scenario we would take down all interfaces, including those originally source'd from /etc/network/interfaces.d/*.cfg and only bring up those interfaces in the newly created ENI which would no longer have the source stanza.

Tags: network 2.0
Changed in juju-core:
importance: Undecided → Critical
description: updated
description: updated
Revision history for this message
Andrew McDermott (frobware) wrote :

There are workarounds listed for this bug here:

  https://bugs.launchpad.net/maas/+bug/1590689

tags: added: 2.0
Changed in juju-core:
status: New → Triaged
Changed in juju-core:
importance: Critical → High
importance: High → Critical
Changed in juju-core:
milestone: none → 2.0-beta14
Changed in juju-core:
importance: Critical → High
Revision history for this message
Mick Gregg (macgreagoir) wrote :

This may need to happen outside the bridge script, as containers can also need the eth0.cfg removed (and interfaces down/up-ed).

Revision history for this message
Andrew McDermott (frobware) wrote :
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta14 → 2.0-beta15
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Based on bug in comment 3 being `Fix Released`, I am marking this as `Fix Committed`.

Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta15 → none
milestone: none → 2.0-beta15
Revision history for this message
Andrew McDermott (frobware) wrote :

This issues is still outstanding. Comment #3 & #4 was meant to convey that there was a separate fix for containers.

Changed in juju:
status: Fix Released → Triaged
Changed in juju:
milestone: 2.0-beta15 → 2.0-beta16
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-beta16 → 2.0-beta17
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-beta17 → 2.0-beta18
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-beta18 → 2.0-beta19
Changed in juju:
milestone: 2.0-beta19 → 2.0-rc1
Changed in juju:
milestone: 2.0-rc1 → 2.0-rc2
Changed in juju:
milestone: 2.0-rc2 → 2.0.1
Revision history for this message
Andrew McDermott (frobware) wrote :

So despite my initial protestations we don't appear to run into this bug anymore - the set of things that we wanted in the distros is now up to date. I propose we close this bug.

Changed in juju:
status: Triaged → Invalid
Changed in juju:
milestone: 2.0.1 → none
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.