[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
This bug was fixed in the package lxd - 2.1-0ubuntu2 --- lxd (2.1-0ubuntu2) yakkety; urgency=medium * Properly handle purge. (LP: #1614621) * Configure system-wide dnsmasq not to touch lxdbr0. (LP: #1613820) * Stop lxd.socket on package remove. (LP: #1577001) -- Stéphane GraberMon, 29 Aug 2016 17:29:27 -0400 ** Changed in: lxd (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/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
** Changed in: lxd (Ubuntu) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
** Changed in: lxd (Ubuntu) Importance: High => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
This bug was fixed in the package systemd - 230-1git1 --- systemd (230-1git1) yakkety; urgency=medium * Don't add a Breaks: against usb-modeswitch when building on Ubuntu; there it does not use hotplug.functions and is a lower version. * boot-and-services autopkgtest: Add missing xserver-xorg and lightdm-greeter test dependencies, so that lightdm can start. (See LP #1581106) -- Martin PittWed, 25 May 2016 09:37:41 +0200 ** Changed in: systemd (Ubuntu) Status: Fix Committed => 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/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
** Changed in: lxd (Ubuntu) Status: New => Triaged ** Changed in: lxd (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
On the systemd side this was fixed upstream in https://github.com/systemd/systemd/commit/01a8b4675. However, lxd's postrm still needs to be fixed to stop lxd.socket on removal. ** Changed in: systemd (Ubuntu) Status: Confirmed => Fix Committed ** Changed in: systemd (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
> @Martin: the problem doesn't reproduce for me if lxd.socket isn't running before installing lxd. Thanks for confirming, then it seems we nailed this indeed. Thanks for confirming! > Purging lxd should stop lxd and lxd.socket, shouldn't it? Correct, that's what the lxd task is for. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
@Martin: the problem doesn't reproduce for me if lxd.socket isn't running before installing lxd. That's why I posted the script along with output for the ls -l, to show what happens for me in the two cases. Purging lxd should stop lxd and lxd.socket, shouldn't it? Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
@Dan: I know that my reproducer works. I just wondered if you can reproduce this with a clean install of lxd when it was *not* previously installed (or at least lxd.socket is not running before apt-get install lxd). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
@martin: I'm on desktop, fwiw. I think you nailed it: apt-cache policy lxd systemd # lxd: # Candidate: 2.0.0-0ubuntu4 # systemd: # Installed: 229-4ubuntu4 # Clean initial conditions sudo apt purge -y lxd || true sudo systemctl stop lxd.socket || true sudo rm -f /var/lib/lxd/unix.socket echo "Demonstrate proper functioning on first install" sudo apt install -y lxd ls -l /var/lib/lxd/unix.socket # srw-rw 1 root lxd 0 May 2 10:10 /var/lib/lxd/unix.socket echo "Purge (bug: leaves lxd.socket running, leaves unix.socket present!)" sudo apt purge -y lxd ls -l /var/lib/lxd/unix.socket # srw-rw 1 root lxd 0 May 2 10:10 /var/lib/lxd/unix.socket echo "Reinstall (bug: breaks group ownership of unix.socket!)" sudo apt install -y lxd ls -l /var/lib/lxd/unix.socket # srw-rw 1 root root 0 May 2 10:10 /var/lib/lxd/unix.socket -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
I created https://github.com/systemd/systemd/issues/3171 for changing the socket group on reload with an absent unit. This will not be an issue any more when lxd's prerm stops `lxd.socket` on removal, but (1) this sounds worth fixing anyway, and (2) I have some feeling that the above reproducer is not the complete story here yet. Waiting on Dan's answer for that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
** Also affects: lxd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
Moving over to systemd, our unit is very clear about the expected owner for the socket. The needed group is created in preinst so is guaranteed to be there by the time systemd is poked in postinst. LXD itself doesn't change socket ownership when socket activated and if it did, it would honor the --group option which would have it chown to the right group. ** Package changed: lxd (Ubuntu) => systemd (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: lxd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
Had this issue on a fresh install of lxd on Xenial as well. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1577001] Re: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership
See also later comments in https://github.com/lxc/lxd/issues/1635 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1577001 Title: Installing lxd leaves /var/lib/lxd/unix.socket with wrong group ownership To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1577001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs