do not delete /etc/network/interfaces.d/eth0.cfg

Bug #1563487 reported by Scott Moser on 2016-03-29
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-images
Medium
Dan Watkins
cloud-init
Medium
Unassigned
cloud-init (Ubuntu)
Medium
Unassigned
livecd-rootfs (Ubuntu)
Medium
Unassigned

Bug Description

currently cloud-init is removing /etc/network/interfaces.d/eth0.cfg .
This is because cloud-init now has a 'fallback' mode for getting configuration which should be superior to the statically written one by the image build process in all cases.

That said, still best to *not* delete the file.

This change is then 2 phased:
  a.) CPC not write that file on xenial in cloud images
  b.) cloud-init stop deleting it.

Related branches

Scott Moser (smoser) on 2016-03-29
Changed in cloud-init:
status: New → Confirmed
Changed in cloud-init (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in cloud-init:
importance: Undecided → Medium
Changed in cloud-images:
status: New → Confirmed
importance: Undecided → Medium
Changed in cloud-init (Ubuntu):
importance: High → Medium
Changed in cloud-images:
assignee: nobody → Dan Watkins (daniel-thewatkins)
Scott Moser (smoser) on 2016-04-15
Changed in livecd-rootfs (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Fix Released
Scott Moser (smoser) wrote :

fixed in trunk at revno 210.

Changed in cloud-init:
assignee: nobody → Scott Moser (smoser)
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.7~bzr1212-0ubuntu1

---------------
cloud-init (0.7.7~bzr1212-0ubuntu1) xenial; urgency=medium

  * New upstream snapshot.
    - fix iscsi root by not writing interface as 'auto' when networking
      information comes from kernel command line (LP: #1568637)
    - apply networking less often, when possible only on first
      instance boot (LP: #1571004).
    - no longer delete /etc/network/interfaces.d/eth0.cfg on
      ubuntu (LP: #1563487)

 -- Scott Moser <email address hidden> Fri, 15 Apr 2016 16:25:43 -0400

Changed in cloud-init (Ubuntu):
status: Confirmed → Fix Released
Scott Moser (smoser) wrote :

Not sure why this didn't get marked fix released

cloud-init (0.7.7~bzr1212-0ubuntu1) xenial; urgency=medium

  * New upstream snapshot.
    - fix iscsi root by not writing interface as 'auto' when networking
      information comes from kernel command line (LP: #1568637)
    - apply networking less often, when possible only on first
      instance boot (LP: #1571004).
    - no longer delete /etc/network/interfaces.d/eth0.cfg on
      ubuntu (LP: #1563487)

 -- Scott Moser <email address hidden> Fri, 15 Apr 2016 16:25:43 -0400

Changed in cloud-init:
assignee: Scott Moser (smoser) → nobody
status: Fix Committed → Fix Released
Scott Moser (smoser) wrote :

This seems fix-released for xenial images:
$ wget http://cloud-images.ubuntu.com/releases/xenial/release-20160420.3/ubuntu-16.04-server-cloudimg-amd64-disk1.img
$ sudo mount-image-callback --read-only --cd ubuntu-16.04-server-cloudimg-amd64-disk1.img -- sh -xc 'cat etc/cloud/build.info; ls -l etc/network/interfaces.d/eth0.cfg; ls -l etc/network/interfaces.d/'
mount: /dev/nbd0p1 is write-protected, mounting read-only
+ cat etc/cloud/build.info
build_name: server
serial: 20160420-145324
+ ls -l etc/network/interfaces.d/eth0.cfg
ls: cannot access 'etc/network/interfaces.d/eth0.cfg': No such file or directory
+ ls -l etc/network/interfaces.d/
total 0

Changed in cloud-images:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers