apply networking only on first instance boot

Bug #1571004 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Scott Moser

Bug Description

Currently cloud-init is applying networking on every boot.
On 'local' data sources that provide network information this is great.
On any other datasource:
  * local datasource without networking info
  * network based datasource

then the fallback networking is rendered on every boot.
In the scenario:
 a.) boot instance
 b.) fallback networking picks eth0.cfg and that is fine
 c.) attach network device
 d.) reboot

things can get hairy.

The suggested change is to only apply the networking configuration once per instance.
This is less dynamic and less surprising.

ie, if a user modifies /etc/network/interfaces.d/my.cfg and adds to or improves on the fallback (or unconfigures the fallback) then their changes might not interact well.

Related branches

Revision history for this message
Scott Moser (smoser) wrote :

The fix is to only apply when we have not re-loaded a datasource found in the cache.

Scott Moser (smoser)
Changed in cloud-init:
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Medium
status: New → In Progress
Scott Moser (smoser)
Changed in cloud-init:
status: In Progress → Fix Committed
Joshua Harlow (harlowja)
Changed in cloud-init:
milestone: none → 0.7.7
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Scott Moser (smoser)
description: updated
Revision history for this message
James Falcon (falcojr) wrote :
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.