systemctl - alias service reports inactive while aliased is active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Medium
|
Ioanna Alifieraki | ||
Xenial |
Fix Released
|
Medium
|
Ioanna Alifieraki |
Bug Description
[Impact]
'systemctl is-active' command reports an alias service as inactive even though the aliased service
is active.
Currently the 'systemctl is-active' command does not load units to minimise its effect on the system (i.e. that a monitoring command does not itself alter the state of the system).
However, this behaviour leads to inconsistencies when services are aliased.
[Test case]
- Test case 1 - libvirtd
alias service : libvirtd
aliased service : libvirt-bin
/etc/systemd/
lrwxrwxrwx 1 root root 39 May 13 20:49 libvirtd.service -> /lib/systemd/
$ systemctl is-active libvirtd
inactive
$ systemctl is-active libvirt-bin
active
- Test case 2 - sshd
alias service : sshd
aliased service : ssh
/ect/systemd/
lrwxrwxrwx 1 root root 31 Mar 19 19:44 sshd.service -> /lib/systemd/
$ systemctl is-active sshd
inactive
$ systemctl is-active ssh
active
[Regression Potential]
This fix may result into systemctl reporting inconsistent information concerning the status of a service.
[Other]
Upstream issue : https:/
Upstream fix : https:/
Xenial is affected, fix exists on Bionic onward.
$ lsb_release -rd
Description: Ubuntu 16.04.6 LTS
Release: 16.04
$ apt-cache policy systemd
systemd:
Installed: 229-4ubuntu21.21
Candidate: 229-4ubuntu21.21
Changed in systemd (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Ioanna Alifieraki (joalif) |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Xenial): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Ioanna Alifieraki (joalif) |
tags: | added: sts |
tags: | added: ddstreet-next |
tags: | removed: ddstreet-next |
Changed in systemd (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in systemd (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
tags: | added: ddstreet-next |
tags: | added: rls-x-notfixing |
Changed in systemd (Ubuntu Xenial): | |
status: | Triaged → In Progress |
tags: | added: systemd |
Debdiff for Xenial.