Installing ifupdown on bionic does not install a /etc/network/interfaces that sources /etc/network/interfaces.d/*

Bug #1848617 reported by chenxiang wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Invalid
Low
Unassigned
ifupdown (Ubuntu)
New
Undecided
Unassigned

Bug Description

For the ubuntu1804 template VM of Azure, the file /etc/network/interfaces lacks a line:
source /etc/network/interfaces.d/*
So the VM can't get configurations under /etc/network/interfaces.d/
After installing ifupdown on the VM, cloud-init will rewrite file /etc/network/interfaces.d/50-cloud-init.cfg rather than /etc/netplan/50-cloud-init.yaml, but /etc/network/interfaces.d/50-cloud-init.cfg won't take effect.

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

In previous ubuntu, we mostly considered it an image-creation bug if /etc/network/interfaces did not have the 'source' line you have described.

That said, is there a reason you want to have ifupdown on 18.04?

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

Please set back to New after responding.

Changed in cloud-init:
importance: Undecided → Low
status: New → Incomplete
Changed in cloud-init:
status: Incomplete → New
Revision history for this message
chenxiang wang (chenxiangw) wrote :

Yes, we need to install Linux Virtual Delivery Agent (a product of Citrix) on 1804, and ifupdown is a dependency of this product. When we deploy duplicated VMs they can't get ip addresses due to this problem.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi!

I believe this is an issue with ifupdown, rather than cloud-init. As such, I've added an ifupdown task and marked cloud-init's task as Invalid. If it's determined that we won't fix this in ifupdown, then please move the cloud-init task back to New and we can consider working around this in cloud-init.

In the meantime, you'll have to modify /etc/network/interfaces yourself to perform the sourcing.

Thanks!

Dan

summary: - cloud-init configures network incorrectly on the ubuntu1804 template VM
- of Azure
+ Installing ifupdown on bionic does not install a /etc/network/interfaces
+ that sources /etc/network/interfaces.d/*
Changed in cloud-init:
status: New → Invalid
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.