[Bug 1570142] Re: net-interface-handler needs updating for newer ifupdown

2017-09-14 Thread Scott Moser
Marking this fix-released.
I'm 98% certain its no longer a problem on xenial.
I'm 100% certain its not a problem on zesty.
I'm 100% certain that the fix does not apply to artful (with netplan).


** Changed in: open-iscsi (Ubuntu)
   Status: In Progress => Fix Released

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

Title:
  net-interface-handler needs updating for newer ifupdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1570142] Re: net-interface-handler needs updating for newer ifupdown

2016-04-15 Thread Scott Moser
** No longer affects: cloud-init (Ubuntu)

** No longer affects: maas-images

** No longer affects: cloud-init

** Description changed:

  newer ifupdown versions (those in xenial) now keep interface state in
  /run/network/ifstate. rather than combined in
  /run/network/ifstate .
  
  We need to update /lib/open-iscsi/net-interface-handler to write the
  interface name into /run/network/ifstate. and then also
  tear that down on down.
  
  The failure can be seen when booting a maas image, if you first move the 
included symlink out of the way:
  p="/etc/network/interfaces";
   [ -e "$p.link" -o -L "$p.link" ] || mv "$p" "$p.link"; cp "$p.dist" "$p"
  
  (maas images ship with /etc/network/interfaces as a symlink to 
../../run/network/dynamic-interfaces
  and /run/network/dynamic-interfaces is populated by 
cloud-initramfs-dyn-netconf).
  
  This affects:
-   * cloud-init: cloud-init's fallback config currently writes 'auto' for the 
network device. the cloud-initramfs-dyn-netconf writes 'manual', and so 
ifupdown doesn't try to bring up *or* down the device.
-   * maas-images: the single difference from filesystem viewpoint from xenial 
lxd image to maas image is 'ln -snf ../../run/dynamic-interfaces 
/etc/network/interfaces'
-   * open-iscsi: the real need for open-iscsi's udev integration is to get the 
resolvconf updates applied.
+   * cloud-init: cloud-init's fallback config currently writes 'auto' for the 
network device. the cloud-initramfs-dyn-netconf writes 'manual', and so 
ifupdown doesn't try to bring up *or* down the device.
+   * maas-images: the single difference from filesystem viewpoint from xenial 
lxd image to maas image is 'ln -snf ../../run/dynamic-interfaces 
/etc/network/interfaces'
+   * open-iscsi: the real need for open-iscsi's udev integration is to get the 
resolvconf updates applied.
+ 
+ Related bugs:
+  * bug 1568637:  network config of initramfs devices writes 'auto', breaking 
iscsi root boot 
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: open-iscsi 2.0.873+git0.3b4b4500-14ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
  Uname: Linux 4.4.0-18-generic x86_64
  ApportVersion: 2.20.1-0ubuntu1
  Architecture: amd64
  Date: Wed Apr 13 23:58:27 2016
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
  SourcePackage: open-iscsi
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  net-interface-handler needs updating for newer ifupdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1570142] Re: net-interface-handler needs updating for newer ifupdown

2016-04-14 Thread Scott Moser
At this point, I think the second patch there is doing the right thing.
The reason I asked slangasek to NAC my upload was that poweroff wasnt' working 
correctly.
The reason poweroff wasn't working correctly was that cloud-init is writing 
'auto eth0' where cloud-initramfs-dyn-netconf is writing 'manual eth0'.  
cloud-init's version means that ifupdown tries to bring the device down on 
shutdown.

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: cloud-init
   Importance: Undecided
   Status: New

** Also affects: maas-images
   Importance: Undecided
   Status: New

** Changed in: cloud-init
   Status: New => Confirmed

** Changed in: maas-images
   Status: New => Confirmed

** Changed in: cloud-init (Ubuntu)
   Status: New => Confirmed

** Description changed:

  newer ifupdown versions (those in xenial) now keep interface state in
  /run/network/ifstate. rather than combined in
  /run/network/ifstate .
  
  We need to update /lib/open-iscsi/net-interface-handler to write the
  interface name into /run/network/ifstate. and then also
  tear that down on down.
  
  The failure can be seen when booting a maas image, if you first move the 
included symlink out of the way:
- p="/etc/network/interfaces"; 
-  [ -e "$p.link" -o -L "$p.link" ] || mv "$p" "$p.link"; cp "$p.dist" "$p"
+ p="/etc/network/interfaces";
+  [ -e "$p.link" -o -L "$p.link" ] || mv "$p" "$p.link"; cp "$p.dist" "$p"
  
  (maas images ship with /etc/network/interfaces as a symlink to 
../../run/network/dynamic-interfaces
  and /run/network/dynamic-interfaces is populated by 
cloud-initramfs-dyn-netconf).
+ 
+ This affects:
+   * cloud-init: cloud-init's fallback config currently writes 'auto' for the 
network device. the cloud-initramfs-dyn-netconf writes 'manual', and so 
ifupdown doesn't try to bring up *or* down the device.
+   * maas-images: the single difference from filesystem viewpoint from xenial 
lxd image to maas image is 'ln -snf ../../run/dynamic-interfaces 
/etc/network/interfaces'
+   * open-iscsi: the real need for open-iscsi's udev integration is to get the 
resolvconf updates applied.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: open-iscsi 2.0.873+git0.3b4b4500-14ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
  Uname: Linux 4.4.0-18-generic x86_64
  ApportVersion: 2.20.1-0ubuntu1
  Architecture: amd64
  Date: Wed Apr 13 23:58:27 2016
  ProcEnviron:
-  TERM=xterm-256color
-  PATH=(custom, no user)
+  TERM=xterm-256color
+  PATH=(custom, no user)
  SourcePackage: open-iscsi
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  net-interface-handler needs updating for newer ifupdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1570142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1570142] Re: net-interface-handler needs updating for newer ifupdown

2016-04-13 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

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

Title:
  net-interface-handler needs updating for newer ifupdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570142] Re: net-interface-handler needs updating for newer ifupdown

2016-04-13 Thread Scott Moser
** Patch added: "second try: make sure we run the upstart"
   
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+attachment/4636380/+files/try-number2.debdiff

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

Title:
  net-interface-handler needs updating for newer ifupdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1570142] Re: net-interface-handler needs updating for newer ifupdown

2016-04-13 Thread Scott Moser
** Changed in: open-iscsi (Ubuntu)
   Importance: Undecided => High

** Changed in: open-iscsi (Ubuntu)
   Status: New => In Progress

** Patch added: "suggested debdiff fix"
   
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+attachment/4636347/+files/lp-1570142.debdiff

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

Title:
  net-interface-handler needs updating for newer ifupdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1570142/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs