[Bug 1655059] Re: ifup at .service doesn't work with interface names containing a dash

Frederik Slos 1655059 at bugs.launchpad.net
Fri Jan 13 07:29:43 UTC 2017


I looked into a fix for this:
The problem is in 
/lib/systemd/system/ifup at .service

looking at 'Table 9.14. Important Unit Specifiers' on
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Unit_Files.html

the change to be made is changing all instances of %I to %i

That fixes it for us anyway.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1655059

Title:
  ifup at .service doesn't work with interface names containing a dash

Status in ifupdown package in Ubuntu:
  New

Bug description:
  It seems dashes get replaced by forward slash in the unit file and hence the interface is not found.
  Endresult is that the interface does not come up.

  $ sudo systemctl start ifup at br-vxlan
  $ # I'm expecting this brings up the br-vxlan, but nothing happens, this command doesn't return an error message

  Further info:

  $ sudo systemctl status ifup at br-vxlan
  * ifup at br-vxlan.service - ifup for br/vxlan
     Loaded: loaded (/lib/systemd/system/ifup at .service; static; vendor preset: enabled)
     Active: active (exited) since Mon 2017-01-09 15:55:15 CET; 10min ago
    Process: 4705 ExecStop=/sbin/ifdown %I (code=exited, status=1/FAILURE)
    Process: 4713 ExecStart=/bin/sh -ec ifup --allow=hotplug %I; ifup --allow=auto %I;      if ifquery %I >/dev/
   Main PID: 4713 (code=exited, status=0/SUCCESS)
     CGroup: /system.slice/ifup at br-vxlan.service

  Jan 09 15:55:15 xxxxxxxxxxx systemd[1]: Started ifup for br/vxlan.
  Jan 09 15:55:15 xxxxxxxxxxx sh[4713]: Unknown interface br/vxlan

  
  $ cat /etc/network/interfaces.d/60_iface_br-vxlan

  allow-auto br-vxlan
  allow-boot br-vxlan
  allow-hotplug br-vxlan
  iface br-vxlan inet manual
      bridge_fd 0
      bridge_maxwait 0
      bridge_ports enp1s0f1
      bridge_stp off
      bridge_waitport 0

  
  $ lsb_release -rd
  Description:    Ubuntu 16.04.1 LTS
  Release:        16.04

  
  $ apt-cache policy ifupdown
  ifupdown:
    Installed: 0.8.10ubuntu1.2
    Candidate: 0.8.10ubuntu1.2
    Version table:
   *** 0.8.10ubuntu1.2 500
          500 http://xxxxxxx.cisco.com/ubuntu xenial-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       0.8.10ubuntu1 500
          500 http://xxxxxxx.cisco.com/ubuntu xenial/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1655059/+subscriptions



More information about the foundations-bugs mailing list