[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-28 Thread Launchpad Bug Tracker
This bug was fixed in the package netplan.io - 0.107-5ubuntu0.4

---
netplan.io (0.107-5ubuntu0.4) mantic-security; urgency=medium

  * SECURITY REGRESSION: failure on systems without dbus
- debian/netplan-generator.postinst: Don't call the generator if no
  networkd configuration file exists. (LP: #2071333)

 -- Sudhakar Verma   Fri, 28 Jun 2024
22:17:07 +0530

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-28 Thread Launchpad Bug Tracker
This bug was fixed in the package netplan.io - 1.0-2ubuntu1.2

---
netplan.io (1.0-2ubuntu1.2) noble-security; urgency=medium

  * SECURITY REGRESSION: failure on systems without dbus
- debian/netplan-generator.postinst: Don't call the generator if no
  networkd configuration file exists. (LP: #2071333)

 -- Sudhakar Verma   Fri, 28 Jun 2024
22:40:44 +0530

** Changed in: netplan.io (Ubuntu)
   Status: Triaged => Fix Released

** Changed in: netplan.io (Ubuntu)
   Status: Triaged => 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/2071333

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-28 Thread Sudhakar Verma
I have made the mentioned changes and uploaded to
https://launchpad.net/~ubuntu-security-proposed ppa for testing

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-28 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~danilogondolfo/ubuntu/+source/netplan.io/+git/netplan.io/+merge/468428

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-28 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~danilogondolfo/ubuntu/+source/netplan.io/+git/netplan.io/+merge/468426

** Merge proposal linked:
   
https://code.launchpad.net/~danilogondolfo/ubuntu/+source/netplan.io/+git/netplan.io/+merge/468427

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-28 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~danilogondolfo/ubuntu/+source/netplan.io/+git/netplan.io/+merge/468419

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-27 Thread Kaarel Pärtel
Thank you for your swift response. This did indeed fix our problem.

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-27 Thread Danilo Egea Gondolfo
Hello,

this is not caused by Netplan itself (but one of the things the update
does will lead to the error). Below is a Dockerfile you can use to
reproduce the problem. As you can see, netplan.io is not involved in it.



FROM ubuntu:22.04

RUN apt-get update && apt-get install --yes --no-install-recommends \
systemd \
openssh-server ; mkdir /run/systemd/system

RUN systemctl enable ssh



Here is why it fails:

The call to "systemctl enable ssh" gets redirected to
"/lib/systemd/systemd-sysv-install enable ssh" which works, because the
file "/etc/init.d/ssh" exists.

"systemd-sysv-install" is a script that will call another script called
"/usr/sbin/update-rc.d". This second script will check if
/run/systemd/system exists and assume systemd is available if it does.

Why it started to happen after the security update? One of the issues we
fixed was a bad file permission we were using. To ensure that the
permissions are set to the correct ones, the update calls the netplan
generator to recreate the files. One of the things the generator does is
create that directory.

To workaround this you can just remove that directory before calling
systemctl:



FROM ubuntu:22.04

RUN apt-get update && apt-get install --yes --no-install-recommends \
systemd \
openssh-server \
netplan.io ; rm -rf /run/systemd/system

RUN systemctl enable ssh



** Changed in: netplan.io (Ubuntu)
   Status: New => Triaged

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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

[Bug 2071333] Re: netplan.io causes systemctl enable to fail on systems without dbus

2024-06-27 Thread Kaarel Pärtel
From my testing this also occurs when using 20.04 but this does NOT
occur on 24.04

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

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions


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