Bug #12525

systemd-logind is missing in the Vagrant build box

Added by intrigeri 2017-05-09 10:32:39 . Updated 2017-06-12 16:07:41 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Build system
Target version:
Start date:
2017-05-09
Due date:
% Done:

100%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

As discussed on tails-dev, this breaks shutting down the VM with virsh shutdown, and in turn makes shutting down the entire system take ages.


Subtasks


History

#1 Updated by arnaud 2017-05-12 02:04:55

I had a quick look at this issue.

Just starting the service doesn’t work, because it requires dbus to be installed. You can see that with these commands, run as root.

$ systemctl start  systemd-logind.service
$ systemctl status systemd-logind.service
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static)
   Active: inactive (dead)
           start condition failed at Fri 2017-05-12 01:53:28 UTC; 1s ago
           ConditionPathExists=/lib/systemd/system/dbus.service was not met
   ...

Ok, so let’s install dbus and retry.

$ apt-get install dbus
...
$ systemctl start  systemd-logind.service
$ systemctl status systemd-logind.service
● systemd-logind.service - Login Service
   Loaded: loaded (/lib/systemd/system/systemd-logind.service; static)
   Active: active (running) since Fri 2017-05-12 01:55:58 UTC; 1s ago
   ...

Success !

After that, I tried a virsh shutdown from the host, it worked like a charm.

#2 Updated by intrigeri 2017-05-12 07:52:05

  • Status changed from Confirmed to In Progress

> Just starting the service doesn’t work, because it requires dbus to be installed.

We need dbus anyway for the Feature #5630 branch.

> After that, I tried a virsh shutdown from the host, it worked like a charm.

Thanks a lot :)

#3 Updated by anonym 2017-06-09 11:17:12

  • Status changed from In Progress to Fix committed
  • Assignee deleted (anonym)
  • % Done changed from 0 to 100
  • QA Check set to Pass

This was, incidentally, fixed by commit:f8718d88fd2dbbaf60b2fd004eef5d74d5590ac3 that installs dbus — that was the only thing missing. The systemd-logind service is running in our current base box, and virsh shutdown works fine.

#4 Updated by intrigeri 2017-06-12 16:07:41

  • Status changed from Fix committed to Resolved