[Touch-packages] [Bug 1841378] Re: MACVLAN= in .nspawn file vs command line results in /sys/class/net showing host interfaces

2021-03-15 Thread Steve Dodd
It's just possible that the commit linked may fix
https://github.com/systemd/systemd/issues/12313 as well ..

** Bug watch added: github.com/systemd/systemd/issues #12313
   https://github.com/systemd/systemd/issues/12313

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1841378

Title:
  MACVLAN= in .nspawn file vs command line results in /sys/class/net
  showing host interfaces

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Bionic:
  New
Status in systemd source package in Disco:
  Fix Released

Bug description:
  I have machine with the following nspawn file:

  --
  [Network]
  MACVLAN=laneth0

  [Exec]
  PrivateUsers=false
  --

  if I start it with systemctl start systemd-nspawn@name, all works as
  expected.

  If I start manually with systemd-nspawn -M name -b, I seem to
  correctly get a new network namespace (ip link output in container is
  correct), but ls /sys/class/net shows the host's interfaces.

  The difference turns out to be that starting with systemctl uses a
  default command line which includes --private-network; the MACVLAN= in
  the config file should imply this, but instead it seems I'm getting
  "half" a private network, with the namespace correctly set but /sys
  not.

  Having a quick poke around, I suspect

  
https://github.com/systemd/systemd/commit/60f1ec13ed059e412c2a2ee4cc3093e2d520673c

  may have 'accidentally' fixed this - it moves

     if (arg_private_network)
  arg_mount_settings |= MOUNT_APPLY_APIVFS_NETNS;

  from parse_argv to verify_arguments which is called later.

  This bug causes netplan to fail as well as it rummages around in
  /sys/class/net.

  If the planets ever align appropriately, I will try to come up with a
  patch to 237 for bionic, but I don't recommend anyone holds their
  breath..

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: systemd-container 237-3ubuntu10.25
  Uname: Linux 4.19.13-041913-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sun Aug 25 17:54:50 2019
  InstallationDate: Installed on 2018-03-22 (521 days ago)
  InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 
(20180306.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1841378] Re: MACVLAN= in .nspawn file vs command line results in /sys/class/net showing host interfaces

2019-08-28 Thread Balint Reczey
Fixed in 240 and up.

** Also affects: systemd (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: systemd (Ubuntu)
   Status: New => Fix Released

** Also affects: systemd (Ubuntu Disco)
   Importance: Undecided
   Status: New

** Changed in: systemd (Ubuntu Disco)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1841378

Title:
  MACVLAN= in .nspawn file vs command line results in /sys/class/net
  showing host interfaces

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Bionic:
  New
Status in systemd source package in Disco:
  Fix Released

Bug description:
  I have machine with the following nspawn file:

  --
  [Network]
  MACVLAN=laneth0

  [Exec]
  PrivateUsers=false
  --

  if I start it with systemctl start systemd-nspawn@name, all works as
  expected.

  If I start manually with systemd-nspawn -M name -b, I seem to
  correctly get a new network namespace (ip link output in container is
  correct), but ls /sys/class/net shows the host's interfaces.

  The difference turns out to be that starting with systemctl uses a
  default command line which includes --private-network; the MACVLAN= in
  the config file should imply this, but instead it seems I'm getting
  "half" a private network, with the namespace correctly set but /sys
  not.

  Having a quick poke around, I suspect

  
https://github.com/systemd/systemd/commit/60f1ec13ed059e412c2a2ee4cc3093e2d520673c

  may have 'accidentally' fixed this - it moves

     if (arg_private_network)
  arg_mount_settings |= MOUNT_APPLY_APIVFS_NETNS;

  from parse_argv to verify_arguments which is called later.

  This bug causes netplan to fail as well as it rummages around in
  /sys/class/net.

  If the planets ever align appropriately, I will try to come up with a
  patch to 237 for bionic, but I don't recommend anyone holds their
  breath..

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: systemd-container 237-3ubuntu10.25
  Uname: Linux 4.19.13-041913-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sun Aug 25 17:54:50 2019
  InstallationDate: Installed on 2018-03-22 (521 days ago)
  InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 
(20180306.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1841378] Re: MACVLAN= in .nspawn file vs command line results in /sys/class/net showing host interfaces

2019-08-26 Thread Ubuntu Foundations Team Bug Bot
The attachment "nspawn-fix.diff" seems to be a patch.  If it isn't,
please remove the "patch" flag from the attachment, remove the "patch"
tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the
team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1841378

Title:
  MACVLAN= in .nspawn file vs command line results in /sys/class/net
  showing host interfaces

Status in systemd package in Ubuntu:
  New

Bug description:
  I have machine with the following nspawn file:

  --
  [Network]
  MACVLAN=laneth0

  [Exec]
  PrivateUsers=false
  --

  if I start it with systemctl start systemd-nspawn@name, all works as
  expected.

  If I start manually with systemd-nspawn -M name -b, I seem to
  correctly get a new network namespace (ip link output in container is
  correct), but ls /sys/class/net shows the host's interfaces.

  The difference turns out to be that starting with systemctl uses a
  default command line which includes --private-network; the MACVLAN= in
  the config file should imply this, but instead it seems I'm getting
  "half" a private network, with the namespace correctly set but /sys
  not.

  Having a quick poke around, I suspect

  
https://github.com/systemd/systemd/commit/60f1ec13ed059e412c2a2ee4cc3093e2d520673c

  may have 'accidentally' fixed this - it moves

     if (arg_private_network)
  arg_mount_settings |= MOUNT_APPLY_APIVFS_NETNS;

  from parse_argv to verify_arguments which is called later.

  This bug causes netplan to fail as well as it rummages around in
  /sys/class/net.

  If the planets ever align appropriately, I will try to come up with a
  patch to 237 for bionic, but I don't recommend anyone holds their
  breath..

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: systemd-container 237-3ubuntu10.25
  Uname: Linux 4.19.13-041913-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sun Aug 25 17:54:50 2019
  InstallationDate: Installed on 2018-03-22 (521 days ago)
  InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 
(20180306.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1841378] Re: MACVLAN= in .nspawn file vs command line results in /sys/class/net showing host interfaces

2019-08-26 Thread Steve Dodd
The "obvious fix" (attached) does indeed solve the problem - haven't
done enough testing as of yet to be sure there are no weird
consequences.

** Description changed:

  I have machine with the following nspawn file:
  
  --
  [Network]
  MACVLAN=laneth0
  
  [Exec]
  PrivateUsers=false
  --
  
  if I start it with systemctl start systemd-nspawn@name, all works as
  expected.
  
  If I start manually with systemd-nspawn -M name -b, I seem to correctly
  get a new network namespace (ip link output in container is correct),
  but ls /sys/class/net shows the host's interfaces.
  
  The difference turns out to be that starting with systemctl uses a
  default command line which includes --private-network; the MACVLAN= in
  the config file should imply this, but instead it seems I'm getting
  "half" a private network, with the namespace correctly set but /sys not.
  
  Having a quick poke around, I suspect
  
  
https://github.com/systemd/systemd/commit/60f1ec13ed059e412c2a2ee4cc3093e2d520673c
  
  may have 'accidentally' fixed this - it moves
  
-if (arg_private_network)
- arg_mount_settings |= MOUNT_APPLY_APIVFS_NETNS;
+    if (arg_private_network)
+ arg_mount_settings |= MOUNT_APPLY_APIVFS_NETNS;
  
  from parse_argv to verify_arguments which is called later.
  
  This bug causes netplan to fail as well as it rummages around in
  /sys/class/net.
  
  If the planets ever align appropriately, I will try to come up with a
- patch to 237 for bionic, but I don't recommend anyone hold's their
+ patch to 237 for bionic, but I don't recommend anyone holds their
  breath..
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: systemd-container 237-3ubuntu10.25
  Uname: Linux 4.19.13-041913-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sun Aug 25 17:54:50 2019
  InstallationDate: Installed on 2018-03-22 (521 days ago)
  InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 
(20180306.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

** Patch added: "nspawn-fix.diff"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1841378/+attachment/5284741/+files/nspawn-fix.diff

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1841378

Title:
  MACVLAN= in .nspawn file vs command line results in /sys/class/net
  showing host interfaces

Status in systemd package in Ubuntu:
  New

Bug description:
  I have machine with the following nspawn file:

  --
  [Network]
  MACVLAN=laneth0

  [Exec]
  PrivateUsers=false
  --

  if I start it with systemctl start systemd-nspawn@name, all works as
  expected.

  If I start manually with systemd-nspawn -M name -b, I seem to
  correctly get a new network namespace (ip link output in container is
  correct), but ls /sys/class/net shows the host's interfaces.

  The difference turns out to be that starting with systemctl uses a
  default command line which includes --private-network; the MACVLAN= in
  the config file should imply this, but instead it seems I'm getting
  "half" a private network, with the namespace correctly set but /sys
  not.

  Having a quick poke around, I suspect

  
https://github.com/systemd/systemd/commit/60f1ec13ed059e412c2a2ee4cc3093e2d520673c

  may have 'accidentally' fixed this - it moves

     if (arg_private_network)
  arg_mount_settings |= MOUNT_APPLY_APIVFS_NETNS;

  from parse_argv to verify_arguments which is called later.

  This bug causes netplan to fail as well as it rummages around in
  /sys/class/net.

  If the planets ever align appropriately, I will try to come up with a
  patch to 237 for bionic, but I don't recommend anyone holds their
  breath..

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: systemd-container 237-3ubuntu10.25
  Uname: Linux 4.19.13-041913-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.6
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Sun Aug 25 17:54:50 2019
  InstallationDate: Installed on 2018-03-22 (521 days ago)
  InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 
(20180306.1)
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp